draco/docs/spec/rans.bit.decoder.md
Lou Quillio b3378f4453 Adapt spec-related pages to Bootstrap.
* Create template for spec pages
  * Adapt syntax-table styles to Bootstrap
  * Reposition type/size annotations at col 86 (and update README.md)
  * Let Bootstrap style breadcrumb trails
  * Unrelated: abstract footer to an _include
2017-07-31 13:52:48 -07:00

26 lines
593 B
Markdown

## Rans Bit Decoder
### RansBitDecoder_StartDecoding()
~~~~~
RansBitDecoder_StartDecoding() {
prob_zero_ UI8
size UI32
buffer_ size * UI8
ans_read_init(ans_decoder_, buffer_, size)
}
~~~~~
{:.draco-syntax }
### DecodeNextBit()
~~~~~
DecodeNextBit() {
uint8_t bit = rabs_desc_read(&ans_decoder_, prob_zero_);
return bit > 0;
}
~~~~~
{:.draco-syntax }