15#ifndef DRACO_COMPRESSION_ATTRIBUTES_SEQUENTIAL_NORMAL_ATTRIBUTE_ENCODER_H_
16#define DRACO_COMPRESSION_ATTRIBUTES_SEQUENTIAL_NORMAL_ATTRIBUTE_ENCODER_H_
47 int num_points)
override;
49 std::unique_ptr<PredictionSchemeTypedEncoderInterface<int32_t>>
56 const int32_t max_value = (1 << quantization_bits) - 1;
57 const Transform transform(max_value);
61 attribute_id(),
"prediction_scheme", default_prediction_method);
int GetAttributeInt(const AttributeKey &att_key, const std::string &name, int default_val) const
Definition draco_options.h:158
Definition encoder_buffer.h:29
Definition point_cloud_encoder.h:29
const EncoderOptions * options() const
Definition point_cloud_encoder.h:76
PointCloudEncoder * encoder() const
Definition sequential_attribute_encoder.h:83
int attribute_id() const
Definition sequential_attribute_encoder.h:82
SequentialIntegerAttributeEncoder()
Definition sequential_integer_attribute_encoder.cc:24
Definition sequential_normal_attribute_encoder.h:33
bool IsLossyEncoder() const override
Definition sequential_normal_attribute_encoder.h:38
bool PrepareValues(const std::vector< PointIndex > &point_ids, int num_points) override
Definition sequential_normal_attribute_encoder.cc:46
AttributeOctahedronTransform attribute_octahedron_transform_
Definition sequential_normal_attribute_encoder.h:77
bool Init(PointCloudEncoder *encoder, int attribute_id) override
Definition sequential_normal_attribute_encoder.cc:21
std::unique_ptr< PredictionSchemeTypedEncoderInterface< int32_t > > CreateIntPredictionScheme(PredictionSchemeMethod) override
Definition sequential_normal_attribute_encoder.h:50
uint8_t GetUniqueId() const override
Definition sequential_normal_attribute_encoder.h:35
bool EncodeDataNeededByPortableTransform(EncoderBuffer *out_buffer) override
Definition sequential_normal_attribute_encoder.cc:41
#define DRACO_DCHECK(x)
Definition macros.h:80
Definition attribute_octahedron_transform.cc:21
PredictionSchemeMethod SelectPredictionMethod(int att_id, const PointCloudEncoder *encoder)
Definition prediction_scheme_encoder_factory.cc:21
@ SEQUENTIAL_ATTRIBUTE_ENCODER_NORMALS
Definition compression_shared.h:76
std::unique_ptr< PredictionSchemeEncoder< DataTypeT, TransformT > > CreatePredictionSchemeForEncoder(PredictionSchemeMethod method, int att_id, const PointCloudEncoder *encoder, const TransformT &transform)
Definition prediction_scheme_encoder_factory.h:86
PredictionSchemeMethod
Definition compression_shared.h:80
@ MESH_PREDICTION_GEOMETRIC_NORMAL
Definition compression_shared.h:91
@ PREDICTION_DIFFERENCE
Definition compression_shared.h:85