summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_onyxc_int.h
diff options
context:
space:
mode:
authorMinghai Shang <minghai@google.com>2015-05-20 11:05:22 -0700
committerMinghai Shang <minghai@google.com>2015-05-20 11:05:22 -0700
commit48bfee879705f28cc5f1fa7f3beaf0c363d29ea9 (patch)
treec8c15557db12ddf0c16955978bff0383530bd098 /vp9/common/vp9_onyxc_int.h
parent37d03809bfb523910b2a07a726a0dad82980047b (diff)
downloadlibvpx-48bfee879705f28cc5f1fa7f3beaf0c363d29ea9.tar.gz
[decoder] Optimize context buffer re-allocation
1. Check existing buffer sizes when re-allocate context buffers. 2. Don't need to set mi buffers to 0 during setup_mi. Change-Id: I6b48b0e077a4d804312b605ad0dc34aec5795a6d
Diffstat (limited to 'vp9/common/vp9_onyxc_int.h')
-rw-r--r--vp9/common/vp9_onyxc_int.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vp9/common/vp9_onyxc_int.h b/vp9/common/vp9_onyxc_int.h
index 5179c6906..f710f8106 100644
--- a/vp9/common/vp9_onyxc_int.h
+++ b/vp9/common/vp9_onyxc_int.h
@@ -220,6 +220,7 @@ typedef struct VP9Common {
uint8_t *seg_map_array[NUM_PING_PONG_BUFFERS];
uint8_t *last_frame_seg_map;
uint8_t *current_frame_seg_map;
+ int seg_map_alloc_size;
INTERP_FILTER interp_filter;
@@ -276,6 +277,7 @@ typedef struct VP9Common {
PARTITION_CONTEXT *above_seg_context;
ENTROPY_CONTEXT *above_context;
+ int above_context_alloc_cols;
} VP9_COMMON;
// TODO(hkuang): Don't need to lock the whole pool after implementing atomic