15#ifndef DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_ENCODER_H_
16#define DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_ENCODER_H_
32template <
typename DataTypeT,
36 DataTypeT, typename TransformT::CorrType> {
49 if (!transform_.EncodeTransformData(buffer)) {
71 return transform_.AreCorrectionsPositive();
75 return transform_.GetType();
Definition encoder_buffer.h:29
Type
Definition geometry_attribute.h:46
@ INVALID
Definition geometry_attribute.h:47
Definition point_attribute.h:33
GeometryAttribute::Type GetParentAttributeType(int) const override
Definition prediction_scheme_encoder.h:61
const PointAttribute * attribute() const
Definition prediction_scheme_encoder.h:79
DataTypeT DataType
Definition prediction_scheme_encoder.h:38
int GetNumParentAttributes() const override
Definition prediction_scheme_encoder.h:58
Transform::CorrType CorrType
Definition prediction_scheme_encoder.h:41
PredictionSchemeEncoder(const PointAttribute *attribute, const Transform &transform)
Definition prediction_scheme_encoder.h:44
PredictionSchemeEncoder(const PointAttribute *attribute)
Definition prediction_scheme_encoder.h:42
bool AreCorrectionsPositive() override
Definition prediction_scheme_encoder.h:70
PredictionSchemeTransformType GetTransformType() const override
Definition prediction_scheme_encoder.h:74
Transform & transform()
Definition prediction_scheme_encoder.h:81
bool SetParentAttribute(const PointAttribute *) override
Definition prediction_scheme_encoder.h:66
const Transform & transform() const
Definition prediction_scheme_encoder.h:80
TransformT Transform
Definition prediction_scheme_encoder.h:39
bool EncodePredictionData(EncoderBuffer *buffer) override
Definition prediction_scheme_encoder.h:48
const PointAttribute * GetAttribute() const override
Definition prediction_scheme_encoder.h:55
Definition prediction_scheme_encoder_interface.h:43
Definition attribute_octahedron_transform.cc:21
PredictionSchemeTransformType
Definition compression_shared.h:96