Changeset 688 in SHVCSoftware for branches/SHM-6-dev/source/App
- Timestamp:
- 17 Apr 2014, 04:52:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/App/TAppDecoder/TAppDecTop.cpp
r652 r688 694 694 const Bool isTff = pcPicTop->isTopField(); 695 695 #if REPN_FORMAT_IN_VPS 696 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 697 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 698 m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(), 699 conf.getWindowLeftOffset() * xScal + defDisp.getWindowLeftOffset(), 700 conf.getWindowRightOffset() * xScal + defDisp.getWindowRightOffset(), 701 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 702 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset(), isTff ); 703 696 #if Q0200_CONFORMANCE_BL_SIZE 697 Int xScal=1,yScal=1; 698 #else 699 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 700 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 701 #endif 702 m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(), 703 conf.getWindowLeftOffset() * xScal + defDisp.getWindowLeftOffset(), 704 conf.getWindowRightOffset() * xScal + defDisp.getWindowRightOffset(), 705 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 706 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset(), isTff ); 704 707 #else 705 708 #if O0194_DIFFERENT_BITDEPTH_EL_BL … … 798 801 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 799 802 #if REPN_FORMAT_IN_VPS 800 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 801 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 802 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), 803 conf.getWindowLeftOffset() * xScal + defDisp.getWindowLeftOffset(), 804 conf.getWindowRightOffset() * xScal + defDisp.getWindowRightOffset(), 805 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 806 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset() ); 807 803 #if Q0200_CONFORMANCE_BL_SIZE 804 Int xScal=1,yScal=1; 805 #else 806 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 807 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 808 #endif 809 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), 810 conf.getWindowLeftOffset() * xScal + defDisp.getWindowLeftOffset(), 811 conf.getWindowRightOffset() * xScal + defDisp.getWindowRightOffset(), 812 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 813 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset() ); 808 814 #else 809 815 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), … … 898 904 const Bool isTff = pcPicTop->isTopField(); 899 905 #if REPN_FORMAT_IN_VPS 900 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 901 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 902 m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(), 903 conf.getWindowLeftOffset() *xScal + defDisp.getWindowLeftOffset(), 904 conf.getWindowRightOffset() *xScal + defDisp.getWindowRightOffset(), 905 conf.getWindowTopOffset() *yScal + defDisp.getWindowTopOffset(), 906 conf.getWindowBottomOffset()*yScal + defDisp.getWindowBottomOffset(), isTff ); 907 906 #if Q0200_CONFORMANCE_BL_SIZE 907 Int xScal=1,yScal=1; 908 #else 909 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 910 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 911 #endif 912 m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(), 913 conf.getWindowLeftOffset() *xScal + defDisp.getWindowLeftOffset(), 914 conf.getWindowRightOffset() *xScal + defDisp.getWindowRightOffset(), 915 conf.getWindowTopOffset() *yScal + defDisp.getWindowTopOffset(), 916 conf.getWindowBottomOffset()*yScal + defDisp.getWindowBottomOffset(), isTff ); 908 917 #else 909 918 #if O0194_DIFFERENT_BITDEPTH_EL_BL … … 1005 1014 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 1006 1015 #if REPN_FORMAT_IN_VPS 1007 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 1008 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 1009 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), 1010 conf.getWindowLeftOffset() *xScal + defDisp.getWindowLeftOffset(), 1011 conf.getWindowRightOffset() *xScal + defDisp.getWindowRightOffset(), 1012 conf.getWindowTopOffset() *yScal + defDisp.getWindowTopOffset(), 1013 conf.getWindowBottomOffset()*yScal + defDisp.getWindowBottomOffset() ); 1014 1016 #if Q0200_CONFORMANCE_BL_SIZE 1017 Int xScal=1,yScal=1; 1018 #else 1019 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 1020 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 1021 #endif 1022 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), 1023 conf.getWindowLeftOffset() *xScal + defDisp.getWindowLeftOffset(), 1024 conf.getWindowRightOffset() *xScal + defDisp.getWindowRightOffset(), 1025 conf.getWindowTopOffset() *yScal + defDisp.getWindowTopOffset(), 1026 conf.getWindowBottomOffset()*yScal + defDisp.getWindowBottomOffset() ); 1015 1027 #else 1016 1028 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), … … 1105 1117 const Window &defDisp = m_respectDefDispWindow ? pic->getDefDisplayWindow() : Window(); 1106 1118 Int xScal = 1, yScal = 1; 1107 #if REPN_FORMAT_IN_VPS 1108 1109 1110 1111 #endif 1112 1113 1114 1115 1116 1119 #if REPN_FORMAT_IN_VPS && !Q0200_CONFORMANCE_BL_SIZE 1120 UInt chromaFormatIdc = pic->getSlice(0)->getChromaFormatIdc(); 1121 xScal = TComSPS::getWinUnitX( chromaFormatIdc ); 1122 yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 1123 #endif 1124 m_acTVideoIOYuvReconFile[layerIdx].write( pic->getPicYuvRec(), 1125 conf.getWindowLeftOffset() * xScal + defDisp.getWindowLeftOffset(), 1126 conf.getWindowRightOffset() * xScal + defDisp.getWindowRightOffset(), 1127 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 1128 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset() ); 1117 1129 } 1118 1130 // update POC of display order
Note: See TracChangeset for help on using the changeset viewer.