]> granicus.if.org Git - libvpx/commitdiff
Removal of SEGFEATURES placeholder comments
authorPaul Wilkins <paulwilkins@google.com>
Thu, 9 Feb 2012 17:06:52 +0000 (17:06 +0000)
committerPaul Wilkins <paulwilkins@google.com>
Thu, 9 Feb 2012 17:25:05 +0000 (17:25 +0000)
This commit only involves the removal of placeholder comments
//#if CONFIG_SEGFEATURES.

Change-Id: I94b350daaf998ee0cfdde5aa25b1d3b0522ab816

18 files changed:
vp8/common/blockd.h
vp8/common/loopfilter.c
vp8/common/seg_common.c
vp8/decoder/decodemv.c
vp8/decoder/decodframe.c
vp8/decoder/detokenize.c
vp8/decoder/threading.c
vp8/encoder/bitstream.c
vp8/encoder/block.h
vp8/encoder/encodeframe.c
vp8/encoder/ethreading.c
vp8/encoder/onyx_if.c
vp8/encoder/pickinter.c
vp8/encoder/quantize.c
vp8/encoder/rdopt.c
vp8/encoder/segmentation.c
vp8/encoder/tokenize.c
vp8/encoder/x86/x86_csystemdependent.c

index 15b5da29f097bc9da1b9b8d548a4a05a22c6ffa1..72fee373d512c522e0d6dd2030404c328205e3fe 100644 (file)
@@ -103,7 +103,6 @@ typedef enum
 {
     SEG_LVL_ALT_Q = 0,               // Use alternate Quantizer ....
     SEG_LVL_ALT_LF = 1,              // Use alternate loop filter value...
-//#if CONFIG_SEGFEATURES
     SEG_LVL_REF_FRAME = 2,           // Optional Segment reference frame
     SEG_LVL_MODE = 3,                // Optional Segment mode
     SEG_LVL_EOB = 4,                 // EOB end stop marker.
@@ -284,7 +283,6 @@ typedef struct MacroBlockD
 
     // Segment features
     signed char segment_feature_data[MAX_MB_SEGMENTS][SEG_LVL_MAX];
-//#if CONFIG_SEGFEATURES
     unsigned int segment_feature_mask[MAX_MB_SEGMENTS];
 
     /* mode_based Loop filter adjustment */
index 0832bd00436abb5e5dd3b97b7be68d1cd59fc10f..083e1de7ec63dd5aef0b8aca81da067ca6412036 100644 (file)
@@ -14,9 +14,7 @@
 #include "onyxc_int.h"
 #include "vpx_mem/vpx_mem.h"
 
-//#if CONFIG_SEGFEATURES
 #include "vp8/common/seg_common.h"
-//#endif
 
 typedef unsigned char uc;
 
@@ -244,7 +242,6 @@ void vp8_loop_filter_frame_init(VP8_COMMON *cm,
 
 
         // Set the baseline filter values for each segment
-//#if CONFIG_SEGFEATURES
         if ( segfeature_active( xd, seg, SEG_LVL_ALT_LF ) )
         {
             /* Abs value */
index e4a105e6fd2eb8bd8dd33c1b615b29415164df9d..44588aa9620e149ebb888839778ad50e7ea723e9 100644 (file)
@@ -10,7 +10,6 @@
 
 #include "vp8/common/seg_common.h"
 
-//#if CONFIG_SEGFEATURES
 const int segfeaturedata_signed[SEG_LVL_MAX] = {1, 1, 0, 0, 0, 0};
 const int vp8_seg_feature_data_bits[SEG_LVL_MAX] =
               {QINDEX_BITS, 6, 4, 4, 6, 2};
index 305268db9bbddc22f7cbe518d1b7abb03c59fa75..4680e4aee233ca44f6892342a5f75e1d3fea18c9 100644 (file)
@@ -15,7 +15,6 @@
 #include "onyxd_int.h"
 #include "vp8/common/findnearmv.h"
 
-//#if CONFIG_SEGFEATURES
 #include "vp8/common/seg_common.h"
 #include "vp8/common/pred_common.h"
 
@@ -92,7 +91,6 @@ static void vp8_kfread_modes(VP8D_COMP *pbi,
         pbi->common.last_frame_seg_map[map_index] = m->mbmi.segment_id;
     }
 
-//#if CONFIG_SEGFEATURES
     if ( pbi->common.mb_no_coeff_skip &&
          ( !segfeature_active( &pbi->mb,
                                m->mbmi.segment_id, SEG_LVL_EOB ) ||
@@ -103,7 +101,6 @@ static void vp8_kfread_modes(VP8D_COMP *pbi,
     }
     else
     {
-//#if CONFIG_SEGFEATURES
         if ( segfeature_active( &pbi->mb,
                                 m->mbmi.segment_id, SEG_LVL_EOB ) &&
              ( get_segdata( &pbi->mb,
@@ -238,7 +235,6 @@ static MV_REFERENCE_FRAME read_ref_frame( VP8D_COMP *pbi,
     int seg_ref_active;
     int seg_ref_count = 0;
 
-//#if CONFIG_SEGFEATURES
     VP8_COMMON *const cm = & pbi->common;
     MACROBLOCKD *const xd = &pbi->mb;
 
@@ -345,7 +341,6 @@ static MV_REFERENCE_FRAME read_ref_frame( VP8D_COMP *pbi,
         }
     }
 
-//#if CONFIG_SEGFEATURES
     // Segment reference frame features are enabled
     else
     {
@@ -567,7 +562,6 @@ static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi,
     // Read the macroblock segment id.
     read_mb_segment_id ( pbi, mb_row, mb_col );
 
-//#if CONFIG_SEGFEATURES
     if ( pbi->common.mb_no_coeff_skip &&
          ( !segfeature_active( xd,
                                mbmi->segment_id, SEG_LVL_EOB ) ||
@@ -579,7 +573,6 @@ static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi,
     }
     else
     {
-//#if CONFIG_SEGFEATURES
         if ( segfeature_active( xd,
                                 mbmi->segment_id, SEG_LVL_EOB ) &&
              (get_segdata( xd, mbmi->segment_id, SEG_LVL_EOB ) == 0) )
@@ -606,7 +599,6 @@ static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi,
                           mbmi->ref_frame, pbi->common.ref_frame_sign_bias);
         vp8_mv_ref_probs(&pbi->common, mv_ref_p, rct);
 
-//#if CONFIG_SEGFEATURES
         // Is the segment level mode feature enabled for this segment
         if ( segfeature_active( xd, mbmi->segment_id, SEG_LVL_MODE ) )
         {
@@ -819,7 +811,6 @@ static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi,
         /* required for left and above block mv */
         mbmi->mv.as_int = 0;
 
-//#if CONFIG_SEGFEATURES
         if ( segfeature_active( xd, mbmi->segment_id, SEG_LVL_MODE ) )
             mbmi->mode = (MB_PREDICTION_MODE)
                          get_segdata( xd, mbmi->segment_id, SEG_LVL_MODE );
@@ -968,7 +959,6 @@ void vp8_decode_mode_mvs(VP8D_COMP *pbi)
 
     int mb_row = -1;
 
-//#if CONFIG_SEGFEATURES
 #if 0
     FILE *statsfile;
     statsfile = fopen("decsegmap.stt", "a");
@@ -998,7 +988,6 @@ void vp8_decode_mode_mvs(VP8D_COMP *pbi)
         mb_to_bottom_edge = ((pbi->common.mb_rows - 1 - mb_row) * 16) << 3;
         mb_to_bottom_edge += RIGHT_BOTTOM_MARGIN;
 
-//#if CONFIG_SEGFEATURES
 #if 0
         fprintf(statsfile, "\n" );
 #endif
@@ -1045,7 +1034,6 @@ void vp8_decode_mode_mvs(VP8D_COMP *pbi)
             }
 #endif
 
-//#if CONFIG_SEGFEATURES
 #if 0
             fprintf(statsfile, "%2d%2d%2d   ",
                 mi->mbmi.segment_id, mi->mbmi.ref_frame, mi->mbmi.mode );
@@ -1058,7 +1046,6 @@ void vp8_decode_mode_mvs(VP8D_COMP *pbi)
         mi++;           /* skip left predictor each row */
     }
 
-//#if CONFIG_SEGFEATURES
 #if 0
     fclose(statsfile);
 #endif
index 566af19f48d5120b96a58926ebc61f642d16fa13..3140e70b73fe07d84bd30d9892ba87b57150a7cd 100644 (file)
@@ -38,7 +38,6 @@
 #include "decoderthreading.h"
 #include "dboolhuff.h"
 
-//#if CONFIG_SEGFEATURES
 #include "vp8/common/seg_common.h"
 
 #include <assert.h>
@@ -81,7 +80,6 @@ void mb_init_dequantizer(VP8D_COMP *pbi, MACROBLOCKD *xd)
     int segment_id = xd->mode_info_context->mbmi.segment_id;
 
     // Set the Q baseline allowing for any segment level adjustment
-//#if CONFIG_SEGFEATURES
     if ( segfeature_active( xd, segment_id, SEG_LVL_ALT_Q ) )
     {
         /* Abs Value */
@@ -923,7 +921,6 @@ static void init_frame(VP8D_COMP *pbi)
 
         // Reset the segment feature data to the default stats:
         // Features disabled, 0, with delta coding (Default state).
-//#if CONFIG_SEGFEATURES
         clearall_segfeatures( xd );
 
         xd->mb_segement_abs_delta = SEGMENT_DELTADATA;
@@ -1167,7 +1164,6 @@ int vp8_decode_frame(VP8D_COMP *pbi)
 
             xd->mb_segement_abs_delta = (unsigned char)vp8_read_bit(bc);
 
-//#if CONFIG_SEGFEATURES
             clearall_segfeatures( xd );
 
             // For each segmentation...
@@ -1179,14 +1175,12 @@ int vp8_decode_frame(VP8D_COMP *pbi)
                     // Is the feature enabled
                     if (vp8_read_bit(bc))
                     {
-//#if CONFIG_SEGFEATURES
                         // Update the feature data and mask
                         enable_segfeature(xd, i, j);
 
                         data = (signed char)vp8_read_literal(
                                             bc, seg_feature_data_bits(j));
 
-//#if CONFIG_SEGFEATURES
                         // Is the segment data signed..
                         if ( is_segfeature_signed(j) )
                         {
index 3c0d7403db0074eb242d0ec88f33fd0c60ddd296..6784ccd50b6797bafb1b2f9289fecb9ba9deddaa 100644 (file)
@@ -16,7 +16,6 @@
 #include "vpx_ports/mem.h"
 #include "detokenize.h"
 
-//#if CONFIG_SEGFEATURES
 #include "vp8/common/seg_common.h"
 
 #define BOOL_DATA UINT8
@@ -646,7 +645,6 @@ int vp8_decode_mb_tokens(VP8D_COMP *dx, MACROBLOCKD *xd)
     INT16 v;
     const vp8_prob *Prob;
 
-//#if CONFIG_SEGFEATURES
     int seg_eob = 16;
     int segment_id = xd->mode_info_context->mbmi.segment_id;
 
@@ -693,7 +691,6 @@ BLOCK_LOOP:
     Prob += v * ENTROPY_NODES;
 
 DO_WHILE:
-//#if CONFIG_SEGFEATURES
     if ( c == seg_eob )
         goto BLOCK_FINISHED;
 
index 703cb95f4935949725b04ff686420a317342e030..3d17e18b89e72b101e6cfa5af622290c0aad1b2f 100644 (file)
@@ -72,7 +72,6 @@ static void setup_decoding_thread_data(VP8D_COMP *pbi, MACROBLOCKD *xd, MB_ROW_D
         vpx_memcpy(mbd->segment_feature_data,
                    xd->segment_feature_data,
                    sizeof(xd->segment_feature_data));
-//#if CONFIG_SEGFEATURES
         vpx_memcpy(mbd->segment_feature_mask,
                    xd->segment_feature_mask,
                    sizeof(xd->segment_feature_mask));
index 9e0211d7f3477adfc45434e84afe97a3ecef21ed..b318cc5570825c1cd919c24e55e59f8d6656c77f 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "defaultcoefcounts.h"
 
-//#if CONFIG_SEGFEATURES
 #include "vp8/common/seg_common.h"
 #include "vp8/common/pred_common.h"
 
@@ -844,7 +843,6 @@ static void encode_ref_frame( vp8_writer *const w,
 {
     int seg_ref_active;
     int seg_ref_count = 0;
-//#if CONFIG_SEGFEATURES
     seg_ref_active = segfeature_active( xd,
                                         segment_id,
                                         SEG_LVL_REF_FRAME );
@@ -938,7 +936,6 @@ static void update_ref_probs( VP8_COMP *const cpi )
     const int rf_inter = rfct[LAST_FRAME] +
                          rfct[GOLDEN_FRAME] + rfct[ALTREF_FRAME];
 
-//#if CONFIG_SEGFEATURES
     cm->prob_intra_coded = (rf_intra + rf_inter)
                             ? rf_intra * 255 / (rf_intra + rf_inter) : 1;
 
@@ -1130,7 +1127,6 @@ static void pack_inter_mode_mvs(VP8_COMP *const cpi)
                     }
                 }
 
-//#if CONFIG_SEGFEATURES
                 if ( pc->mb_no_coeff_skip &&
                      ( !segfeature_active( xd, segment_id, SEG_LVL_EOB ) ||
                        ( get_segdata( xd, segment_id, SEG_LVL_EOB ) != 0 ) ) )
@@ -1148,7 +1144,6 @@ static void pack_inter_mode_mvs(VP8_COMP *const cpi)
                     active_section = 6;
 #endif
 
-//#if CONFIG_SEGFEATURES
                     if ( !segfeature_active( xd, segment_id, SEG_LVL_MODE ) )
                         write_ymode(w, mode, pc->fc.ymode_prob);
 
@@ -1207,7 +1202,6 @@ static void pack_inter_mode_mvs(VP8_COMP *const cpi)
                     active_section = 3;
 #endif
 
-//#if CONFIG_SEGFEATURES
                     // Is the segment coding of mode enabled
                     if ( !segfeature_active( xd, segment_id, SEG_LVL_MODE ) )
                     {
@@ -1471,7 +1465,6 @@ static void pack_inter_mode_mvs(VP8_COMP *const cpi)
                 }
             }
 
-//#if CONFIG_SEGFEATURES
             if ( pc->mb_no_coeff_skip &&
                  ( !segfeature_active( xd, segment_id, SEG_LVL_EOB ) ||
                    ( get_segdata( xd, segment_id, SEG_LVL_EOB ) != 0 ) ) )
@@ -1489,7 +1482,6 @@ static void pack_inter_mode_mvs(VP8_COMP *const cpi)
                 active_section = 6;
     #endif
 
-//#if CONFIG_SEGFEATURES
                 if ( !segfeature_active( xd, segment_id, SEG_LVL_MODE ) )
                     write_ymode(w, mode, pc->fc.ymode_prob);
 
@@ -1548,7 +1540,6 @@ static void pack_inter_mode_mvs(VP8_COMP *const cpi)
                 active_section = 3;
 #endif
 
-//#if CONFIG_SEGFEATURES
                 // Is the segment coding of mode enabled
                 if ( !segfeature_active( xd, segment_id, SEG_LVL_MODE ) )
                 {
@@ -1671,7 +1662,6 @@ static void write_kfmodes(VP8_COMP *cpi)
     int col_delta[4] = {+1, -1, +1, +1};
     const int mis = c->mode_info_stride;
 
-//#if CONFIG_SEGFEATURES
     MACROBLOCKD *xd = &cpi->mb.e_mbd;
 
     if (c->mb_no_coeff_skip)
@@ -1734,7 +1724,6 @@ static void write_kfmodes(VP8_COMP *cpi)
                     write_mb_segid(bc, &m->mbmi, &cpi->mb.e_mbd);
                 }
 
-//#if CONFIG_SEGFEATURES
                 if ( c->mb_no_coeff_skip &&
                      ( !segfeature_active( xd, segment_id, SEG_LVL_EOB ) ||
                        (get_segdata( xd, segment_id, SEG_LVL_EOB ) != 0) ) )
@@ -1798,7 +1787,6 @@ static void write_kfmodes(VP8_COMP *cpi)
     int mb_row = -1;
     int prob_skip_false = 0;
 
-//#if CONFIG_SEGFEATURES
     MACROBLOCKD *xd = &cpi->mb.e_mbd;
 
     if (c->mb_no_coeff_skip)
@@ -1843,7 +1831,6 @@ static void write_kfmodes(VP8_COMP *cpi)
                 write_mb_segid(bc, &m->mbmi, &cpi->mb.e_mbd);
             }
 
-//#if CONFIG_SEGFEATURES
             if ( c->mb_no_coeff_skip &&
                  ( !segfeature_active( xd, segment_id, SEG_LVL_EOB ) ||
                    (get_segdata( xd, segment_id, SEG_LVL_EOB ) != 0) ) )
@@ -2596,7 +2583,6 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size)
 
             vp8_write_bit(bc, (xd->mb_segement_abs_delta) ? 1 : 0);
 
-//#if CONFIG_SEGFEATURES
             // For each segments id...
             for (i = 0; i < MAX_MB_SEGMENTS; i++)
             {
@@ -2605,13 +2591,11 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size)
                 {
                     Data = get_segdata( xd, i, j );
 
-//#if CONFIG_SEGFEATURES
                     // If the feature is enabled...
                     if ( segfeature_active( xd, i, j ) )
                     {
                         vp8_write_bit(bc, 1);
 
-//#if CONFIG_SEGFEATURES
                         // Is the segment data signed..
                         if ( is_segfeature_signed(j) )
                         {
index 68de571c5468a87f4d69b442ba0ac5fe8df5a0e4..3ac3d79f05f46d30cc698ce5858d4f57a9ab6c96 100644 (file)
@@ -46,7 +46,6 @@ typedef struct
     int src;
     int src_stride;
 
-//#if CONFIG_SEGFEATURES
     int eob_max_offset;
 
 } BLOCK;
index 1600456ece40b6e027371526bce061e5329ef412..a0909eb7668e36feea3a1df575f40bef181d9f62 100644 (file)
@@ -33,7 +33,6 @@
 #include "vpx_ports/vpx_timer.h"
 #include "vp8/common/pred_common.h"
 
-//#if CONFIG_SEGFEATURES
 //#define DBG_PRNT_SEGMAP 1
 
 #if CONFIG_RUNTIME_CPU_DETECT
@@ -807,7 +806,6 @@ void encode_sb_row (VP8_COMP *cpi,
     x->partition_info     += 1 - (cm->mb_cols & 0x1) + xd->mode_info_stride;
     x->gf_active_ptr      += cm->mb_cols - (cm->mb_cols & 0x1);
 
-//#if CONFIG_SEGFEATURES
 // debug output
 #if DBG_PRNT_SEGMAP
     {
@@ -1061,7 +1059,6 @@ void encode_mb_row(VP8_COMP *cpi,
 #endif
 
 
-//#if CONFIG_SEGFEATURES
 // debug output
 #if DBG_PRNT_SEGMAP
     {
@@ -1186,7 +1183,6 @@ static void encode_frame_internal(VP8_COMP *cpi)
     // this frame which may be updated with each itteration of the recode loop.
     compute_mod_refprobs( cm );
 
-//#if CONFIG_SEGFEATURES
 // debug output
 #if DBG_PRNT_SEGMAP
     {
@@ -1878,7 +1874,6 @@ int vp8cx_encode_inter_macroblock
                 vp8cx_mb_init_quantizer(cpi, x);
             }
         }
-//#if CONFIG_SEGFEATURES
         else
         {
             //segfeature_test_function(cpi, xd);
@@ -1927,7 +1922,6 @@ int vp8cx_encode_inter_macroblock
             vp8_update_zbin_extra(cpi, x);
     }
 
-//#if CONFIG_SEGFEATURES
     seg_ref_active = segfeature_active( xd, *segment_id, SEG_LVL_REF_FRAME );
 
     // SET VARIOUS PREDICTION FLAGS
index 885a8cfdf68e8098ae13b8a1fc4efb156299c4cd..c715149be7313ab468058895b9e4006ec7856594 100644 (file)
@@ -358,7 +358,6 @@ static void setup_mbby_copy(MACROBLOCK *mbdst, MACROBLOCK *mbsrc)
         z->block[i].src             = x->block[i].src;
         */
         z->block[i].src_stride      = x->block[i].src_stride;
-//#if CONFIG_SEGFEATURES
         z->block[i].eob_max_offset  = x->block[i].eob_max_offset;
     }
 
@@ -402,7 +401,6 @@ static void setup_mbby_copy(MACROBLOCK *mbdst, MACROBLOCK *mbsrc)
                    xd->segment_feature_data,
                    sizeof(xd->segment_feature_data));
 
-//#if CONFIG_SEGFEATURES
         vpx_memcpy(zd->segment_feature_mask,
                    xd->segment_feature_mask,
                    sizeof(xd->segment_feature_mask));
index d06d12822b5d22e8b2ee131778fdc5d61c56cf8d..3c94cb51d8f4bade1b9d722ddd88d05e81b48461 100644 (file)
@@ -34,7 +34,6 @@
 #include "vpx_ports/vpx_timer.h"
 #include "temporal_filter.h"
 
-//#if CONFIG_SEGFEATURES
 #include "vp8/common/seg_common.h"
 #include "mbgraph.h"
 #include "vp8/common/pred_common.h"
@@ -298,7 +297,6 @@ static void setup_features(VP8_COMP *cpi)
     xd->update_mb_segmentation_data = 0;
     vpx_memset(xd->mb_segment_tree_probs, 255, sizeof(xd->mb_segment_tree_probs));
 
-//#if CONFIG_SEGFEATURES
     clearall_segfeatures( xd );
 
     xd->mode_ref_lf_delta_enabled = 0;
@@ -422,7 +420,6 @@ static void segmentation_test_function(VP8_PTR ptr)
     feature_data[SEG_LVL_ALT_LF][2] = 0;
     feature_data[SEG_LVL_ALT_LF][3] = 0;
 
-//#if CONFIG_SEGFEATURES
     // Enable features as required
     enable_segfeature(xd, 1, SEG_LVL_ALT_Q);
 
@@ -466,7 +463,6 @@ static int compute_qdelta( VP8_COMP *cpi, double qstart, double qtarget )
     return target_index - start_index;
 }
 
-//#if CONFIG_SEGFEATURES
 static void init_seg_features(VP8_COMP *cpi)
 {
     VP8_COMMON *cm = &cpi->common;
@@ -791,7 +787,6 @@ static void cyclic_background_refresh(VP8_COMP *cpi, int Q, int lf_adjustment)
     feature_data[SEG_LVL_ALT_LF][2] = 0;
     feature_data[SEG_LVL_ALT_LF][3] = 0;
 
-//#if CONFIG_SEGFEATURES
     // Enable the loop and quant changes in the feature mask
     enable_segfeature(xd, 1, SEG_LVL_ALT_Q);
     enable_segfeature(xd, 1, SEG_LVL_ALT_LF);
@@ -2398,7 +2393,6 @@ VP8_PTR vp8_create_compressor(VP8_CONFIG *oxcf)
     }
 #endif
 
-//#if CONFIG_SEGFEATURES
     for (i = 0; i < ( sizeof(cpi->mbgraph_stats) /
                       sizeof(cpi->mbgraph_stats[0]) ); i++)
     {
@@ -2893,7 +2887,6 @@ void vp8_remove_compressor(VP8_PTR *ptr)
     vpx_free(cpi->tok);
     vpx_free(cpi->cyclic_refresh_map);
 
-//#if CONFIG_SEGFEATURES
     for (i = 0; i < sizeof(cpi->mbgraph_stats) / sizeof(cpi->mbgraph_stats[0]); i++)
     {
         vpx_free(cpi->mbgraph_stats[i].mb_stats);
@@ -5106,7 +5099,6 @@ static void encode_frame_to_data_rate
 
 #endif
 
-//#if CONFIG_SEGFEATURES
 #if 0
     // Debug stats for segment feature experiments.
     print_seg_map(cpi);
@@ -5853,7 +5845,6 @@ int vp8_set_roimap(VP8_PTR comp, unsigned char *map, unsigned int rows, unsigned
     cpi->segment_encode_breakout[2] = threshold[2];
     cpi->segment_encode_breakout[3] = threshold[3];
 
-//#if CONFIG_SEGFEATURES
     // Enable the loop and quant changes in the feature mask
     for ( i = 0; i < 4; i++ )
     {
index 8b78986e244f8b2dba85f935d1c27d964b54da5f..f8afeaddc5c37e825306f0d8054817fa8de53bb3 100644 (file)
@@ -27,7 +27,6 @@
 #include "rdopt.h"
 #include "vpx_mem/vpx_mem.h"
 
-//#if CONFIG_SEGFEATURES
 #include "vp8/common/seg_common.h"
 
 #if CONFIG_RUNTIME_CPU_DETECT
@@ -544,7 +543,6 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
 
         this_mode = vp8_mode_order[mode_index];
 
-//#if CONFIG_SEGFEATURES
         // If the segment reference frame feature is enabled....
         // then do nothing if the current ref frame is not allowed..
         if ( segfeature_active( xd, segment_id, SEG_LVL_REF_FRAME ) &&
@@ -569,7 +567,6 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset,
             continue;
         }
 #endif
-//#if !CONFIG_SEGFEATURES
         // Disable this drop out case if either the mode or ref frame
         // segment level feature is enabled for this segment. This is to
         // prevent the possibility that the we end up unable to pick any mode.
index 1fc39b343e978a9e3b20444b12757510d4821c61..b1603c39ed2ff6025578ac4be23d88f885aef765 100644 (file)
@@ -16,7 +16,6 @@
 #include "quantize.h"
 #include "vp8/common/quant_common.h"
 
-//#if CONFIG_SEGFEATURES
 #include "vp8/common/seg_common.h"
 
 #ifdef ENC_DEBUG
@@ -135,7 +134,6 @@ void vp8_regular_quantize_b(BLOCK *b, BLOCKD *d)
 
     eob = -1;
 
-//#if CONFIG_SEGFEATURES
     for (i = 0; i < b->eob_max_offset; i++)
     {
         rc   = vp8_default_zig_zag1d[i];
@@ -1099,7 +1097,6 @@ void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x)
     int segment_id = xd->mode_info_context->mbmi.segment_id;
 
     // Select the baseline MB Q index allowing for any segment level change.
-//#if CONFIG_SEGFEATURES
     if ( segfeature_active( xd, segment_id, SEG_LVL_ALT_Q ) )
     {
         // Abs Value
@@ -1135,7 +1132,7 @@ void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x)
         x->e_mbd.block[i].dequant = cpi->common.Y1dequant[QIndex];
         x->block[i].zrun_zbin_boost = cpi->zrun_zbin_boost_y1[QIndex];
         x->block[i].zbin_extra = (short)zbin_extra;
-//#if CONFIG_SEGFEATURES
+
         // Segment max eob offset feature.
         if ( segfeature_active( xd, segment_id, SEG_LVL_EOB ) )
         {
@@ -1162,7 +1159,7 @@ void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x)
         x->e_mbd.block[i].dequant = cpi->common.UVdequant[QIndex];
         x->block[i].zrun_zbin_boost = cpi->zrun_zbin_boost_uv[QIndex];
         x->block[i].zbin_extra = (short)zbin_extra;
-//#if CONFIG_SEGFEATURES
+
         // Segment max eob offset feature.
         if ( segfeature_active( xd, segment_id, SEG_LVL_EOB ) )
         {
@@ -1188,7 +1185,6 @@ void vp8cx_mb_init_quantizer(VP8_COMP *cpi, MACROBLOCK *x)
     x->block[24].zrun_zbin_boost = cpi->zrun_zbin_boost_y2[QIndex];
     x->block[24].zbin_extra = (short)zbin_extra;
 
-//#if CONFIG_SEGFEATURES
     // TBD perhaps not use for Y2
     // Segment max eob offset feature.
     if ( segfeature_active( xd, segment_id, SEG_LVL_EOB ) )
index d9409b32f7ab3f0952341013800db2c5b2ec24cd..3d35228d71f11c233ffeca9781da6c357bf44dd0 100644 (file)
@@ -38,7 +38,6 @@
 #include "dct.h"
 #include "vp8/common/systemdependent.h"
 
-//#if CONFIG_SEGFEATURES
 #include "vp8/common/seg_common.h"
 #include "vp8/common/pred_common.h"
 
@@ -2248,7 +2247,6 @@ void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int
         x->e_mbd.mode_info_context->mbmi.second_ref_frame = vp8_second_ref_frame_order[mode_index];
 #endif /* CONFIG_DUALPRED */
 
-//#if CONFIG_SEGFEATURES
         // If the segment reference frame feature is enabled....
         // then do nothing if the current ref frame is not allowed..
         if ( segfeature_active( xd, segment_id, SEG_LVL_REF_FRAME ) &&
@@ -2276,7 +2274,6 @@ void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int
         }
 #endif
 
-//#if !CONFIG_SEGFEATURES
         // Disable this drop out case if either the mode or ref frame
         // segment level feature is enabled for this segment. This is to
         // prevent the possibility that the we end up unable to pick any mode.
index 4a1ce649c78463f325da0ffd09e8ce3dc4e2d55e..c4a1475583cfad638b3eea391040564b56d23ced 100644 (file)
@@ -111,7 +111,6 @@ void vp8_set_segment_data(VP8_PTR ptr,
     vpx_memcpy(cpi->mb.e_mbd.segment_feature_data, feature_data,
                sizeof(cpi->mb.e_mbd.segment_feature_data));
 
-//#if CONFIG_SEGFEATURES
     // TBD ?? Set the feature mask
     // vpx_memcpy(cpi->mb.e_mbd.segment_feature_mask, 0,
     //            sizeof(cpi->mb.e_mbd.segment_feature_mask));
index f14ad07942eecba4a5868c559778c85366e5550a..2a17c312c575c858e9fac95610b8e4dcdf1c7f0e 100644 (file)
@@ -17,7 +17,6 @@
 #include "tokenize.h"
 #include "vpx_mem/vpx_mem.h"
 
-//#if CONFIG_SEGFEATURES
 #include "vp8/common/seg_common.h"
 
 /* Global event counters used for accumulating statistics across several
@@ -184,7 +183,6 @@ static void tokenize2nd_order_b
     ENTROPY_CONTEXT * l;
     int band, rc, v, token;
 
-//#if CONFIG_SEGFEATURES
     int seg_eob = 16;
     int segment_id = xd->mode_info_context->mbmi.segment_id;
 
@@ -220,7 +218,6 @@ static void tokenize2nd_order_b
         t++;
     }
 
-//#if CONFIG_SEGFEATURES
     if (c < seg_eob)
     {
         band = vp8_coef_bands[c];
@@ -320,7 +317,6 @@ static void tokenize1st_order_b
     int band, rc, v;
     int tmp1, tmp2;
 
-//#if CONFIG_SEGFEATURES
     int seg_eob = 16;
     int segment_id = xd->mode_info_context->mbmi.segment_id;
 
@@ -364,7 +360,6 @@ static void tokenize1st_order_b
             t++;
         }
 
-//#if CONFIG_SEGFEATURES
         if (c < seg_eob)
         {
             band = vp8_coef_bands[c];
@@ -413,7 +408,7 @@ static void tokenize1st_order_b
             pt = vp8_prev_token_class[token];
             t++;
         }
-//#if CONFIG_SEGFEATURES
+
         if (c < seg_eob)
         {
             band = vp8_coef_bands[c];
@@ -483,7 +478,6 @@ void vp8_tokenize_mb(VP8_COMP *cpi, MACROBLOCKD *x, TOKENEXTRA **t)
     int tx_type = get_seg_tx_type(x, x->mode_info_context->mbmi.segment_id);
 #endif
 
-//#if CONFIG_SEGFEATURES
     // If the MB is going to be skipped because of a segment level flag
     // exclude this from the skip count stats used to calculate the
     // transmitted skip probability;
index 382eb0e421b8c80aff7110a069e3556e79f9e1f5..d24e7dc4db0f171f0d904338639085cf46b989f8 100644 (file)
@@ -217,9 +217,6 @@ void vp8_arch_x86_encoder_init(VP8_COMP *cpi)
         cpi->rtcd.encodemb.submby                = vp8_subtract_mby_sse2;
         cpi->rtcd.encodemb.submbuv               = vp8_subtract_mbuv_sse2;
 
-//#if !CONFIG_SEGFEATURES
-//        cpi->rtcd.quantize.quantb                = vp8_regular_quantize_b_sse2;
-//#endif
         cpi->rtcd.quantize.fastquantb            = vp8_fast_quantize_b_sse2;
 
 #if !(CONFIG_REALTIME_ONLY)
@@ -280,10 +277,6 @@ void vp8_arch_x86_encoder_init(VP8_COMP *cpi)
         cpi->rtcd.variance.sad8x8x8              = vp8_sad8x8x8_sse4;
         cpi->rtcd.variance.sad4x4x8              = vp8_sad4x4x8_sse4;
         cpi->rtcd.search.full_search             = vp8_full_search_sadx8;
-
-//#if !CONFIG_SEGFEATURES
-//        cpi->rtcd.quantize.quantb                = vp8_regular_quantize_b_sse4;
-//#endif
     }
 #endif