summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_context_tree.c
diff options
context:
space:
mode:
authorDeb Mukherjee <debargha@google.com>2014-09-02 16:34:09 -0700
committerDeb Mukherjee <debargha@google.com>2014-09-11 19:56:33 -0700
commit10783d4f3a6188a01f9a993c56ab0013acd97214 (patch)
tree068914b26183a52c2cf7a084cfca333a94cf952f /vp9/encoder/vp9_context_tree.c
parent1e4136d35d0323f64817a0d9ae333ba9f6f731c3 (diff)
downloadlibvpx-10783d4f3a6188a01f9a993c56ab0013acd97214.tar
libvpx-10783d4f3a6188a01f9a993c56ab0013acd97214.tar.gz
libvpx-10783d4f3a6188a01f9a993c56ab0013acd97214.tar.bz2
libvpx-10783d4f3a6188a01f9a993c56ab0013acd97214.zip
Adds high bitdepth transform functions and tests
Adds various high bitdepth transform functions and tests. Much of the changes are related to using typedefs tran_low_t and tran_high_t for the final transform cofficients and intermediate stages of the transform computation respectively rather than fixed types int16_t/int. When vp9_highbitdepth configure flag is off, these map tp int16_t/int32_t, but when the flag is on, they map to int32_t/int64_t to make space for needed extra precision. Change-Id: I3c56de79e15b904d6f655b62ffae170729befdd8
Diffstat (limited to 'vp9/encoder/vp9_context_tree.c')
-rw-r--r--vp9/encoder/vp9_context_tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vp9/encoder/vp9_context_tree.c b/vp9/encoder/vp9_context_tree.c
index 9b7a93267..12acc5114 100644
--- a/vp9/encoder/vp9_context_tree.c
+++ b/vp9/encoder/vp9_context_tree.c
@@ -30,13 +30,13 @@ static void alloc_mode_context(VP9_COMMON *cm, int num_4x4_blk,
for (i = 0; i < MAX_MB_PLANE; ++i) {
for (k = 0; k < 3; ++k) {
CHECK_MEM_ERROR(cm, ctx->coeff[i][k],
- vpx_memalign(16, num_pix * sizeof(int16_t)));
+ vpx_memalign(16, num_pix * sizeof(*ctx->coeff[i][k])));
CHECK_MEM_ERROR(cm, ctx->qcoeff[i][k],
- vpx_memalign(16, num_pix * sizeof(int16_t)));
+ vpx_memalign(16, num_pix * sizeof(*ctx->qcoeff[i][k])));
CHECK_MEM_ERROR(cm, ctx->dqcoeff[i][k],
- vpx_memalign(16, num_pix * sizeof(int16_t)));
+ vpx_memalign(16, num_pix * sizeof(*ctx->dqcoeff[i][k])));
CHECK_MEM_ERROR(cm, ctx->eobs[i][k],
- vpx_memalign(16, num_pix * sizeof(uint16_t)));
+ vpx_memalign(16, num_pix * sizeof(*ctx->eobs[i][k])));
ctx->coeff_pbuf[i][k] = ctx->coeff[i][k];
ctx->qcoeff_pbuf[i][k] = ctx->qcoeff[i][k];
ctx->dqcoeff_pbuf[i][k] = ctx->dqcoeff[i][k];