summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_encodemb.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@google.com>2012-12-18 10:49:10 -0800
committerRonald S. Bultje <rbultje@google.com>2012-12-18 10:49:10 -0800
commit8986eb5c26bb19e9e797819a72102e1061b68d74 (patch)
tree7c79e5f107f2e426a1e101221a91e2d863898fdb /vp9/encoder/vp9_encodemb.c
parentebb5f2f7bd27f1d0bb2b8f49ed717c85b9d49c95 (diff)
downloadlibvpx-8986eb5c26bb19e9e797819a72102e1061b68d74.tar
libvpx-8986eb5c26bb19e9e797819a72102e1061b68d74.tar.gz
libvpx-8986eb5c26bb19e9e797819a72102e1061b68d74.tar.bz2
libvpx-8986eb5c26bb19e9e797819a72102e1061b68d74.zip
Give 4x4 scan and coef_band tables a _4x4 suffix.
This matches the names of tables for all other transform sizes. Change-Id: Ia7681b7f8d34c97c27b0eb0e34d490cd0f8d02c6
Diffstat (limited to 'vp9/encoder/vp9_encodemb.c')
-rw-r--r--vp9/encoder/vp9_encodemb.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/vp9/encoder/vp9_encodemb.c b/vp9/encoder/vp9_encodemb.c
index 497509995..6b175085f 100644
--- a/vp9/encoder/vp9_encodemb.c
+++ b/vp9/encoder/vp9_encodemb.c
@@ -384,8 +384,8 @@ static void optimize_b(MACROBLOCK *mb, int i, PLANE_TYPE type,
switch (tx_size) {
default:
case TX_4X4:
- scan = vp9_default_zig_zag1d;
- bands = vp9_coef_bands;
+ scan = vp9_default_zig_zag1d_4x4;
+ bands = vp9_coef_bands_4x4;
default_eob = 16;
// TODO: this isn't called (for intra4x4 modes), but will be left in
// since it could be used later
@@ -394,19 +394,19 @@ static void optimize_b(MACROBLOCK *mb, int i, PLANE_TYPE type,
if (tx_type != DCT_DCT) {
switch (tx_type) {
case ADST_DCT:
- scan = vp9_row_scan;
+ scan = vp9_row_scan_4x4;
break;
case DCT_ADST:
- scan = vp9_col_scan;
+ scan = vp9_col_scan_4x4;
break;
default:
- scan = vp9_default_zig_zag1d;
+ scan = vp9_default_zig_zag1d_4x4;
break;
}
} else {
- scan = vp9_default_zig_zag1d;
+ scan = vp9_default_zig_zag1d_4x4;
}
}
break;
@@ -601,7 +601,7 @@ static void check_reset_2nd_coeffs(MACROBLOCKD *xd,
return;
for (i = 0; i < bd->eob; i++) {
- int coef = bd->dqcoeff[vp9_default_zig_zag1d[i]];
+ int coef = bd->dqcoeff[vp9_default_zig_zag1d_4x4[i]];
sum += (coef >= 0) ? coef : -coef;
if (sum >= SUM_2ND_COEFF_THRESH)
return;
@@ -609,7 +609,7 @@ static void check_reset_2nd_coeffs(MACROBLOCKD *xd,
if (sum < SUM_2ND_COEFF_THRESH) {
for (i = 0; i < bd->eob; i++) {
- int rc = vp9_default_zig_zag1d[i];
+ int rc = vp9_default_zig_zag1d_4x4[i];
bd->qcoeff[rc] = 0;
bd->dqcoeff[rc] = 0;
}