From 627b774669bf6efecb6eff95f9fc4e8cd2496d36 Mon Sep 17 00:00:00 2001 From: Frank Galligan Date: Tue, 24 Oct 2017 13:51:57 -0700 Subject: [PATCH] Spec: Clarify when bit reading is done. - Addresses a comment in KhronosGroup/glTF#1114 --- docs/spec/04.00.00.conventions.md | 2 +- docs/spec/edgebreaker.decoder.md | 1 + docs/spec/rans.decoding.md | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/spec/04.00.00.conventions.md b/docs/spec/04.00.00.conventions.md index b184650..cf2268f 100644 --- a/docs/spec/04.00.00.conventions.md +++ b/docs/spec/04.00.00.conventions.md @@ -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. diff --git a/docs/spec/edgebreaker.decoder.md b/docs/spec/edgebreaker.decoder.md index 16c6426..87c4755 100644 --- a/docs/spec/edgebreaker.decoder.md +++ b/docs/spec/edgebreaker.decoder.md @@ -28,6 +28,7 @@ void ParseTopologySplitEvents() { for (i = 0; i < num_topology_splits; ++i) { source_edge_bit[i] f[1] } + ResetBitReader(); } ~~~~~ {:.draco-syntax } diff --git a/docs/spec/rans.decoding.md b/docs/spec/rans.decoding.md index 95ac98a..0d5a820 100644 --- a/docs/spec/rans.decoding.md +++ b/docs/spec/rans.decoding.md @@ -32,6 +32,7 @@ void DecodeTaggedSymbols(num_values, num_components, out_values) { val f[size] out_values.push_back(val); } + ResetBitReader(); } } ~~~~~