Changeset 1203 in SHVCSoftware for branches/SHM-dev/source/App/TAppDecoder
- Timestamp:
- 8 Jul 2015, 20:57:55 (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
r1179 r1203 95 95 #if AVC_BASE 96 96 ("BLReconFile,-ibl", cfg_BLReconFile, string(""), "BL reconstructed YUV input file name") 97 #if !REPN_FORMAT_IN_VPS98 ("BLSourceWidth,-wdt", m_iBLSourceWidth, 0, "BL source picture width")99 ("BLSourceHeight,-hgt", m_iBLSourceHeight, 0, "BL source picture height")100 #endif101 97 #endif 102 98 ("TargetLayerId,-lid", targetLayerId, -1, "Target layer id") -
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.h
r1177 r1203 84 84 #if AVC_BASE 85 85 Char* m_pchBLReconFile; ///< input BL reconstruction file name 86 #if !REPN_FORMAT_IN_VPS87 Int m_iBLSourceWidth;88 Int m_iBLSourceHeight;89 #endif90 86 #endif 91 87 CommonDecoderParams m_commonDecoderParams; … … 113 109 #if Q0074_COLOUR_REMAPPING_SEI 114 110 , m_colourRemapSEIEnabled(0) 115 #endif116 #if SVC_EXTENSION117 #if AVC_BASE && !REPN_FORMAT_IN_VPS118 , m_iBLSourceWidth(0)119 , m_iBLSourceHeight(0)120 #endif121 111 #endif 122 112 , m_respectDefDispWindow(0) -
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1200 r1203 796 796 if (display) 797 797 { 798 #if REPN_FORMAT_IN_VPS799 798 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 800 799 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); … … 806 805 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 807 806 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset(), NUM_CHROMA_FORMAT, isTff ); 808 #else809 m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(),810 m_outputColourSpaceConvert,811 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),812 conf.getWindowRightOffset() + defDisp.getWindowRightOffset(),813 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(),814 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset(), NUM_CHROMA_FORMAT, isTff );815 #endif816 807 } 817 808 } … … 915 906 const Window &conf = pcPic->getConformanceWindow(); 916 907 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 917 #if REPN_FORMAT_IN_VPS 908 918 909 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 919 910 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); … … 924 915 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 925 916 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset() ); 926 #else927 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), m_outputColourSpaceConvert,928 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),929 conf.getWindowRightOffset() + defDisp.getWindowRightOffset(),930 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(),931 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset() );932 #endif933 917 } 934 918 … … 1051 1035 const Window &defDisp = m_respectDefDispWindow ? pcPicTop->getDefDisplayWindow() : Window(); 1052 1036 const Bool isTff = pcPicTop->isTopField(); 1053 #if REPN_FORMAT_IN_VPS 1037 1054 1038 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 1055 1039 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); … … 1060 1044 conf.getWindowTopOffset() *yScal + defDisp.getWindowTopOffset(), 1061 1045 conf.getWindowBottomOffset()*yScal + defDisp.getWindowBottomOffset(), NUM_CHROMA_FORMAT, isTff ); 1062 #else1063 m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(), m_outputColourSpaceConvert,1064 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),1065 conf.getWindowRightOffset() + defDisp.getWindowRightOffset(),1066 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(),1067 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset(), NUM_CHROMA_FORMAT, isTff );1068 #endif1069 1046 } 1070 1047 … … 1154 1131 const Window &conf = pcPic->getConformanceWindow(); 1155 1132 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 1156 #if REPN_FORMAT_IN_VPS 1133 1157 1134 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 1158 1135 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); … … 1163 1140 conf.getWindowTopOffset() *yScal + defDisp.getWindowTopOffset(), 1164 1141 conf.getWindowBottomOffset()*yScal + defDisp.getWindowBottomOffset() ); 1165 #else1166 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), m_outputColourSpaceConvert,1167 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),1168 conf.getWindowRightOffset() + defDisp.getWindowRightOffset(),1169 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(),1170 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset() );1171 #endif1172 1142 } 1173 1143 … … 1300 1270 const Window &defDisp = m_respectDefDispWindow ? pic->getDefDisplayWindow() : Window(); 1301 1271 Int xScal = 1, yScal = 1; 1302 #if REPN_FORMAT_IN_VPS 1272 1303 1273 UInt chromaFormatIdc = pic->getSlice(0)->getChromaFormatIdc(); 1304 1274 xScal = TComSPS::getWinUnitX( chromaFormatIdc ); 1305 1275 yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 1306 #endif 1276 1307 1277 TComPicYuv* pPicCYuvRec = pic->getPicYuvRec(); 1308 1278 m_acTVideoIOYuvReconFile[layerId].write( pPicCYuvRec, m_outputColourSpaceConvert, … … 1655 1625 const Window &defDisp = m_respectDefDispWindow ? checkPic.getDefDisplayWindow() : Window(); 1656 1626 Int xScal = 1, yScal = 1; 1657 #if REPN_FORMAT_IN_VPS1627 1658 1628 UInt chromaFormatIdc = checkPic.getSlice(0)->getChromaFormatIdc(); 1659 1629 xScal = TComSPS::getWinUnitX( chromaFormatIdc ); 1660 1630 yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 1661 #endif1631 1662 1632 if( checkPic.getPOC() <= pocValue ) 1663 1633 {
Note: See TracChangeset for help on using the changeset viewer.