summaryrefslogtreecommitdiff
path: root/vp8/encoder/bitstream.c
diff options
context:
space:
mode:
authorScott LaVarnway <slavarnway@google.com>2011-08-16 16:21:21 -0400
committerScott LaVarnway <slavarnway@google.com>2011-08-16 16:21:21 -0400
commit19987dcbfa02c2185a6d126b34f07366085d0905 (patch)
tree37c8ab7d854a14cc6fbabfe81f1160cc3b2073ee /vp8/encoder/bitstream.c
parentb84e8f20c3aca0f2a65265cf704cc7c15a2c93d4 (diff)
downloadlibvpx-19987dcbfa02c2185a6d126b34f07366085d0905.tar
libvpx-19987dcbfa02c2185a6d126b34f07366085d0905.tar.gz
libvpx-19987dcbfa02c2185a6d126b34f07366085d0905.tar.bz2
libvpx-19987dcbfa02c2185a6d126b34f07366085d0905.zip
Faster vp8_default_coef_probs
Copies from a generated table instead of building the default coeff probabilities during runtime. Change-Id: I4d9551ea3a2d7d4a4f7ce9eda006495221a8de50
Diffstat (limited to 'vp8/encoder/bitstream.c')
-rw-r--r--vp8/encoder/bitstream.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vp8/encoder/bitstream.c b/vp8/encoder/bitstream.c
index b3c24398c..cea8e1232 100644
--- a/vp8/encoder/bitstream.c
+++ b/vp8/encoder/bitstream.c
@@ -22,7 +22,8 @@
#include "vpx/vpx_encoder.h"
#include "vpx_mem/vpx_mem.h"
#include "bitstream.h"
-#include "vp8/common/defaultcoefcounts.h"
+
+#include "defaultcoefcounts.h"
const int vp8cx_base_skip_false_prob[128] =
{
@@ -1199,7 +1200,7 @@ static int independent_coef_context_savings(VP8_COMP *cpi)
if (cpi->common.frame_type == KEY_FRAME)
{
/* Reset to default probabilities at key frames */
- sum_probs_over_prev_coef_context(vp8_default_coef_counts[i][j],
+ sum_probs_over_prev_coef_context(default_coef_counts[i][j],
prev_coef_count_sum);
}
else