Changeset 48 in 3DVCSoftware for branches/0.3-poznan-univ/source/App/TAppEncoder/TAppEncTop.cpp
- Timestamp:
- 30 Mar 2012, 18:57:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.3-poznan-univ/source/App/TAppEncoder/TAppEncTop.cpp
r41 r48 150 150 #endif 151 151 152 #if BITSTREAM_EXTRACTION 153 m_acTEncTopList[iViewIdx]->setLayerId ( ( (UInt)iViewIdx ) << 1 ); 154 #endif 152 155 m_acTEncTopList[iViewIdx]->setViewId ( (UInt)iViewIdx ); 153 156 m_acTEncTopList[iViewIdx]->setViewOrderIdx ( m_cCameraData.getViewOrderIndex()[ iViewIdx ] ); … … 359 362 #endif 360 363 364 #if BITSTREAM_EXTRACTION 365 m_acTEncDepthTopList[iViewIdx]->setLayerId ( ( ( (UInt)iViewIdx ) << 1 ) + 1 ); 366 #endif 361 367 m_acTEncDepthTopList[iViewIdx]->setViewId ( (UInt)iViewIdx ); 362 368 m_acTEncDepthTopList[iViewIdx]->setViewOrderIdx ( m_cCameraData.getViewOrderIndex()[ iViewIdx ] ); 363 369 m_acTEncDepthTopList[iViewIdx]->setIsDepth ( true ); 370 #if FLEX_CODING_ORDER 371 m_acTEncDepthTopList[iViewIdx]->setCamParPrecision ( m_cCameraData.getCamParsCodedPrecision () ); 372 m_acTEncDepthTopList[iViewIdx]->setCamParInSliceHeader ( m_cCameraData.getVaryingCameraParameters() ); 373 m_acTEncDepthTopList[iViewIdx]->setCodedScale ( m_cCameraData.getCodedScale () ); 374 m_acTEncDepthTopList[iViewIdx]->setCodedOffset ( m_cCameraData.getCodedOffset () ); 375 #else 364 376 m_acTEncDepthTopList[iViewIdx]->setCamParPrecision ( 0 ); 365 377 m_acTEncDepthTopList[iViewIdx]->setCamParInSliceHeader ( false ); 366 378 m_acTEncDepthTopList[iViewIdx]->setCodedScale ( 0 ); 367 379 m_acTEncDepthTopList[iViewIdx]->setCodedOffset ( 0 ); 380 #endif 368 381 #if DEPTH_MAP_GENERATION 369 382 m_acTEncDepthTopList[iViewIdx]->setPredDepthMapGeneration ( 0 ); … … 794 807 iViewIdx = (Int)(m_pchMVCJointCodingOrder[i]-'0'); 795 808 bThisViewContinueReadingPics = bContinueReadingPics[iViewIdx]; 809 #if POZNAN_SYNTH 810 if( m_uiUseCUSkip ) 811 { 812 xStoreSynthPicsInBuffer(iViewIdx,false); 813 } 814 #endif 796 815 #if POZNAN_TEXTURE_TU_DELTA_QP_ACCORDING_TO_DEPTH 797 816 // If no depth picture reconstruction for current view and current POC is available sythesize one 798 Int iCurrPoc= m_acTEncTopList[ 0 ]->getNextFrameId();817 //Int iCurrPoc2 = m_acTEncTopList[ 0 ]->getNextFrameId(); 799 818 Bool bCurrPicDepthRec = getPicFromView( iViewIdx, iCurrPoc, true ) != NULL && getPicFromView( iViewIdx, iCurrPoc, true )->getReconMark(); 800 819 if(m_bUseTexDqpAccordingToDepth && !bCurrPicDepthRec) … … 825 844 iViewIdx = (Int)(m_pchMVCJointCodingOrder[i]-'0'); 826 845 bThisViewContinueReadingDepthPics = bContinueReadingDepthPics[iViewIdx]; 846 #if POZNAN_SYNTH 847 if( m_uiUseCUSkip ) 848 { 849 xStoreSynthPicsInBuffer(iViewIdx,true); 850 } 851 #endif 827 852 m_acTEncDepthTopList[iViewIdx]->encode( bDepthEos[iViewIdx], m_cListPicYuvDepthRecMap[iViewIdx], pcBitstream, bThisViewContinueReadingDepthPics ); 828 853 bContinueReadingDepthPics[iViewIdx]=bThisViewContinueReadingDepthPics; … … 858 883 #if FLEX_CODING_ORDER 859 884 // If no depth picture reconstruction for current view and current POC is available sythesize one 860 Int iCurrPoc = m_acTEncTopList[ 0 ]->getNextFrameId();885 //Int iCurrPoc = m_acTEncTopList[ 0 ]->getNextFrameId(); 861 886 Bool bCurrPicDepthRec = getPicFromView( iViewIdx, iCurrPoc, true ) != NULL && getPicFromView( iViewIdx, iCurrPoc, true )->getReconMark(); 862 887 if(m_bUseTexDqpAccordingToDepth && !bCurrPicDepthRec) … … 1390 1415 } 1391 1416 1392 Int iNumberOfReferenceViews = 0;1393 1417 Int iNearestViewIdx = -1; 1394 1418 Bool bRenderFromLeft; … … 1477 1501 Void TAppEncTop::xStoreDepthSynthPicsInBuffer(Int iCoddedViewIdx) 1478 1502 { 1479 Int iLeftViewIdx = -1;1480 Int iRightViewIdx = -1;1481 1503 Int iNearestViewIdx = -1; 1482 1504 Bool bRenderFromLeft;
Note: See TracChangeset for help on using the changeset viewer.