Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan E. Egge <unlord@xiph.org>2018-11-19 16:56:01 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2019-01-25 17:30:24 +0300
commit45d4fde63754a685a6ba69c012b6f4db528664a0 (patch)
tree3bcbad049d91c85639e5529825e46fb8721c686c /src/msac.h
parent250204038a3799d2a2377b9be5a87c5d4213e9ba (diff)
Add msac_decode_bool_equi() function
When decoding an equi-probable bit (e.g. prob = 1/2) we can simplify the decode function.
Diffstat (limited to 'src/msac.h')
-rw-r--r--src/msac.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msac.h b/src/msac.h
index 97bddbb..7d68715 100644
--- a/src/msac.h
+++ b/src/msac.h
@@ -44,13 +44,13 @@ typedef struct MsacContext {
} MsacContext;
#define EC_PROB_SHIFT 6
-#define EC_BOOL_EPROB 256
void msac_init(MsacContext *c, const uint8_t *data, size_t sz, int disable_cdf_update_flag);
unsigned msac_decode_symbol(MsacContext *s, const uint16_t *cdf,
const unsigned n_symbols);
unsigned msac_decode_symbol_adapt(MsacContext *s, uint16_t *cdf,
const unsigned n_symbols);
+unsigned msac_decode_bool_equi(MsacContext *const s);
unsigned msac_decode_bool(MsacContext *s, unsigned f);
unsigned msac_decode_bool_adapt(MsacContext *s, uint16_t *cdf);
unsigned msac_decode_bools(MsacContext *c, unsigned l);