Differential D9642 Diff 31360 extern/draco/draco/src/draco/compression/point_cloud/point_cloud_decoder.h
Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/draco/src/draco/compression/point_cloud/point_cloud_decoder.h
- This file was moved from extern/draco/dracoenc/src/draco/compression/point_cloud/point_cloud_decoder.h.
| Show All 36 Lines | public: | ||||
| static Status DecodeHeader(DecoderBuffer *buffer, DracoHeader *out_header); | static Status DecodeHeader(DecoderBuffer *buffer, DracoHeader *out_header); | ||||
| // The main entry point for point cloud decoding. | // The main entry point for point cloud decoding. | ||||
| Status Decode(const DecoderOptions &options, DecoderBuffer *in_buffer, | Status Decode(const DecoderOptions &options, DecoderBuffer *in_buffer, | ||||
| PointCloud *out_point_cloud); | PointCloud *out_point_cloud); | ||||
| bool SetAttributesDecoder( | bool SetAttributesDecoder( | ||||
| int att_decoder_id, std::unique_ptr<AttributesDecoderInterface> decoder) { | int att_decoder_id, std::unique_ptr<AttributesDecoderInterface> decoder) { | ||||
| if (att_decoder_id < 0) | if (att_decoder_id < 0) { | ||||
| return false; | return false; | ||||
| if (att_decoder_id >= static_cast<int>(attributes_decoders_.size())) | } | ||||
| if (att_decoder_id >= static_cast<int>(attributes_decoders_.size())) { | |||||
| attributes_decoders_.resize(att_decoder_id + 1); | attributes_decoders_.resize(att_decoder_id + 1); | ||||
| } | |||||
| attributes_decoders_[att_decoder_id] = std::move(decoder); | attributes_decoders_[att_decoder_id] = std::move(decoder); | ||||
| return true; | return true; | ||||
| } | } | ||||
| // Returns an attribute containing decoded data in their portable form that | // Returns an attribute containing decoded data in their portable form that | ||||
| // is guaranteed to be the same for both encoder and decoder. I.e., it returns | // is guaranteed to be the same for both encoder and decoder. I.e., it returns | ||||
| // an attribute before it was transformed back into its final form which may | // an attribute before it was transformed back into its final form which may | ||||
| // be slightly different (non-portable) across platforms. For example, for | // be slightly different (non-portable) across platforms. For example, for | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||