]> granicus.if.org Git - libvpx/commitdiff
Fixing problem introduced in one of my previous commits.
authorDmitry Kovalev <dkovalev@google.com>
Fri, 19 Jul 2013 22:18:43 +0000 (15:18 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Fri, 19 Jul 2013 22:18:43 +0000 (15:18 -0700)
Changing fc->tx_probs back to fc->pre_tx_probs. This change actually
affects the bitstream but current test vectors work. Chrome branch is not
affected at all. Broken since:

cc662dd Adding struct tx_probs and struct tx_counts to cleanup the code.

Change-Id: I36dd4b3678e902e10aba8dd49b0012eb558c209d

vp9/common/vp9_entropymode.c
vp9/common/vp9_entropymode.h

index f66f2f31774830bd25249e77c1900c7ec80011ff..b625caaf04baeb547b827185497e90137b727349 100644 (file)
@@ -536,7 +536,7 @@ void vp9_adapt_mode_probs(VP9_COMMON *cm) {
       tx_counts_to_branch_counts_16x16(fc->tx_counts.p16x16[i],
                                        branch_ct_16x16p);
       for (j = 0; j < TX_SIZE_MAX_SB - 2; ++j)
-        fc->tx_probs.p16x16[i][j] = update_tx_ct(fc->tx_probs.p16x16[i][j],
+        fc->tx_probs.p16x16[i][j] = update_tx_ct(fc->pre_tx_probs.p16x16[i][j],
                                                  branch_ct_16x16p[j]);
 
       tx_counts_to_branch_counts_32x32(fc->tx_counts.p32x32[i],
index fa6722c8d689421e2fbef600b94ad79cdc268625..35ec9c4123dd88429ce0dfc96c1b7eb0054f66c6 100644 (file)
@@ -26,7 +26,7 @@ struct VP9Common;
 struct tx_probs {
   vp9_prob p32x32[TX_SIZE_CONTEXTS][TX_SIZE_MAX_SB - 1];
   vp9_prob p16x16[TX_SIZE_CONTEXTS][TX_SIZE_MAX_SB - 2];
-  vp9_prob p8x8[TX_SIZE_CONTEXTS][TX_SIZE_MAX_SB - 2];
+  vp9_prob p8x8[TX_SIZE_CONTEXTS][TX_SIZE_MAX_SB - 3];
 };
 
 struct tx_counts {