summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_onyxc_int.h
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2013-10-24 16:31:07 +0200
committerJames Zern <jzern@google.com>2013-10-25 22:01:13 +0200
commitd2bf696ee02893204e1f505384ea385ac49eb9a3 (patch)
tree84ee0a97d2f94bc9ea41e8e5b7f9046b3d195ba0 /vp9/common/vp9_onyxc_int.h
parent88d79eabdc30c6325fbe5fd76dac029d24bf9949 (diff)
downloadlibvpx-d2bf696ee02893204e1f505384ea385ac49eb9a3.tar
libvpx-d2bf696ee02893204e1f505384ea385ac49eb9a3.tar.gz
libvpx-d2bf696ee02893204e1f505384ea385ac49eb9a3.tar.bz2
libvpx-d2bf696ee02893204e1f505384ea385ac49eb9a3.zip
vp9: pass entropy context directly to set_skip_context
this will allow for separate storage to be used in tile decoding Change-Id: I025595d83118bdc82a545dae69bc6602e8d2a6e3
Diffstat (limited to 'vp9/common/vp9_onyxc_int.h')
-rw-r--r--vp9/common/vp9_onyxc_int.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/vp9/common/vp9_onyxc_int.h b/vp9/common/vp9_onyxc_int.h
index 129028bbb..04964b3df 100644
--- a/vp9/common/vp9_onyxc_int.h
+++ b/vp9/common/vp9_onyxc_int.h
@@ -248,15 +248,18 @@ static int mi_cols_aligned_to_sb(int n_mis) {
return ALIGN_POWER_OF_TWO(n_mis, MI_BLOCK_SIZE_LOG2);
}
-static INLINE void set_skip_context(VP9_COMMON *cm, MACROBLOCKD *xd,
- int mi_row, int mi_col) {
+static INLINE void set_skip_context(
+ MACROBLOCKD *xd,
+ ENTROPY_CONTEXT *above_context[MAX_MB_PLANE],
+ ENTROPY_CONTEXT left_context[MAX_MB_PLANE][16],
+ int mi_row, int mi_col) {
const int above_idx = mi_col * 2;
const int left_idx = (mi_row * 2) & 15;
int i;
for (i = 0; i < MAX_MB_PLANE; i++) {
struct macroblockd_plane *const pd = &xd->plane[i];
- pd->above_context = cm->above_context[i] + (above_idx >> pd->subsampling_x);
- pd->left_context = cm->left_context[i] + (left_idx >> pd->subsampling_y);
+ pd->above_context = above_context[i] + (above_idx >> pd->subsampling_x);
+ pd->left_context = left_context[i] + (left_idx >> pd->subsampling_y);
}
}