mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-11 15:08:59 +08:00
Spec: Clarify when bit reading is done.
- Addresses a comment in KhronosGroup/glTF#1114
This commit is contained in:
parent
b2ade010c7
commit
627b774669
@ -54,7 +54,7 @@ section is the header. The second section contains the metadata. This section is
|
||||
|
||||
* f[n]
|
||||
* Unsigned n-bit number appearing directly in the bitstream. The bits are read from high to low order.
|
||||
* When bit reading is finished it will always pad the read to the current byte.
|
||||
* When bit reading is finished it will always pad the read to the current byte. ResetBitReader() will signify when the bit reading is finished.
|
||||
|
||||
* I16, UI16, I32, UI32, I64, UI64, and Float values must be little endian.
|
||||
|
||||
|
@ -28,6 +28,7 @@ void ParseTopologySplitEvents() {
|
||||
for (i = 0; i < num_topology_splits; ++i) {
|
||||
source_edge_bit[i] f[1]
|
||||
}
|
||||
ResetBitReader();
|
||||
}
|
||||
~~~~~
|
||||
{:.draco-syntax }
|
||||
|
@ -32,6 +32,7 @@ void DecodeTaggedSymbols(num_values, num_components, out_values) {
|
||||
val f[size]
|
||||
out_values.push_back(val);
|
||||
}
|
||||
ResetBitReader();
|
||||
}
|
||||
}
|
||||
~~~~~
|
||||
|
Loading…
x
Reference in New Issue
Block a user