15#ifndef DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_MESH_PREDICTION_SCHEME_PARALLELOGRAM_DECODER_H_
16#define DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_MESH_PREDICTION_SCHEME_PARALLELOGRAM_DECODER_H_
26template <
typename DataTypeT,
class TransformT,
class MeshDataT>
44 int size,
int num_components,
45 const PointIndex *entry_to_point_id_map)
override;
55template <
typename DataTypeT,
class TransformT,
class MeshDataT>
56bool MeshPredictionSchemeParallelogramDecoder<DataTypeT, TransformT,
58 ComputeOriginalValues(
const CorrType *in_corr, DataTypeT *out_data,
59 int ,
int num_components,
64 const std::vector<int32_t> *
const vertex_to_data_map =
68 std::unique_ptr<DataTypeT[]> pred_vals(
new DataTypeT[num_components]());
71 this->
transform().ComputeOriginalValue(pred_vals.get(), in_corr, out_data);
73 const int corner_map_size =
74 static_cast<int>(this->
mesh_data().data_to_corner_map()->size());
75 for (
int p = 1; p < corner_map_size; ++p) {
77 const int dst_offset = p * num_components;
79 *vertex_to_data_map, out_data,
80 num_components, pred_vals.get())) {
84 const int src_offset = (p - 1) * num_components;
86 out_data + src_offset, in_corr + dst_offset, out_data + dst_offset);
90 pred_vals.get(), in_corr + dst_offset, out_data + dst_offset);
const MeshData & mesh_data() const
Definition mesh_prediction_scheme_decoder.h:38
MeshPredictionSchemeDecoder(const PointAttribute *attribute, const TransformT &transform, const MeshDataT &mesh_data)
Definition mesh_prediction_scheme_decoder.h:31
bool IsInitialized() const override
Definition mesh_prediction_scheme_parallelogram_decoder.h:50
typename PredictionSchemeDecoder< DataTypeT, TransformT >::CorrType CorrType
Definition mesh_prediction_scheme_parallelogram_decoder.h:30
bool ComputeOriginalValues(const CorrType *in_corr, DataTypeT *out_data, int size, int num_components, const PointIndex *entry_to_point_id_map) override
Definition mesh_prediction_scheme_parallelogram_decoder.h:58
PredictionSchemeMethod GetPredictionMethod() const override
Definition mesh_prediction_scheme_parallelogram_decoder.h:46
MeshPredictionSchemeParallelogramDecoder(const PointAttribute *attribute, const TransformT &transform, const MeshDataT &mesh_data)
Definition mesh_prediction_scheme_parallelogram_decoder.h:37
typename MeshDataT::CornerTable CornerTable
Definition mesh_prediction_scheme_parallelogram_decoder.h:32
MeshPredictionSchemeParallelogramDecoder(const PointAttribute *attribute)
Definition mesh_prediction_scheme_parallelogram_decoder.h:33
Definition point_attribute.h:33
Transform::CorrType CorrType
Definition prediction_scheme_decoder.h:41
const Transform & transform() const
Definition prediction_scheme_decoder.h:80
const PointAttribute * attribute() const
Definition prediction_scheme_decoder.h:79
n< br > font size
Definition meshpage.php:3536
Definition attribute_octahedron_transform.cc:21
bool ComputeParallelogramPrediction(int data_entry_id, const CornerIndex ci, const CornerTableT *table, const std::vector< int32_t > &vertex_to_data_map, const DataTypeT *in_data, int num_components, DataTypeT *out_prediction)
Definition mesh_prediction_scheme_parallelogram_shared.h:45
CornerIndex CornerIndex
Definition mesh_edgebreaker_encoder_impl.cc:35
PredictionSchemeMethod
Definition compression_shared.h:80
@ MESH_PREDICTION_PARALLELOGRAM
Definition compression_shared.h:86
Definition GameApi_pl.cc:29382