draco/docs/spec/draco.decoder.md
Lou Quillio c0dcf7c2bc Port Draco bitstream spec to Markdown.
This represents the grunt-work of porting the gDocs
document to plaintext. There are decisions to make
and polish to be applied.
2017-07-09 18:33:42 -07:00

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()