Commit 17ae3e1b authored by Thomas Daede's avatar Thomas Daede

Add raw bits

Change-Id: I43b61b47e397347cdc30a5008e7b15ec4e67895e
parent 5c455711
......@@ -15,7 +15,7 @@
#include "vpx_dsp/prob.h"
#include "./entenc.h"
#include "entenc.h"
#ifdef __cplusplus
extern "C" {
......@@ -45,7 +45,11 @@ static INLINE void vpx_write(vpx_writer *br, int bit, int probability) {
register int shift;
#if DAALA_ENTROPY_CODER
od_ec_encode_bool_q15(&br->ec, bit, probability * 128);
if (probability == 128) {
od_ec_enc_bits(&br->ec, bit, 1);
} else {
od_ec_encode_bool_q15(&br->ec, bit, probability * 128);
}
#endif
split = 1 + (((range - 1) * probability) >> 8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment