summaryrefslogtreecommitdiff
path: root/vp9/common
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@google.com>2013-02-13 12:28:19 -0800
committerRonald S. Bultje <rbultje@google.com>2013-02-13 12:28:19 -0800
commit42d6be8080c8201f3a1844357c551cefed9d5f99 (patch)
tree79757c7eeb76e697f85da549ffde250141ecb8f0 /vp9/common
parent491d095214bb05fc28a7490d1bc690a73cb019e2 (diff)
downloadlibvpx-42d6be8080c8201f3a1844357c551cefed9d5f99.tar
libvpx-42d6be8080c8201f3a1844357c551cefed9d5f99.tar.gz
libvpx-42d6be8080c8201f3a1844357c551cefed9d5f99.tar.bz2
libvpx-42d6be8080c8201f3a1844357c551cefed9d5f99.zip
Remove 2nd-order transform for first-order DC coefficients.
Since addition of the larger-scale transforms (16x16, 32x32), these don't give a benefit at macroblock-sizes anymore. At superblock-sizes, 2nd-order transform was never used over the larger transforms. Future work should test whether there is a benefit for that use case. Change-Id: I90cadfc42befaf201de3eb0c4f7330c56e33330a
Diffstat (limited to 'vp9/common')
-rw-r--r--vp9/common/vp9_blockd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vp9/common/vp9_blockd.h b/vp9/common/vp9_blockd.h
index b2c15fc76..3351e6928 100644
--- a/vp9/common/vp9_blockd.h
+++ b/vp9/common/vp9_blockd.h
@@ -618,6 +618,9 @@ static TX_TYPE get_tx_type(const MACROBLOCKD *xd, const BLOCKD *b) {
}
static int get_2nd_order_usage(const MACROBLOCKD *xd) {
+#if 1
+ return 0;
+#else
int has_2nd_order = (xd->mode_info_context->mbmi.mode != SPLITMV &&
xd->mode_info_context->mbmi.mode != I8X8_PRED &&
xd->mode_info_context->mbmi.mode != B_PRED &&
@@ -625,6 +628,7 @@ static int get_2nd_order_usage(const MACROBLOCKD *xd) {
if (has_2nd_order)
has_2nd_order = (get_tx_type(xd, xd->block) == DCT_DCT);
return has_2nd_order;
+#endif
}
extern void vp9_build_block_doffsets(MACROBLOCKD *xd);