15#ifndef DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_DECODING_TRANSFORM_H_
16#define DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_PREDICTION_SCHEME_DECODING_TRANSFORM_H_
29template <
typename DataTypeT,
typename CorrTypeT>
40 const CorrTypeT *corr_vals,
41 DataTypeT *out_original_vals)
const {
42 static_assert(std::is_same<DataTypeT, CorrTypeT>::value,
43 "For the default prediction transform, correction and input "
44 "data must be of the same type.");
45 for (
int i = 0; i < num_components_; ++i) {
46 out_original_vals[i] = predicted_vals[i] + corr_vals[i];
Definition decoder_buffer.h:30
Definition attribute_octahedron_transform.cc:21