Changeset 856 in SHVCSoftware for branches/SHM-dev/source/App/TAppDecoder
- Timestamp:
- 11 Aug 2014, 19:11:02 (10 years ago)
- Location:
- branches/SHM-dev/source/App/TAppDecoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.cpp
r820 r856 115 115 ("TarDecLayerIdSetFile,l", cfg_TargetDecLayerIdSetFile, string(""), "targetDecLayerIdSet file name. The file should include white space separated LayerId values to be decoded. Omitting the option or a value of -1 in the file decodes all layers.") 116 116 ("RespectDefDispWindow,w", m_respectDefDispWindow, 0, "Only output content inside the default display window\n") 117 #if Q0074_COLOUR_REMAPPING_SEI 118 ("SEIColourRemappingInfo", m_colourRemapSEIEnabled, false, "Control handling of Colour Remapping Information SEI messages\n" 119 "\t1: apply colour remapping on decoded pictures if available in the bitstream\n" 120 "\t0: ignore SEI message") 121 #endif 117 122 ; 118 123 po::setDefaults(opts); -
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.h
r820 r856 69 69 Int m_iMaxTemporalLayer; ///< maximum temporal layer to be decoded 70 70 Int m_decodedPictureHashSEIEnabled; ///< Checksum(3)/CRC(2)/MD5(1)/disable(0) acting on decoded picture hash SEI message 71 #if Q0074_COLOUR_REMAPPING_SEI 72 Bool m_colourRemapSEIEnabled; ///< Enable the Colour Remapping Information SEI message if available (remapping decoded pictures) 73 #endif 71 74 72 75 #if SVC_EXTENSION … … 98 101 , m_iMaxTemporalLayer(-1) 99 102 , m_decodedPictureHashSEIEnabled(0) 103 #if Q0074_COLOUR_REMAPPING_SEI 104 , m_colourRemapSEIEnabled(0) 105 #endif 100 106 #if SVC_EXTENSION 101 107 , m_tgtLayerId(0) -
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r845 r856 568 568 m_acTDecTop[layer].init(); 569 569 m_acTDecTop[layer].setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled); 570 #if Q0074_COLOUR_REMAPPING_SEI 571 m_acTDecTop[layer].setColourRemappingInfoSEIEnabled(m_colourRemapSEIEnabled); 572 #endif 570 573 m_acTDecTop[layer].setNumLayer( m_tgtLayerId + 1 ); 571 574 #if OUTPUT_LAYER_SET_INDEX … … 573 576 #endif 574 577 } 575 576 578 #else 577 579 m_cTDecTop.init(); 578 580 m_cTDecTop.setDecodedPictureHashSEIEnabled(m_decodedPictureHashSEIEnabled); 581 #if Q0074_COLOUR_REMAPPING_SEI 582 m_cTDecTop.setColourRemappingInfoSEIEnabled(m_colourRemapSEIEnabled); 583 #endif 579 584 #endif 580 585 } … … 675 680 TComPicYuv* pPicCYuvRecTop = pcPicTop->getPicYuvRec(); 676 681 TComPicYuv* pPicCYuvRecBot = pcPicBottom->getPicYuvRec(); 677 #if Q0074_SEI_COLOR_MAPPING678 if( m_acTDecTop[layerId].m_ColorMapping->getColorMappingFlag() )679 {680 pPicCYuvRecTop = m_acTDecTop[layerId].m_ColorMapping->getColorMapping( pPicCYuvRecTop, 0, layerId );681 pPicCYuvRecBot = m_acTDecTop[layerId].m_ColorMapping->getColorMapping( pPicCYuvRecBot, 1, layerId );682 }683 #endif684 682 #if REPN_FORMAT_IN_VPS 685 683 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); … … 710 708 TComPicYuv* pPicCYuvRecTop = pcPicTop->getPicYuvRec(); 711 709 TComPicYuv* pPicCYuvRecBot = pcPicBottom->getPicYuvRec(); 712 #if Q0074_SEI_COLOR_MAPPING713 if ( m_cTDecTop.m_ColorMapping->getColorMappingFlag() )714 {715 pPicCYuvRecTop = m_cTDecTop.m_ColorMapping->getColorMapping( pPicCYuvRecTop, 0 );716 pPicCYuvRecBot = m_cTDecTop.m_ColorMapping->getColorMapping( pPicCYuvRecBot, 1 );717 }718 #endif719 710 m_cTVideoIOYuvReconFile.write( pPicCYuvRecTop, pPicCYuvRecBot, 720 711 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(), … … 791 782 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 792 783 TComPicYuv* pPicCYuvRec = pcPic->getPicYuvRec(); 793 #if Q0074_SEI_COLOR_MAPPING794 if ( m_acTDecTop[layerId].m_ColorMapping->getColorMappingFlag() )795 {796 pPicCYuvRec = m_acTDecTop[layerId].m_ColorMapping->getColorMapping( pPicCYuvRec, 0, layerId );797 }798 #endif799 800 784 #if REPN_FORMAT_IN_VPS 801 785 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); … … 898 882 TComPicYuv* pPicCYuvRecTop = pcPicTop->getPicYuvRec(); 899 883 TComPicYuv* pPicCYuvRecBot = pcPicBottom->getPicYuvRec(); 900 #if Q0074_SEI_COLOR_MAPPING901 if( m_acTDecTop[layerId].m_ColorMapping->getColorMappingFlag() )902 {903 pPicCYuvRecTop = m_acTDecTop[layerId].m_ColorMapping->getColorMapping( pPicCYuvRecTop, 0, layerId );904 pPicCYuvRecBot = m_acTDecTop[layerId].m_ColorMapping->getColorMapping( pPicCYuvRecBot, 1, layerId );905 }906 #endif907 884 #if REPN_FORMAT_IN_VPS 908 885 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); … … 933 910 TComPicYuv* pPicCYuvRecTop = pcPicTop->getPicYuvRec(); 934 911 TComPicYuv* pPicCYuvRecBot = pcPicBottom->getPicYuvRec(); 935 #if Q0074_SEI_COLOR_MAPPING936 if( m_cTDecTop.m_ColorMapping->getColorMappingFlag() )937 {938 pPicCYuvRecTop = m_cTDecTop.m_ColorMapping->getColorMapping( pPicCYuvRecTop, 0 );939 pPicCYuvRecBot = m_cTDecTop.m_ColorMapping->getColorMapping( pPicCYuvRecBot, 1 );940 }941 #endif942 912 m_cTVideoIOYuvReconFile.write( pPicCYuvRecTop, pPicCYuvRecBot, 943 913 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(), … … 1017 987 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 1018 988 TComPicYuv* pPicCYuvRec = pcPic->getPicYuvRec(); 1019 #if Q0074_SEI_COLOR_MAPPING1020 if( m_acTDecTop[layerId].m_ColorMapping->getColorMappingFlag() )1021 {1022 pPicCYuvRec = m_acTDecTop[layerId].m_ColorMapping->getColorMapping( pPicCYuvRec, 0, layerId );1023 }1024 #endif1025 989 #if REPN_FORMAT_IN_VPS 1026 990 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); … … 1049 1013 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 1050 1014 TComPicYuv* pPicCYuvRec = pcPic->getPicYuvRec(); 1051 #if Q0074_SEI_COLOR_MAPPING1052 if( m_cTDecTop.m_ColorMapping->getColorMappingFlag() )1053 {1054 pPicCYuvRec = m_cTDecTop.m_ColorMapping->getColorMapping( pPicCYuvRec );1055 }1056 #endif1057 1015 m_cTVideoIOYuvReconFile.write( pPicCYuvRec, 1058 1016 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(), … … 1137 1095 #endif 1138 1096 TComPicYuv* pPicCYuvRec = pic->getPicYuvRec(); 1139 #if Q0074_SEI_COLOR_MAPPING1140 pPicCYuvRec = m_acTDecTop[layerIdx].m_ColorMapping->getColorMapping( pPicCYuvRec, 0, layerIdx );1141 #endif1142 1097 m_acTVideoIOYuvReconFile[layerIdx].write( pPicCYuvRec, 1143 1098 conf.getWindowLeftOffset() * xScal + defDisp.getWindowLeftOffset(),
Note: See TracChangeset for help on using the changeset viewer.