ref: fa9db8da150164dd8069d01c76fa663a82b114ae
parent: 686f437264af1f4d4e7be5c080d7690037693649
parent: bc41af00cf90b449b0be774ce1d07bd412111d34
author: Jim Bankoski <[email protected]>
date: Thu Jun 6 16:50:51 EDT 2013
Merge "Fix FIXME." into experimental
--- a/vp9/common/vp9_alloccommon.c
+++ b/vp9/common/vp9_alloccommon.c
@@ -147,8 +147,9 @@
// information is exposed at this level
mi_cols = mi_cols_aligned_to_sb(oci);
+ // 2 contexts per 'mi unit', so that we have one context per 4x4 txfm
+ // block where mi unit size is 8x8.
# if CONFIG_ALPHA
- // TODO(jkoleszar): Why is this * 2?
oci->above_context[0] = vpx_calloc(sizeof(ENTROPY_CONTEXT) * 8 * mi_cols, 1);
#else
oci->above_context[0] = vpx_calloc(sizeof(ENTROPY_CONTEXT) * 6 * mi_cols, 1);