15#ifndef DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_ENCODING_TRANSFORM_H_
16#define DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_ENCODING_TRANSFORM_H_
28template <
typename DataTypeT,
typename CorrTypeT>
41 void Init(
const DataTypeT * ,
int ,
52 const DataTypeT *predicted_vals,
53 CorrTypeT *out_corr_vals) {
54 static_assert(std::is_same<DataTypeT, CorrTypeT>::value,
55 "For the default prediction transform, correction and input "
56 "data must be of the same type.");
57 for (
int i = 0; i < num_components_; ++i) {
58 out_corr_vals[i] = original_vals[i] - predicted_vals[i];
Definition encoder_buffer.h:29
Definition attribute_octahedron_transform.cc:21
PredictionSchemeTransformType
Definition compression_shared.h:96
@ PREDICTION_TRANSFORM_DELTA
Definition compression_shared.h:100