Changeset 1213 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 8 Jul 2015, 23:18:57 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1212 r1213 3506 3506 Void TDecCavlc::xParse3DAsymLUT( TCom3DAsymLUT * pc3DAsymLUT ) 3507 3507 { 3508 #if R0150_CGS_SIGNAL_CONSTRAINTS3509 3508 UInt uiNumRefLayersM1; 3510 3509 READ_UVLC( uiNumRefLayersM1 , "num_cm_ref_layers_minus1" ); … … 3516 3515 pc3DAsymLUT->addRefLayerId( uiRefLayerId ); 3517 3516 } 3518 #endif 3517 3519 3518 UInt uiCurOctantDepth , uiCurPartNumLog2 , uiInputBitDepthM8 , uiOutputBitDepthM8 , uiResQaunBit; 3520 3519 #if R0300_CGS_RES_COEFF_CODING … … 3523 3522 READ_CODE( 2 , uiCurOctantDepth , "cm_octant_depth" ); 3524 3523 READ_CODE( 2 , uiCurPartNumLog2 , "cm_y_part_num_log2" ); 3525 #if R0150_CGS_SIGNAL_CONSTRAINTS 3524 3526 3525 UInt uiChromaInputBitDepthM8 , uiChromaOutputBitDepthM8; 3526 3527 3527 READ_UVLC( uiInputBitDepthM8 , "cm_input_luma_bit_depth_minus8" ); 3528 3528 READ_UVLC( uiChromaInputBitDepthM8 , "cm_input_chroma_bit_depth_minus8" ); 3529 3529 READ_UVLC( uiOutputBitDepthM8 , "cm_output_luma_bit_depth_minus8" ); 3530 3530 READ_UVLC( uiChromaOutputBitDepthM8 , "cm_output_chroma_bit_depth_minus8" ); 3531 #else3532 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 #endif3539 3531 READ_CODE( 2 , uiResQaunBit , "cm_res_quant_bit" ); 3540 3532 #if R0300_CGS_RES_COEFF_CODING … … 3544 3536 3545 3537 #if R0151_CGS_3D_ASYMLUT_IMPROVE 3546 #if R0150_CGS_SIGNAL_CONSTRAINTS3547 3538 Int nAdaptCThresholdU = 1 << ( uiChromaInputBitDepthM8 + 8 - 1 ); 3548 3539 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 3553 3541 if( uiCurOctantDepth == 1 ) 3554 3542 { … … 3562 3550 pc3DAsymLUT->destroy(); 3563 3551 pc3DAsymLUT->create( uiCurOctantDepth , uiInputBitDepthM8 + 8 , 3564 #if R0150_CGS_SIGNAL_CONSTRAINTS3565 3552 uiChromaInputBitDepthM8 + 8 , 3566 #else3567 uiInputBitDepthM8 + 8 + iInputBitDepthCDelta,3568 #endif3569 3553 uiOutputBitDepthM8 + 8 , 3570 #if R0150_CGS_SIGNAL_CONSTRAINTS3571 3554 uiChromaOutputBitDepthM8 + 8 , 3572 #else3573 uiOutputBitDepthM8 + 8 + iOutputBitDepthCDelta ,3574 #endif3575 3555 uiCurPartNumLog2 3576 3556 #if R0151_CGS_3D_ASYMLUT_IMPROVE -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1212 r1213 1636 1636 #if CGS_3D_ASYMLUT 1637 1637 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 { 1645 1640 assert( pcSlice->getBaseColPic( refLayerIdc )->getSlice( 0 )->getBitDepthY() == m_c3DAsymLUTPPS.getInputBitDepthY() ); 1646 1641 assert( pcSlice->getBaseColPic( refLayerIdc )->getSlice( 0 )->getBitDepthC() == m_c3DAsymLUTPPS.getInputBitDepthC() ); 1647 1642 assert( pcSlice->getBitDepthY() >= m_c3DAsymLUTPPS.getOutputBitDepthY() ); 1648 1643 assert( pcSlice->getBitDepthY() >= m_c3DAsymLUTPPS.getOutputBitDepthC() ); 1649 #endif 1650 if( !m_pColorMappedPic)1644 1645 if( !m_pColorMappedPic ) 1651 1646 { 1652 1647 initAsymLut(pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)); 1653 1648 } 1649 1654 1650 m_c3DAsymLUTPPS.colorMapping( pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), m_pColorMappedPic ); 1655 1651 pBaseColRec = m_pColorMappedPic; 1656 1652 } 1657 1653 #endif 1654 1658 1655 if( m_pcPic->isSpatialEnhLayer(refLayerIdc) ) 1659 1656 {
Note: See TracChangeset for help on using the changeset viewer.