Changeset 635 in SHVCSoftware for branches/SHM-5.1-dev/source


Ignore:
Timestamp:
17 Mar 2014, 22:45:53 (11 years ago)
Author:
seregin
Message:

fix compiler warnings, reported by J. Chen

Location:
branches/SHM-5.1-dev/source
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.1-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r633 r635  
    13631363  for( UInt layerId = 1; layerId < m_numLayers; layerId++ )
    13641364  {
    1365     for(Int i = 0; i < m_acLayerCfg[layerId].m_numScaledRefLayerOffsets; i++)
     1365    for( i = 0; i < m_acLayerCfg[layerId].m_numScaledRefLayerOffsets; i++ )
    13661366    {
    13671367      if( m_acTEncTop[layerId].getVertPhasePositionEnableFlag(i) )
     
    13831383    vps->setVpsNumBspHrdParametersMinus1(vps->getNumLayerSets() - 2);
    13841384    vps->createBspHrdParamBuffer(vps->getVpsNumBspHrdParametersMinus1() + 1);
    1385     for (UInt i = 0; i <= vps->getVpsNumBspHrdParametersMinus1(); i++)
     1385    for ( i = 0; i <= vps->getVpsNumBspHrdParametersMinus1(); i++ )
    13861386    {
    13871387      vps->setBspCprmsPresentFlag(i, true);
     
    13921392      Int iPicWidth         = pcCfgLayer->getSourceWidth();
    13931393      Int iPicHeight        = pcCfgLayer->getSourceHeight();
    1394       UInt uhTotalDepth      = m_uiMaxCUDepth;
    1395       UInt uiNumPartitions   = 1<<(uhTotalDepth<<1);
    1396       UInt uiMinCUWidth      = m_uiMaxCUWidth  >> uhTotalDepth;
    1397       UInt uiMinCUHeight     = m_uiMaxCUHeight >> uhTotalDepth;
    13981394      UInt uiWidthInCU       = ( iPicWidth %m_uiMaxCUWidth  ) ? iPicWidth /m_uiMaxCUWidth  + 1 : iPicWidth /m_uiMaxCUWidth;
    13991395      UInt uiHeightInCU      = ( iPicHeight%m_uiMaxCUHeight ) ? iPicHeight/m_uiMaxCUHeight + 1 : iPicHeight/m_uiMaxCUHeight;
     
    14091405      vps->setBspHrdParameters( i, pcCfgLayer->getFrameRate(), numDU, pcCfgLayer->getTargetBitrate(), ( pcCfgLayer->getIntraPeriod() > 0 ) );
    14101406    }
    1411     for (UInt h = 1; h <= (vps->getNumLayerSets()-1); h++)
     1407    for(UInt h = 1; h <= (vps->getNumLayerSets()-1); h++)
    14121408    {
    14131409      vps->setNumBitstreamPartitions(h, 1);
    1414       for (UInt i = 0; i < vps->getNumBitstreamPartitions(h); i++)
    1415       {
    1416         for (UInt j = 0; j <= (vps->getMaxLayers()-1); j++)
     1410      for( i = 0; i < vps->getNumBitstreamPartitions(h); i++ )
     1411      {
     1412        for( UInt j = 0; j <= (vps->getMaxLayers()-1); j++ )
    14171413        {
    14181414          if (vps->getLayerIdIncludedFlag(h, j) && h == j)
     
    14231419      }
    14241420      vps->setNumBspSchedCombinations(h, 1);
    1425       for (UInt i = 0; i < vps->getNumBspSchedCombinations(h); i++)
    1426       {
    1427         for (UInt j = 0; j < vps->getNumBitstreamPartitions(h); j++)
     1421      for( i = 0; i < vps->getNumBspSchedCombinations(h); i++ )
     1422      {
     1423        for( UInt j = 0; j < vps->getNumBitstreamPartitions(h); j++ )
    14281424        {
    14291425          vps->setBspCombHrdIdx(h, i, j, 0);
  • branches/SHM-5.1-dev/source/Lib/TLibCommon/TComPrediction.cpp

    r595 r635  
    768768#if O0215_PHASE_ALIGNMENT
    769769#if O0194_JOINT_US_BITSHIFT
    770 Void TComPrediction::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag )
     770Void TComPrediction::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag )
    771771{
    772772  m_cUsf.upsampleBasePic( currSlice, refLayerIdc, pcUsPic, pcBasePic, pcTempPic, window, phaseAlignFlag );
    773773}
    774774#else
    775 Void TComPrediction::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag )
     775Void TComPrediction::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag )
    776776{
    777777  m_cUsf.upsampleBasePic( refLayerIdc, pcUsPic, pcBasePic, pcTempPic, window, phaseAlignFlag );
  • branches/SHM-5.1-dev/source/Lib/TLibCommon/TComPrediction.h

    r595 r635  
    4949
    5050#if SVC_UPSAMPLING
    51 #include "TComDataCU.h"
    5251#include "TComUpsampleFilter.h"
    5352#endif
     
    122121#if O0215_PHASE_ALIGNMENT
    123122#if O0194_JOINT_US_BITSHIFT
    124   Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag );
     123  Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag );
    125124#else
    126   Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag );
     125  Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag );
    127126#endif
    128127#else
  • branches/SHM-5.1-dev/source/Lib/TLibCommon/TComRom.h

    r634 r635  
    273273#if SVC_EXTENSION
    274274#if FAST_INTRA_SHVC
    275 extern       UInt g_reducedSetIntraModes[NUM_INTRA_MODE-1];
    276 extern       UInt g_predefSetIntraModes[NUM_INTRA_MODE-1];
     275extern UInt g_reducedSetIntraModes[NUM_INTRA_MODE-1];
     276extern UInt g_predefSetIntraModes[NUM_INTRA_MODE-1];
    277277#endif
    278278extern Int g_mvScalingFactor  [MAX_LAYERS][2];
  • branches/SHM-5.1-dev/source/Lib/TLibCommon/TComUpsampleFilter.h

    r494 r635  
    4545#if O0215_PHASE_ALIGNMENT
    4646#if O0194_JOINT_US_BITSHIFT
    47   Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag );
     47  Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag );
    4848#else
    49   Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag );
     49  Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag );
    5050#endif
    5151#else
  • branches/SHM-5.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r633 r635  
    20272027      READ_UVLC( uiCode, "vps_num_bsp_hrd_parameters_minus1" ); vps->setVpsNumBspHrdParametersMinus1(uiCode);
    20282028      vps->createBspHrdParamBuffer(vps->getVpsNumBspHrdParametersMinus1() + 1);
    2029       for (UInt i = 0; i <= vps->getVpsNumBspHrdParametersMinus1(); i++)
    2030       {
    2031         if (i > 0)
     2029      for( i = 0; i <= vps->getVpsNumBspHrdParametersMinus1(); i++ )
     2030      {
     2031        if( i > 0 )
    20322032        {
    20332033          READ_FLAG( uiCode, "bsp_cprms_present_flag[i]" ); vps->setBspCprmsPresentFlag(i, uiCode);
     
    20352035        parseHrdParameters(vps->getBspHrd(i), i==0 ? 1 : vps->getBspCprmsPresentFlag(i), vps->getMaxTLayers()-1);
    20362036      }
    2037       for (UInt h = 1; h <= (vps->getNumLayerSets()-1); h++)
     2037      for( UInt h = 1; h <= (vps->getNumLayerSets()-1); h++ )
    20382038      {
    20392039        READ_UVLC( uiCode, "num_bitstream_partitions[i]"); vps->setNumBitstreamPartitions(h, uiCode);
    2040         for (UInt i = 0; i < vps->getNumBitstreamPartitions(h); i++)
    2041         {
    2042           for (UInt j = 0; j <= (vps->getMaxLayers()-1); j++)
     2040        for( i = 0; i < vps->getNumBitstreamPartitions(h); i++ )
     2041        {
     2042          for( j = 0; j <= (vps->getMaxLayers()-1); j++ )
    20432043          {
    2044             if (vps->getLayerIdIncludedFlag(h, j))
     2044            if( vps->getLayerIdIncludedFlag(h, j) )
    20452045            {
    20462046              READ_FLAG( uiCode, "layer_in_bsp_flag[h][i][j]" ); vps->setLayerInBspFlag(h, i, j, uiCode);
     
    20512051        {
    20522052          READ_UVLC( uiCode, "num_bsp_sched_combinations[h]"); vps->setNumBspSchedCombinations(h, uiCode);
    2053           for (UInt i = 0; i < vps->getNumBspSchedCombinations(h); i++)
     2053          for( i = 0; i < vps->getNumBspSchedCombinations(h); i++ )
    20542054          {
    2055             for (UInt j = 0; j < vps->getNumBitstreamPartitions(h); j++)
     2055            for( j = 0; j < vps->getNumBitstreamPartitions(h); j++ )
    20562056            {
    20572057              READ_UVLC( uiCode, "bsp_comb_hrd_idx[h][i][j]"); vps->setBspCombHrdIdx(h, i, j, uiCode);
  • branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r633 r635  
    15241524    {
    15251525      WRITE_UVLC( vps->getVpsNumBspHrdParametersMinus1(), "vps_num_bsp_hrd_parameters_minus1" );
    1526       for (UInt i = 0; i <= vps->getVpsNumBspHrdParametersMinus1(); i++)
    1527       {
    1528         if (i > 0)
     1526      for( i = 0; i <= vps->getVpsNumBspHrdParametersMinus1(); i++ )
     1527      {
     1528        if( i > 0 )
    15291529        {
    15301530          WRITE_FLAG( vps->getBspCprmsPresentFlag(i), "bsp_cprms_present_flag[i]" );
     
    15321532        codeHrdParameters(vps->getBspHrd(i), i==0 ? 1 : vps->getBspCprmsPresentFlag(i), vps->getMaxTLayers()-1);
    15331533      }
    1534       for (UInt h = 1; h <= (vps->getNumLayerSets()-1); h++)
     1534      for( UInt h = 1; h <= (vps->getNumLayerSets()-1); h++ )
    15351535      {
    15361536        WRITE_UVLC( vps->getNumBitstreamPartitions(h), "num_bitstream_partitions[i]");
    1537         for (UInt i = 0; i < vps->getNumBitstreamPartitions(h); i++)
    1538         {
    1539           for (UInt j = 0; j <= (vps->getMaxLayers()-1); j++)
     1537        for( i = 0; i < vps->getNumBitstreamPartitions(h); i++ )
     1538        {
     1539          for( j = 0; j <= (vps->getMaxLayers()-1); j++ )
    15401540          {
    15411541            if (vps->getLayerIdIncludedFlag(h, j))
     
    15481548        {
    15491549          WRITE_UVLC( vps->getNumBspSchedCombinations(h), "num_bsp_sched_combinations[h]");
    1550           for (UInt i = 0; i < vps->getNumBspSchedCombinations(h); i++)
     1550          for( i = 0; i < vps->getNumBspSchedCombinations(h); i++ )
    15511551          {
    1552             for (UInt j = 0; j < vps->getNumBitstreamPartitions(h); j++)
     1552            for( j = 0; j < vps->getNumBitstreamPartitions(h); j++ )
    15531553            {
    15541554              WRITE_UVLC( vps->getBspCombHrdIdx(h, i, j), "bsp_comb_hrd_idx[h][i][j]");
     
    22402240    if( slice->getPocMsbValPresentFlag() )
    22412241    {
    2242       Int iMaxPOClsb = 1<< slice->getSPS()->getBitsForPOC();
    2243 
    22442242      UInt lengthVal = 1;
    22452243      UInt tempVal = slice->getPocMsbVal() + 1;
  • branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r633 r635  
    17531753      if (pcSlice->getLayerId() == 0 && m_pcEncTop->getVPS()->getVpsVuiBspHrdPresentFlag())
    17541754      {
    1755         OutputNALUnit nalu(NAL_UNIT_PREFIX_SEI, 0, 1);
     1755        nalu = NALUnit(NAL_UNIT_PREFIX_SEI, 0, 1);
    17561756        m_pcEntropyCoder->setEntropyCoder(m_pcCavlcCoder, pcSlice);
    17571757        m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
Note: See TracChangeset for help on using the changeset viewer.