summaryrefslogtreecommitdiff
path: root/vp8/encoder/boolhuff.h
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2012-04-12 09:24:03 -0700
committerDeb Mukherjee <debargha@google.com>2012-04-23 23:02:52 -0700
commitc6f1bf43210f93dafbae4a2744cadd6f18924255 (patch)
tree4eeea793d58fef41007a91527f64ed5eda003dce /vp8/encoder/boolhuff.h
parent2210767c3f7ce179ea9b352c8de2790b23487bca (diff)
downloadlibvpx-c6f1bf43210f93dafbae4a2744cadd6f18924255.tar
libvpx-c6f1bf43210f93dafbae4a2744cadd6f18924255.tar.gz
libvpx-c6f1bf43210f93dafbae4a2744cadd6f18924255.tar.bz2
libvpx-c6f1bf43210f93dafbae4a2744cadd6f18924255.zip
Differential encoding of probability updates
Adds differential encoding of prob updates using a subexponential code centered around the previous probability value. Also searches for the most cost-effective update, and breaks up the coefficient updates into smaller groups. Small gain on Derf: 0.2% Change-Id: Ie0071e3dc113e3d0d7ab95b6442bb07a89970030
Diffstat (limited to 'vp8/encoder/boolhuff.h')
-rw-r--r--vp8/encoder/boolhuff.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/vp8/encoder/boolhuff.h b/vp8/encoder/boolhuff.h
index 04755f532..1fb3cfadf 100644
--- a/vp8/encoder/boolhuff.h
+++ b/vp8/encoder/boolhuff.h
@@ -41,6 +41,13 @@ extern void vp8_encode_value(BOOL_CODER *br, int data, int bits);
extern void vp8_stop_encode(BOOL_CODER *bc);
extern const unsigned int vp8_prob_cost[256];
+#if CONFIG_NEWENTROPY
+extern void vp8_encode_uniform(BOOL_CODER *bc, int v, int n);
+extern void vp8_encode_term_subexp(BOOL_CODER *bc, int v, int k, int n);
+extern int vp8_count_uniform(int v, int n);
+extern int vp8_count_term_subexp(int v, int k, int n);
+extern int recenter_nonneg(int v, int m);
+#endif
DECLARE_ALIGNED(16, extern const unsigned char, vp8_norm[256]);