summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2013-05-24 09:23:15 -0700
committerYaowu Xu <yaowu@google.com>2013-05-24 09:28:19 -0700
commita2db88fc26a9392312201c385e75f111fd82130e (patch)
treecfdf467b284054cf0f1677d6a84af8f2926efedf /vp9
parentf116abf774246608c5e1498b8d674436bacaa9a4 (diff)
downloadlibvpx-a2db88fc26a9392312201c385e75f111fd82130e.tar
libvpx-a2db88fc26a9392312201c385e75f111fd82130e.tar.gz
libvpx-a2db88fc26a9392312201c385e75f111fd82130e.tar.bz2
libvpx-a2db88fc26a9392312201c385e75f111fd82130e.zip
Fix two bugs
1) Added an initialization of rd_tx_select_threshs[]. 2) Made updating transform size counts to be consistent Change-Id: Iaa9d6c6be825b0364c9d61a9802873d01356815c
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_encodeframe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c
index fbd455c03..e426ed7dc 100644
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -1201,6 +1201,7 @@ static void encode_frame_internal(VP9_COMP *cpi) {
vpx_memset(cpi->txfm_count_16x16p, 0, sizeof(cpi->txfm_count_16x16p));
vpx_memset(cpi->txfm_count_8x8p, 0, sizeof(cpi->txfm_count_8x8p));
vpx_memset(cpi->rd_tx_select_diff, 0, sizeof(cpi->rd_tx_select_diff));
+ vpx_memset(cpi->rd_tx_select_threshes, 0, sizeof(cpi->rd_tx_select_threshes));
{
struct vpx_usec_timer emr_timer;
vpx_usec_timer_start(&emr_timer);
@@ -1688,7 +1689,8 @@ static void encode_superblock(VP9_COMP *cpi, TOKENEXTRA **t,
}
if (output_enabled) {
- if (cm->txfm_mode == TX_MODE_SELECT && mbmi->mode != I4X4_PRED &&
+ if (cm->txfm_mode == TX_MODE_SELECT &&
+ mbmi->sb_type >= BLOCK_SIZE_SB8X8 &&
!(mbmi->ref_frame != INTRA_FRAME && (mbmi->mb_skip_coeff ||
vp9_segfeature_active(xd, segment_id, SEG_LVL_SKIP)))) {
if (bsize >= BLOCK_SIZE_SB32X32) {