summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_pred_common.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@google.com>2013-01-08 10:29:22 -0800
committerRonald S. Bultje <rbultje@google.com>2013-01-08 12:54:45 -0800
commit4455036cfc3c6b7fb9d7b85af1982e7df3711a05 (patch)
tree4294eb7d43141c3406d3f3f184b522a1b052fadd /vp9/common/vp9_pred_common.c
parent879cb7d96259a71eea0038452a00241650589084 (diff)
downloadlibvpx-4455036cfc3c6b7fb9d7b85af1982e7df3711a05.tar
libvpx-4455036cfc3c6b7fb9d7b85af1982e7df3711a05.tar.gz
libvpx-4455036cfc3c6b7fb9d7b85af1982e7df3711a05.tar.bz2
libvpx-4455036cfc3c6b7fb9d7b85af1982e7df3711a05.zip
Merge superblocks (32x32) experiment.
Change-Id: I0df99742029834a85c4933652b0587cf5b6b2587
Diffstat (limited to 'vp9/common/vp9_pred_common.c')
-rw-r--r--vp9/common/vp9_pred_common.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/vp9/common/vp9_pred_common.c b/vp9/common/vp9_pred_common.c
index f2f35a3b4..76ae0b36b 100644
--- a/vp9/common/vp9_pred_common.c
+++ b/vp9/common/vp9_pred_common.c
@@ -223,14 +223,11 @@ unsigned char vp9_get_pred_flag(const MACROBLOCKD *const xd,
void vp9_set_pred_flag(MACROBLOCKD *const xd,
PRED_ID pred_id,
unsigned char pred_flag) {
-#if CONFIG_SUPERBLOCKS
const int mis = xd->mode_info_stride;
-#endif
switch (pred_id) {
case PRED_SEG_ID:
xd->mode_info_context->mbmi.seg_id_predicted = pred_flag;
-#if CONFIG_SUPERBLOCKS
if (xd->mode_info_context->mbmi.sb_type) {
#define sub(a, b) (b) < 0 ? (a) + (b) : (a)
const int n_mbs = 1 << xd->mode_info_context->mbmi.sb_type;
@@ -245,12 +242,10 @@ void vp9_set_pred_flag(MACROBLOCKD *const xd,
}
}
}
-#endif
break;
case PRED_REF:
xd->mode_info_context->mbmi.ref_predicted = pred_flag;
-#if CONFIG_SUPERBLOCKS
if (xd->mode_info_context->mbmi.sb_type) {
const int n_mbs = 1 << xd->mode_info_context->mbmi.sb_type;
const int x_mbs = sub(n_mbs, xd->mb_to_right_edge >> 7);
@@ -263,12 +258,10 @@ void vp9_set_pred_flag(MACROBLOCKD *const xd,
}
}
}
-#endif
break;
case PRED_MBSKIP:
xd->mode_info_context->mbmi.mb_skip_coeff = pred_flag;
-#if CONFIG_SUPERBLOCKS
if (xd->mode_info_context->mbmi.sb_type) {
const int n_mbs = 1 << xd->mode_info_context->mbmi.sb_type;
const int x_mbs = sub(n_mbs, xd->mb_to_right_edge >> 7);
@@ -281,7 +274,6 @@ void vp9_set_pred_flag(MACROBLOCKD *const xd,
}
}
}
-#endif
break;
default:
@@ -299,11 +291,8 @@ unsigned char vp9_get_pred_mb_segid(const VP9_COMMON *const cm,
const MACROBLOCKD *const xd, int MbIndex) {
// Currently the prediction for the macroblock segment ID is
// the value stored for this macroblock in the previous frame.
-#if CONFIG_SUPERBLOCKS
if (!xd->mode_info_context->mbmi.sb_type) {
-#endif
return cm->last_frame_seg_map[MbIndex];
-#if CONFIG_SUPERBLOCKS
} else {
const int n_mbs = 1 << xd->mode_info_context->mbmi.sb_type;
const int mb_col = MbIndex % cm->mb_cols;
@@ -321,7 +310,6 @@ unsigned char vp9_get_pred_mb_segid(const VP9_COMMON *const cm,
return seg_id;
}
-#endif
}
MV_REFERENCE_FRAME vp9_get_pred_ref(const VP9_COMMON *const cm,