Changeset 1213 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
8 Jul 2015, 23:18:57 (10 years ago)
Author:
seregin
Message:

macro cleanup: R0150_CGS_SIGNAL_CONSTRAINTS

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1212 r1213  
    35063506Void TDecCavlc::xParse3DAsymLUT( TCom3DAsymLUT * pc3DAsymLUT )
    35073507{
    3508 #if R0150_CGS_SIGNAL_CONSTRAINTS
    35093508  UInt uiNumRefLayersM1;
    35103509  READ_UVLC( uiNumRefLayersM1 , "num_cm_ref_layers_minus1" );
     
    35163515    pc3DAsymLUT->addRefLayerId( uiRefLayerId );
    35173516  }
    3518 #endif
     3517
    35193518  UInt uiCurOctantDepth , uiCurPartNumLog2 , uiInputBitDepthM8 , uiOutputBitDepthM8 , uiResQaunBit;
    35203519#if R0300_CGS_RES_COEFF_CODING
     
    35233522  READ_CODE( 2 , uiCurOctantDepth , "cm_octant_depth" );
    35243523  READ_CODE( 2 , uiCurPartNumLog2 , "cm_y_part_num_log2" );     
    3525 #if R0150_CGS_SIGNAL_CONSTRAINTS
     3524
    35263525  UInt uiChromaInputBitDepthM8 , uiChromaOutputBitDepthM8;
     3526
    35273527  READ_UVLC( uiInputBitDepthM8 , "cm_input_luma_bit_depth_minus8" );
    35283528  READ_UVLC( uiChromaInputBitDepthM8 , "cm_input_chroma_bit_depth_minus8" );
    35293529  READ_UVLC( uiOutputBitDepthM8 , "cm_output_luma_bit_depth_minus8" );
    35303530  READ_UVLC( uiChromaOutputBitDepthM8 , "cm_output_chroma_bit_depth_minus8" );
    3531 #else
    3532   READ_CODE( 3 , uiInputBitDepthM8 , "cm_input_bit_depth_minus8" );
    3533   Int iInputBitDepthCDelta;
    3534   READ_SVLC(iInputBitDepthCDelta, "cm_input_bit_depth_chroma delta");
    3535   READ_CODE( 3 , uiOutputBitDepthM8 , "cm_output_bit_depth_minus8" );
    3536   Int iOutputBitDepthCDelta;
    3537   READ_SVLC(iOutputBitDepthCDelta, "cm_output_bit_depth_chroma_delta");
    3538 #endif
    35393531  READ_CODE( 2 , uiResQaunBit , "cm_res_quant_bit" );
    35403532#if R0300_CGS_RES_COEFF_CODING
     
    35443536
    35453537#if R0151_CGS_3D_ASYMLUT_IMPROVE
    3546 #if R0150_CGS_SIGNAL_CONSTRAINTS
    35473538  Int nAdaptCThresholdU = 1 << ( uiChromaInputBitDepthM8 + 8 - 1 );
    35483539  Int nAdaptCThresholdV = 1 << ( uiChromaInputBitDepthM8 + 8 - 1 );
    3549 #else
    3550   Int nAdaptCThresholdU = 1 << ( uiInputBitDepthM8 + 8 + iInputBitDepthCDelta - 1 );
    3551   Int nAdaptCThresholdV = 1 << ( uiInputBitDepthM8 + 8 + iInputBitDepthCDelta - 1 );
    3552 #endif
     3540
    35533541  if( uiCurOctantDepth == 1 )
    35543542  {
     
    35623550  pc3DAsymLUT->destroy();
    35633551  pc3DAsymLUT->create( uiCurOctantDepth , uiInputBitDepthM8 + 8 , 
    3564 #if R0150_CGS_SIGNAL_CONSTRAINTS
    35653552    uiChromaInputBitDepthM8 + 8 ,
    3566 #else
    3567     uiInputBitDepthM8 + 8 + iInputBitDepthCDelta,
    3568 #endif
    35693553    uiOutputBitDepthM8 + 8 ,
    3570 #if R0150_CGS_SIGNAL_CONSTRAINTS
    35713554    uiChromaOutputBitDepthM8 + 8 ,
    3572 #else
    3573     uiOutputBitDepthM8 + 8 + iOutputBitDepthCDelta ,
    3574 #endif
    35753555    uiCurPartNumLog2
    35763556#if R0151_CGS_3D_ASYMLUT_IMPROVE
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1212 r1213  
    16361636#if CGS_3D_ASYMLUT
    16371637        TComPicYuv* pBaseColRec = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec();
    1638         if( pcSlice->getPPS()->getCGSFlag()
    1639 #if R0150_CGS_SIGNAL_CONSTRAINTS
    1640           && m_c3DAsymLUTPPS.isRefLayer( pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc) )
    1641 #endif
    1642           )
    1643         {
    1644 #if R0150_CGS_SIGNAL_CONSTRAINTS
     1638        if( pcSlice->getPPS()->getCGSFlag() && m_c3DAsymLUTPPS.isRefLayer( pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc) ) )
     1639        {
    16451640          assert( pcSlice->getBaseColPic( refLayerIdc )->getSlice( 0 )->getBitDepthY() == m_c3DAsymLUTPPS.getInputBitDepthY() );
    16461641          assert( pcSlice->getBaseColPic( refLayerIdc )->getSlice( 0 )->getBitDepthC() == m_c3DAsymLUTPPS.getInputBitDepthC() );
    16471642          assert( pcSlice->getBitDepthY() >= m_c3DAsymLUTPPS.getOutputBitDepthY() );
    16481643          assert( pcSlice->getBitDepthY() >= m_c3DAsymLUTPPS.getOutputBitDepthC() );
    1649 #endif
    1650           if(!m_pColorMappedPic)
     1644
     1645          if( !m_pColorMappedPic )
    16511646          {
    16521647            initAsymLut(pcSlice->getBaseColPic(refLayerIdc)->getSlice(0));
    16531648          }
     1649
    16541650          m_c3DAsymLUTPPS.colorMapping( pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(),  m_pColorMappedPic );
    16551651          pBaseColRec = m_pColorMappedPic;
    16561652        }
    16571653#endif
     1654
    16581655        if( m_pcPic->isSpatialEnhLayer(refLayerIdc) )
    16591656        {
Note: See TracChangeset for help on using the changeset viewer.