Differential D9642 Diff 31697 extern/draco/draco/src/draco/compression/attributes/prediction_schemes/prediction_scheme_decoder.h
Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/draco/src/draco/compression/attributes/prediction_schemes/prediction_scheme_decoder.h
- This file was moved from extern/draco/dracoenc/src/draco/compression/attributes/prediction_schemes/prediction_scheme_decoder.h.
| Show All 40 Lines | public: | ||||
| typedef typename Transform::CorrType CorrType; | typedef typename Transform::CorrType CorrType; | ||||
| explicit PredictionSchemeDecoder(const PointAttribute *attribute) | explicit PredictionSchemeDecoder(const PointAttribute *attribute) | ||||
| : PredictionSchemeDecoder(attribute, Transform()) {} | : PredictionSchemeDecoder(attribute, Transform()) {} | ||||
| PredictionSchemeDecoder(const PointAttribute *attribute, | PredictionSchemeDecoder(const PointAttribute *attribute, | ||||
| const Transform &transform) | const Transform &transform) | ||||
| : attribute_(attribute), transform_(transform) {} | : attribute_(attribute), transform_(transform) {} | ||||
| bool DecodePredictionData(DecoderBuffer *buffer) override { | bool DecodePredictionData(DecoderBuffer *buffer) override { | ||||
| if (!transform_.DecodeTransformData(buffer)) | if (!transform_.DecodeTransformData(buffer)) { | ||||
| return false; | return false; | ||||
| } | |||||
| return true; | return true; | ||||
| } | } | ||||
| const PointAttribute *GetAttribute() const override { return attribute(); } | const PointAttribute *GetAttribute() const override { return attribute(); } | ||||
| // Returns the number of parent attributes that are needed for the prediction. | // Returns the number of parent attributes that are needed for the prediction. | ||||
| int GetNumParentAttributes() const override { return 0; } | int GetNumParentAttributes() const override { return 0; } | ||||
| Show All 31 Lines | |||||