diff options
author | Deb Mukherjee <debargha@google.com> | 2012-10-15 16:41:41 -0700 |
---|---|---|
committer | Deb Mukherjee <debargha@google.com> | 2012-10-19 06:58:15 -0700 |
commit | f3208f362b0a08b815a3439c7d71890eef49f174 (patch) | |
tree | 744eee097bc63243b18b532a2995d5a12f12a600 /vp8/decoder/detokenize.c | |
parent | b44397ebcdc714965f7c12f9512164d2cb3c1aa1 (diff) | |
download | libvpx-f3208f362b0a08b815a3439c7d71890eef49f174.tar libvpx-f3208f362b0a08b815a3439c7d71890eef49f174.tar.gz libvpx-f3208f362b0a08b815a3439c7d71890eef49f174.tar.bz2 libvpx-f3208f362b0a08b815a3439c7d71890eef49f174.zip |
Some cleanups and fixes.
Separates the logic on transform type selection previously spread out
over a number of files into a separate function. Currently the tx_type
field in b_mode_info is not used, but still left in there to eventually
use for signaling the transform type in the bitstream.
Also, now for tx_type = DCT_DCT, the regular integer DCT is used, as
opposed to the floating point DCT used in conjuction with hybrid
transform.
Results change somewhat due to the transform change, but are within
reasonable limits. The hd/std-hd sets are slightly up, while derf/yt
are slightly down.
Change-Id: I5776840c2239ca2da31ca6cfd7fd1148dc5f9e0f
Diffstat (limited to 'vp8/decoder/detokenize.c')
-rw-r--r-- | vp8/decoder/detokenize.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/vp8/decoder/detokenize.c b/vp8/decoder/detokenize.c index 5b5ec7e2a..4ca7d8648 100644 --- a/vp8/decoder/detokenize.c +++ b/vp8/decoder/detokenize.c @@ -578,8 +578,7 @@ int vp8_decode_mb_tokens_8x8(VP8D_COMP *pbi, MACROBLOCKD *xd) { if (i == 16) type = PLANE_TYPE_UV; #if CONFIG_HYBRIDTRANSFORM8X8 - if (type == PLANE_TYPE_Y_WITH_DC && - xd->mode_info_context->mbmi.mode == I8X8_PRED) { + if (type == PLANE_TYPE_Y_WITH_DC) { tx_type = get_tx_type(xd, xd->block + i); } #endif @@ -673,10 +672,7 @@ int vp8_decode_mb_tokens(VP8D_COMP *dx, MACROBLOCKD *xd) { type = PLANE_TYPE_UV; #if CONFIG_HYBRIDTRANSFORM - if (type == PLANE_TYPE_Y_WITH_DC) - tx_type = get_tx_type(xd, &xd->block[i]); -#endif -#if CONFIG_HYBRIDTRANSFORM + tx_type = get_tx_type(xd, &xd->block[i]); switch(tx_type) { case ADST_DCT : scan = vp8_row_scan; |