15#ifndef DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_NORMAL_OCTAHEDRON_CANONICALIZED_DECODING_TRANSFORM_H_
16#define DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_NORMAL_OCTAHEDRON_CANONICALIZED_DECODING_TRANSFORM_H_
32template <
typename DataTypeT>
44 void Init(
int num_components) {}
85 out_orig_vals[0] = orig[0];
86 out_orig_vals[1] = orig[1];
93 const bool pred_is_in_diamond = this->
IsInDiamond(pred[0], pred[1]);
94 if (!pred_is_in_diamond) {
99 if (!pred_is_in_bottom_left) {
104 if (!pred_is_in_bottom_left) {
105 const int32_t reverse_rotation_count = (4 - rotation_count) % 4;
106 orig = this->
RotatePoint(orig, reverse_rotation_count);
108 if (!pred_is_in_diamond) {
Definition decoder_buffer.h:30
bool Decode(T *out_val)
Definition decoder_buffer.h:68
#define DRACO_DCHECK_LE(a, b)
Definition macros.h:85
Definition attribute_octahedron_transform.cc:21
DataTypeT AddAsUnsigned(DataTypeT a, DataTypeT b)
Definition math_utils.h:63