draco/docs/spec/draco.decoder.md
Frank Galligan 51db0e4563 Update bitstream spec to version 2.1
This only updates the algorithm part.

This is associated with #134
2017-09-30 15:11:11 -07:00

31 lines
818 B
Markdown

## Draco Decoder
### Decode()
~~~~~
void Decode() {
ParseHeader();
if (flags & METADATA_FLAG_MASK)
DecodeMetadata();
DecodeConnectivityData();
DecodeAttributeData();
}
~~~~~
{:.draco-syntax}
### ParseHeader()
~~~~~
ParseHeader() {
draco_string UI8[5]
major_version UI8
minor_version UI8
encoder_type UI8
encoder_method UI8
flags UI16
}
~~~~~
{:.draco-syntax}