]> granicus.if.org Git - libvpx/commitdiff
Turn off fixed tx size in frame header
authorJingning Han <jingning@google.com>
Thu, 15 Oct 2015 19:47:22 +0000 (12:47 -0700)
committerJingning Han <jingning@google.com>
Thu, 29 Oct 2015 21:30:56 +0000 (14:30 -0700)
Temporarily turn off the fixed transform size at frame level.

Change-Id: I94a6a3b18893909d33fb7fa91e73ee3568b537b2

vp10/decoder/decodemv.c
vp10/encoder/encodeframe.c

index a4fb8de229a247827346ed8dfc54d865db7c1f94..ef74c871ed3f6177c7c12ce9e56aa4517cf8f44a 100644 (file)
@@ -787,8 +787,7 @@ static void read_inter_frame_mode_info(VP10Decoder *const pbi,
                            idy, idx, r);
     if (xd->counts) {
       const int ctx = get_tx_size_context(xd);
-      inter_block_tx_count_update(cm, xd, mbmi, bsize,
-                                  ctx, &xd->counts->tx);
+      ++get_tx_counts(max_tx_size, ctx, &xd->counts->tx)[mbmi->tx_size];
     }
   } else {
     mbmi->tx_size = read_tx_size(cm, xd, !mbmi->skip || !inter_block, r);
index 32f00f750dfe7d07cb6681806b8251debb0f3adf..aa51c44804b228aca1db8f9379c9b79b2f84818c 100644 (file)
@@ -2972,6 +2972,7 @@ void vp10_encode_frame(VP10_COMP *cpi) {
       }
     }
 
+#if !CONFIG_VAR_TX
     if (cm->tx_mode == TX_MODE_SELECT) {
       int count4x4 = 0;
       int count8x8_lp = 0, count8x8_8x8p = 0;
@@ -3006,6 +3007,7 @@ void vp10_encode_frame(VP10_COMP *cpi) {
         reset_skip_tx_size(cm, TX_16X16);
       }
     }
+#endif
   } else {
     cm->reference_mode = SINGLE_REFERENCE;
     encode_frame_internal(cpi);
@@ -3261,20 +3263,11 @@ static void encode_superblock(VP10_COMP *cpi, ThreadData *td,
         mbmi->sb_type >= BLOCK_8X8  &&
         !(is_inter_block(mbmi) && (mbmi->skip || seg_skip))) {
 #if CONFIG_VAR_TX
-      int tx_size_ctx = get_tx_size_context(xd);
-      if (is_inter_block(mbmi)) {
-        tx_partition_count_update(cm, xd, bsize, mi_row, mi_col,
-                                  td->counts);
-        inter_block_tx_count_update(cm, xd, mbmi, bsize,
-                                    tx_size_ctx, &td->counts->tx);
-      } else {
-        ++get_tx_counts(max_txsize_lookup[bsize], get_tx_size_context(xd),
-                        &td->counts->tx)[mbmi->tx_size];
-      }
-#else
+      if (is_inter_block(mbmi))
+        tx_partition_count_update(cm, xd, bsize, mi_row, mi_col, td->counts);
+#endif
       ++get_tx_counts(max_txsize_lookup[bsize], get_tx_size_context(xd),
                       &td->counts->tx)[mbmi->tx_size];
-#endif
     } else {
       int x, y;
       TX_SIZE tx_size;