15#ifndef DRACO_COMPRESSION_POINT_CLOUD_POINT_CLOUD_DECODER_H_
16#define DRACO_COMPRESSION_POINT_CLOUD_POINT_CLOUD_DECODER_H_
44 int att_decoder_id, std::unique_ptr<AttributesDecoderInterface> decoder) {
45 if (att_decoder_id < 0) {
48 if (att_decoder_id >=
static_cast<int>(attributes_decoders_.size())) {
49 attributes_decoders_.resize(att_decoder_id + 1);
51 attributes_decoders_[att_decoder_id] = std::move(decoder);
68 return attributes_decoders_[dec_id].get();
71 return static_cast<int32_t
>(attributes_decoders_.size());
101 std::vector<std::unique_ptr<AttributesDecoderInterface>> attributes_decoders_;
104 std::vector<int32_t> attribute_to_decoder_map_;
110 uint8_t version_major_;
111 uint8_t version_minor_;
Definition attributes_decoder_interface.h:31
Definition decoder_buffer.h:30
Definition point_attribute.h:33
const PointCloud * point_cloud() const
Definition point_cloud_decoder.h:77
PointCloudDecoder()
Definition point_cloud_decoder.cc:23
PointCloud * point_cloud()
Definition point_cloud_decoder.h:76
const AttributesDecoderInterface * attributes_decoder(int dec_id)
Definition point_cloud_decoder.h:67
virtual bool DecodePointAttributes()
Definition point_cloud_decoder.cc:130
static Status DecodeHeader(DecoderBuffer *buffer, DracoHeader *out_header)
Definition point_cloud_decoder.cc:30
virtual bool DecodeGeometryData()
Definition point_cloud_decoder.h:89
Status Decode(const DecoderOptions &options, DecoderBuffer *in_buffer, PointCloud *out_point_cloud)
Definition point_cloud_decoder.cc:68
virtual bool OnAttributesDecoded()
Definition point_cloud_decoder.h:93
DecoderBuffer * buffer()
Definition point_cloud_decoder.h:79
virtual bool DecodeAllAttributes()
Definition point_cloud_decoder.cc:181
virtual bool InitializeDecoder()
Definition point_cloud_decoder.h:85
bool SetAttributesDecoder(int att_decoder_id, std::unique_ptr< AttributesDecoderInterface > decoder)
Definition point_cloud_decoder.h:43
int32_t num_attributes_decoders() const
Definition point_cloud_decoder.h:70
virtual EncodedGeometryType GetGeometryType() const
Definition point_cloud_decoder.h:33
virtual bool CreateAttributesDecoder(int32_t att_decoder_id)=0
virtual ~PointCloudDecoder()=default
uint16_t bitstream_version() const
Definition point_cloud_decoder.h:63
const PointAttribute * GetPortableAttribute(int32_t point_attribute_id)
Definition point_cloud_decoder.cc:190
Status DecodeMetadata()
Definition point_cloud_decoder.cc:57
const DecoderOptions * options() const
Definition point_cloud_decoder.h:80
Definition point_cloud.h:29
#define DRACO_BITSTREAM_VERSION(MAJOR, MINOR)
Definition macros.h:114
< h2 > I want smooth transition from jpg png webp to the engine</h2 > There s few options
Definition meshpage.php:1181
Definition attribute_octahedron_transform.cc:21
EncodedGeometryType
Definition compression_shared.h:41
@ POINT_CLOUD
Definition compression_shared.h:43
DracoOptions< GeometryAttribute::Type > DecoderOptions
Definition decoder_options.h:30