Changeset 763 in SHVCSoftware


Ignore:
Timestamp:
30 Apr 2014, 01:19:30 (11 years ago)
Author:
seregin
Message:

remove macro VPS_VUI_BITRATE_PICRATE

Location:
branches/SHM-6-dev/source/Lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.cpp

    r762 r763  
    22462246#endif
    22472247#endif
    2248 #if VPS_VUI_BITRATE_PICRATE
    22492248, m_bitRatePresentVpsFlag     (false)
    22502249, m_picRatePresentVpsFlag     (false)
    2251 #endif
    22522250#if REPN_FORMAT_IN_VPS
    22532251#if Q0195_REP_FORMAT_CLEANUP
     
    23712369  }
    23722370#endif
    2373 #if VPS_VUI_BITRATE_PICRATE 
    23742371  ::memset(m_bitRatePresentFlag, 0, sizeof(m_bitRatePresentFlag));
    23752372  ::memset(m_picRatePresentFlag, 0, sizeof(m_picRatePresentFlag));
     
    23782375  ::memset(m_constPicRateIdc   , 0, sizeof(m_constPicRateIdc)   );
    23792376  ::memset(m_avgPicRate        , 0, sizeof(m_avgPicRate)        );
    2380 #endif
    23812377#if REPN_FORMAT_IN_VPS
    23822378  ::memset( m_vpsRepFormatIdx, 0, sizeof(m_vpsRepFormatIdx) );
  • branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.h

    r760 r763  
    616616  Int        m_vpsTransChar[16];
    617617  Int        m_vpsMatCoeff[16];
    618 #endif 
    619 #if VPS_VUI_BITRATE_PICRATE
     618#endif
     619
    620620  Bool       m_bitRatePresentVpsFlag;
    621621  Bool       m_picRatePresentVpsFlag;
     
    626626  Int        m_constPicRateIdc     [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER];
    627627  Int        m_avgPicRate          [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER];
    628 #endif
    629628 
    630629#if P0312_VERT_PHASE_ADJ
     
    10031002  Void   setMaxtrixCoeff(Int idx, Int x)       { m_vpsMatCoeff[idx] = x;        }
    10041003#endif
    1005 #if VPS_VUI_BITRATE_PICRATE
    10061004  Bool   getBitRatePresentVpsFlag()       { return m_bitRatePresentVpsFlag; }
    10071005  Void   setBitRatePresentVpsFlag(Bool x) { m_bitRatePresentVpsFlag = x;    }
     
    10231021  Int    getAvgPicRate(Int i, Int j)          { return m_avgPicRate[i][j]; }
    10241022  Void   setAvgPicRate(Int i, Int j, Int x)   { m_avgPicRate[i][j] = x;    }
    1025 #endif
    10261023#if O0164_MULTI_LAYER_HRD
    10271024  Bool     getVpsVuiBspHrdPresentFlag()                         { return m_vpsVuiBspHrdPresentFlag;      }
  • branches/SHM-6-dev/source/Lib/TLibCommon/TypeDef.h

    r762 r763  
    158158#define TILE_BOUNDARY_ALIGNED_FLAG       1      ///< JCTVC-N0160/JCTVC-N0199 proposal 2 variant 2: VPS VUI flag to indicate tile boundary alignment
    159159#define N0160_VUI_EXT_ILP_REF            1      ///< VUI extension inter-layer dependency offset signalling
    160 #define VPS_VUI_BITRATE_PICRATE          1      ///< JCTVC-N0085: Signal bit rate and picture in VPS VUI
    161160#if M0040_ADAPTIVE_RESOLUTION_CHANGE
    162161#define HIGHER_LAYER_IRAP_SKIP_FLAG      1      ///< JCTVC-O0199: Indication that higher layer IRAP picture uses skip blocks only
  • branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r762 r763  
    20682068  }
    20692069#endif
    2070 #if VPS_VUI_BITRATE_PICRATE
     2070
    20712071  READ_FLAG( uiCode,        "bit_rate_present_vps_flag" );  vps->setBitRatePresentVpsFlag( uiCode ? true : false );
    20722072  READ_FLAG( uiCode,        "pic_rate_present_vps_flag" );  vps->setPicRatePresentVpsFlag( uiCode ? true : false );
    20732073
    20742074  Bool parseFlag = vps->getBitRatePresentVpsFlag() || vps->getPicRatePresentVpsFlag();
    2075   {
    2076     for( i = 0; i < vps->getNumLayerSets(); i++ )
    2077     {
     2075
     2076  for( i = 0; i < vps->getNumLayerSets(); i++ )
     2077  {
    20782078#if BITRATE_PICRATE_SIGNALLING
    2079       for( j = 0; j <= vps->getMaxSLayersInLayerSetMinus1(i); j++ )
    2080 #else
    2081       for( j = 0; j < vps->getMaxTLayers(); j++ )
    2082 #endif
    2083       {
    2084         if( parseFlag && vps->getBitRatePresentVpsFlag() )
    2085         {
    2086           READ_FLAG( uiCode,        "bit_rate_present_flag[i][j]" );  vps->setBitRatePresentFlag( i, j, uiCode ? true : false );
    2087         }
    2088         else
    2089         {
    2090           vps->setBitRatePresentFlag( i, j, false );
    2091         }
    2092         if( parseFlag && vps->getPicRatePresentVpsFlag() )
    2093         {
    2094           READ_FLAG( uiCode,        "pic_rate_present_flag[i][j]" );  vps->setPicRatePresentFlag( i, j, uiCode ? true : false );
    2095         }
    2096         else
    2097         {
    2098           vps->setPicRatePresentFlag( i, j, false );
    2099         }
    2100         if( parseFlag && vps->getBitRatePresentFlag(i, j) )
    2101         {
    2102           READ_CODE( 16, uiCode,    "avg_bit_rate[i][j]" ); vps->setAvgBitRate( i, j, uiCode );
    2103           READ_CODE( 16, uiCode,    "max_bit_rate[i][j]" ); vps->setMaxBitRate( i, j, uiCode );
    2104         }
    2105         else
    2106         {
    2107           vps->setAvgBitRate( i, j, 0 );
    2108           vps->setMaxBitRate( i, j, 0 );
    2109         }
    2110         if( parseFlag && vps->getPicRatePresentFlag(i, j) )
    2111         {
    2112           READ_CODE( 2 , uiCode,    "constant_pic_rate_idc[i][j]" ); vps->setConstPicRateIdc( i, j, uiCode );
    2113           READ_CODE( 16, uiCode,    "avg_pic_rate[i][j]"          ); vps->setAvgPicRate( i, j, uiCode );
    2114         }
    2115         else
    2116         {
    2117           vps->setConstPicRateIdc( i, j, 0 );
    2118           vps->setAvgPicRate     ( i, j, 0 );
    2119         }
    2120       }
    2121     }
    2122   }
    2123 #endif
     2079    for( j = 0; j <= vps->getMaxSLayersInLayerSetMinus1(i); j++ )
     2080#else
     2081    for( j = 0; j < vps->getMaxTLayers(); j++ )
     2082#endif
     2083    {
     2084      if( parseFlag && vps->getBitRatePresentVpsFlag() )
     2085      {
     2086        READ_FLAG( uiCode,        "bit_rate_present_flag[i][j]" );  vps->setBitRatePresentFlag( i, j, uiCode ? true : false );
     2087      }
     2088      else
     2089      {
     2090        vps->setBitRatePresentFlag( i, j, false );
     2091      }
     2092      if( parseFlag && vps->getPicRatePresentVpsFlag() )
     2093      {
     2094        READ_FLAG( uiCode,        "pic_rate_present_flag[i][j]" );  vps->setPicRatePresentFlag( i, j, uiCode ? true : false );
     2095      }
     2096      else
     2097      {
     2098        vps->setPicRatePresentFlag( i, j, false );
     2099      }
     2100      if( parseFlag && vps->getBitRatePresentFlag(i, j) )
     2101      {
     2102        READ_CODE( 16, uiCode,    "avg_bit_rate[i][j]" ); vps->setAvgBitRate( i, j, uiCode );
     2103        READ_CODE( 16, uiCode,    "max_bit_rate[i][j]" ); vps->setMaxBitRate( i, j, uiCode );
     2104      }
     2105      else
     2106      {
     2107        vps->setAvgBitRate( i, j, 0 );
     2108        vps->setMaxBitRate( i, j, 0 );
     2109      }
     2110      if( parseFlag && vps->getPicRatePresentFlag(i, j) )
     2111      {
     2112        READ_CODE( 2 , uiCode,    "constant_pic_rate_idc[i][j]" ); vps->setConstPicRateIdc( i, j, uiCode );
     2113        READ_CODE( 16, uiCode,    "avg_pic_rate[i][j]"          ); vps->setAvgPicRate( i, j, uiCode );
     2114      }
     2115      else
     2116      {
     2117        vps->setConstPicRateIdc( i, j, 0 );
     2118        vps->setAvgPicRate     ( i, j, 0 );
     2119      }
     2120    }
     2121  }
    21242122#if VPS_VUI_VIDEO_SIGNAL_MOVE
    21252123  READ_FLAG( uiCode, "video_signal_info_idx_present_flag" ); vps->setVideoSigPresentVpsFlag( uiCode == 1 );
  • branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r760 r763  
    14551455  }
    14561456#endif
    1457 #if VPS_VUI_BITRATE_PICRATE
    14581457  WRITE_FLAG( vps->getBitRatePresentVpsFlag(),        "bit_rate_present_vps_flag" );
    14591458  WRITE_FLAG( vps->getPicRatePresentVpsFlag(),        "pic_rate_present_vps_flag" );
     
    14901489    }
    14911490  }
    1492 #endif
    14931491#if VPS_VUI_VIDEO_SIGNAL_MOVE
    14941492  WRITE_FLAG( vps->getVideoSigPresentVpsFlag(), "video_signal_info_idx_present_flag" );
Note: See TracChangeset for help on using the changeset viewer.