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


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/TLibEncoder
Files:
2 edited

Legend:

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

    r1212 r1213  
    24702470Void TEncCavlc::xCode3DAsymLUT( TCom3DAsymLUT * pc3DAsymLUT )
    24712471{
    2472 #if R0150_CGS_SIGNAL_CONSTRAINTS
    24732472  UInt uiNumRefLayers = ( UInt )pc3DAsymLUT->getRefLayerNum();
    24742473  WRITE_UVLC( uiNumRefLayers - 1 , "num_cm_ref_layers_minus1" );
     
    24772476    WRITE_CODE( pc3DAsymLUT->getRefLayerId( i ) , 6 , "cm_ref_layer_id" );
    24782477  }
    2479 #endif
     2478
    24802479  assert( pc3DAsymLUT->getCurOctantDepth() < 4 );
    24812480  WRITE_CODE( pc3DAsymLUT->getCurOctantDepth() , 2 , "cm_octant_depth" );
     
    24832482  WRITE_CODE( pc3DAsymLUT->getCurYPartNumLog2() , 2 , "cm_y_part_num_log2" );
    24842483  assert( pc3DAsymLUT->getInputBitDepthY() < 16 );
    2485 #if R0150_CGS_SIGNAL_CONSTRAINTS
     2484
    24862485  WRITE_UVLC( pc3DAsymLUT->getInputBitDepthY() - 8 , "cm_input_luma_bit_depth_minus8" );
    24872486  WRITE_UVLC( pc3DAsymLUT->getInputBitDepthC() - 8 , "cm_input_chroma_bit_depth_minus8" );
    24882487  WRITE_UVLC( pc3DAsymLUT->getOutputBitDepthY() - 8 , "cm_output_luma_bit_depth_minus8" );
    24892488  WRITE_UVLC( pc3DAsymLUT->getOutputBitDepthC() - 8 , "cm_output_chroma_bit_depth_minus8" );
    2490 #else
    2491   WRITE_CODE( pc3DAsymLUT->getInputBitDepthY() - 8 , 3 , "cm_input_bit_depth_minus8" );
    2492   WRITE_SVLC(pc3DAsymLUT->getInputBitDepthC()-pc3DAsymLUT->getInputBitDepthY(), "cm_input_bit_depth_chroma delta");
    2493   assert( pc3DAsymLUT->getOutputBitDepthY() < 16 );
    2494   WRITE_CODE( pc3DAsymLUT->getOutputBitDepthY() - 8 , 3 , "cm_output_bit_depth_minus8" );
    2495   WRITE_SVLC(pc3DAsymLUT->getOutputBitDepthC()-pc3DAsymLUT->getOutputBitDepthY(), "cm_output_bit_depth_chroma_delta");
    2496 #endif
     2489
    24972490  assert( pc3DAsymLUT->getResQuantBit() < 4 );
    24982491  WRITE_CODE( pc3DAsymLUT->getResQuantBit() , 2 , "cm_res_quant_bit" );
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1212 r1213  
    13981398        if( pcSlice->getPPS()->getCGSFlag() )
    13991399        {
    1400 #if R0150_CGS_SIGNAL_CONSTRAINTS
    14011400          // all reference layers are currently taken as CGS reference layers
    14021401          m_Enc3DAsymLUTPPS.addRefLayerId( pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc) );
    14031402          m_Enc3DAsymLUTPicUpdate.addRefLayerId( pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc) );
    1404 #endif
    1405           if(g_posScalingFactor[refLayerIdc][0] < (1<<16) || g_posScalingFactor[refLayerIdc][1] < (1<<16)) //if(pcPic->isSpatialEnhLayer(refLayerIdc))
     1403
     1404          if( g_posScalingFactor[refLayerIdc][0] < (1<<16) || g_posScalingFactor[refLayerIdc][1] < (1<<16) ) //if(pcPic->isSpatialEnhLayer(refLayerIdc))
    14061405          {
    1407             //downsampling;
     1406            //downsampling
    14081407            downScalePic(pcPic->getPicYuvOrg(), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg());
    1409             //pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg()->dump("ds.yuv", true, true);
     1408           
    14101409            m_Enc3DAsymLUTPPS.setDsOrigPic(pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg());
    14111410            m_Enc3DAsymLUTPicUpdate.setDsOrigPic(pcSlice->getBaseColPic(refLayerIdc)->getPicYuvOrg());
Note: See TracChangeset for help on using the changeset viewer.