Changeset 389 in SHVCSoftware for branches/SHM-3.1-dev/source/App/TAppDecoder
- Timestamp:
- 10 Sep 2013, 17:27:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/App/TAppDecoder/TAppDecTop.cpp
r374 r389 551 551 const Window &conf = pcPic->getConformanceWindow(); 552 552 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 553 #if REPN_FORMAT_IN_VPS 554 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 555 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 556 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), 557 conf.getWindowLeftOffset() * xScal + defDisp.getWindowLeftOffset(), 558 conf.getWindowRightOffset() * xScal + defDisp.getWindowRightOffset(), 559 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 560 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset() ); 561 562 #else 553 563 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), 554 564 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(), … … 556 566 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(), 557 567 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset() ); 568 #endif 558 569 } 559 570 … … 630 641 const Window &conf = pcPic->getConformanceWindow(); 631 642 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 643 #if REPN_FORMAT_IN_VPS 644 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 645 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 646 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), 647 conf.getWindowLeftOffset() *xScal + defDisp.getWindowLeftOffset(), 648 conf.getWindowRightOffset() *xScal + defDisp.getWindowRightOffset(), 649 conf.getWindowTopOffset() *yScal + defDisp.getWindowTopOffset(), 650 conf.getWindowBottomOffset()*yScal + defDisp.getWindowBottomOffset() ); 651 652 #else 632 653 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), 633 654 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(), … … 635 656 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(), 636 657 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset() ); 658 #endif 637 659 } 638 660
Note: See TracChangeset for help on using the changeset viewer.