Changeset 1119 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
7 Jul 2015, 01:55:11 (10 years ago)
Author:
seregin
Message:

macro cleanup: O0096_REP_FORMAT_INDEX

Location:
branches/SHM-dev/source/Lib/TLibEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1118 r1119  
    23212321    assert( vps->getVpsNumRepFormats() > 0 && vps->getVpsNumRepFormats() <= 256 );
    23222322
    2323 #if O0096_REP_FORMAT_INDEX
    23242323#if !VPS_EXTN_UEV_CODING
    23252324    WRITE_CODE( vps->getVpsNumRepFormats() - 1, 8, "vps_num_rep_formats_minus1" );
     
    23272326    WRITE_UVLC( vps->getVpsNumRepFormats() - 1, "vps_num_rep_formats_minus1" );
    23282327#endif
    2329 #else
    2330     WRITE_CODE( vps->getVpsNumRepFormats() - 1, 4, "vps_num_rep_formats_minus1" );
    2331 #endif
     2328
    23322329  }
    23332330  for(i = 0; i < vps->getVpsNumRepFormats(); i++)
     
    23432340      if( vps->getVpsNumRepFormats() > 1 )
    23442341      {
    2345 #if O0096_REP_FORMAT_INDEX
    23462342#if !VPS_EXTN_UEV_CODING
    23472343        WRITE_CODE( vps->getVpsRepFormatIdx(i), 8, "vps_rep_format_idx[i]" );
     
    23542350        WRITE_CODE( vps->getVpsRepFormatIdx(i), numBits, "vps_rep_format_idx[i]" );
    23552351#endif
    2356 #else
    2357         WRITE_CODE( vps->getVpsRepFormatIdx(i), 4, "vps_rep_format_idx[i]" );
    2358 #endif
    2359       }
    2360     }
    2361   }
    2362 #endif
    2363 #endif
     2352
     2353      }
     2354    }
     2355  }
     2356#endif
     2357#endif //REPN_FORMAT_IN_VPS
    23642358
    23652359  WRITE_FLAG(vps->getMaxOneActiveRefLayerFlag(), "max_one_active_ref_layer_flag");
  • TabularUnified branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1117 r1119  
    14911491Void TEncTop::xInitILRP()
    14921492{
    1493 #if O0096_REP_FORMAT_INDEX
    14941493  RepFormat *repFormat = m_cVPS.getVpsRepFormat( m_cSPS.getUpdateRepFormatFlag() ? m_cSPS.getUpdateRepFormatIndex() : m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps(m_layerId) ) );
    1495 #else
    1496   RepFormat *repFormat = m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps(m_layerId) ) );
    1497 #endif
    14981494  Int bitDepthY,bitDepthC,picWidth,picHeight;
    14991495
    1500 #if O0096_REP_FORMAT_INDEX
    15011496  bitDepthY   = repFormat->getBitDepthVpsLuma();
    15021497  bitDepthC   = repFormat->getBitDepthVpsChroma();
    15031498  picWidth    = repFormat->getPicWidthVpsInLumaSamples();
    15041499  picHeight   = repFormat->getPicHeightVpsInLumaSamples();
    1505 #else
    1506   if( m_cSPS.getUpdateRepFormatFlag() )
    1507   {
    1508     bitDepthY   = m_cSPS.getBitDepthY();
    1509     bitDepthC   = m_cSPS.getBitDepthC();
    1510     picWidth    = m_cSPS.getPicWidthInLumaSamples();
    1511     picHeight   = m_cSPS.getPicHeightInLumaSamples();
    1512   }
    1513   else
    1514   {
    1515     bitDepthY   = repFormat->getBitDepthVpsLuma();
    1516     bitDepthC   = repFormat->getBitDepthVpsChroma();
    1517     picWidth    = repFormat->getPicWidthVpsInLumaSamples();
    1518     picHeight   = repFormat->getPicHeightVpsInLumaSamples();
    1519   }
    1520 #endif
    15211500 
    15221501  if(m_layerId > 0)
Note: See TracChangeset for help on using the changeset viewer.