shithub: libvpx

Download patch

ref: 511bf49b7ed39a5a88c0d2a1076e552760ed57ee
parent: ad5fea03e670f695a6c10e2181345cd309f84bfd
parent: 9a62ecbd352edc1a75f2b5c8dbfb9ca60efb812c
author: Alex Converse <aconverse@google.com>
date: Mon Jul 25 13:50:42 EDT 2016

Merge "Minor skip segment simplification."

--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -4452,7 +4452,6 @@
   MODE_INFO *mi = xd->mi[0];
   const int seg_skip = segfeature_active(&cm->seg, mi->segment_id,
                                          SEG_LVL_SKIP);
-
   x->skip_recode = !x->select_tx_size && mi->sb_type >= BLOCK_8X8 &&
                    cpi->oxcf.aq_mode != COMPLEXITY_AQ &&
                    cpi->oxcf.aq_mode != CYCLIC_REFRESH_AQ &&
@@ -4508,10 +4507,14 @@
                     VPXMAX(bsize, BLOCK_8X8));
   }
 
+  if (seg_skip) {
+    assert(mi->skip);
+  }
+
   if (output_enabled) {
     if (cm->tx_mode == TX_MODE_SELECT &&
         mi->sb_type >= BLOCK_8X8  &&
-        !(is_inter_block(mi) && (mi->skip || seg_skip))) {
+        !(is_inter_block(mi) && mi->skip)) {
       ++get_tx_counts(max_txsize_lookup[bsize], get_tx_size_context(xd),
                       &td->counts->tx)[mi->tx_size];
     } else {