mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-04-22 13:49:57 +08:00

This represents the grunt-work of porting the gDocs document to plaintext. There are decisions to make and polish to be applied.
1.3 KiB
1.3 KiB
Draco Decoder
Decode()
Decode() { Type
DecodeHeader()
DecodeConnectivityData()
DecodeAttributeData()}
DecodeHeader()
DecodeHeader() { Type
draco_string UI8[5]
major_version UI8
minor_version UI8
encoder_type UI8
encoder_method UI8
flags
}
DecodeAttributeData()
DecodeAttributeData() { Type
num_attributes_decoders UI8
for (i = 0; i < num_attributes_decoders; ++i) {
CreateAttributesDecoder(i);
}
for (auto &att_dec : attributes_decoders_) {
att_dec->Initialize(this, point_cloud_)
}
for (i = 0; i < num_attributes_decoders; ++i) {
attributes_decoders_[i]->DecodeAttributesDecoderData(buffer_)
}
DecodeAllAttributes()
OnAttributesDecoded()