Changeset 195 in 3DVCSoftware
- Timestamp:
- 26 Nov 2012, 22:32:00 (12 years ago)
- Location:
- branches/HTM-5.0-Qualcomm/source
- Files:
-
- 52 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.0-Qualcomm/source/App/TAppDecoder/TAppDecTop.cpp
r194 r195 82 82 Void TAppDecTop::decode() 83 83 { 84 #if VIDYO_VPS_INTEGRATION| MVHEVC84 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 85 85 increaseNumberOfViews( 0, 0, 0 ); 86 86 #else … … 145 145 { 146 146 read(nalu, nalUnit); 147 #if MVHEVC147 #if QC_MVHEVC_B0046 148 148 viewDepthId = nalu.m_layerId; 149 149 Int depth = 0; … … 171 171 if( viewDepthId >= m_tDecTop.size() ) 172 172 { 173 #if VIDYO_VPS_INTEGRATION| MVHEVC173 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 174 174 increaseNumberOfViews( viewDepthId, viewId, depth ); 175 175 #else … … 200 200 if( !(m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) ) 201 201 { 202 #if MVHEVC202 #if QC_MVHEVC_B0046 203 203 if(viewDepthId && m_tDecTop[viewDepthId]->m_bFirstNal== false) 204 204 { … … 233 233 if( pcListPic[viewDepthId] ) 234 234 { 235 #if QC_REM_IDV 235 #if QC_REM_IDV_B0046 236 236 Int iviewId = m_tDecTop[viewDepthId]->getViewId(); 237 237 if( newPicture[viewDepthId] && (nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR || ((nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR && iviewId) && m_tDecTop[viewDepthId]->getNalUnitTypeBaseView() == NAL_UNIT_CODED_SLICE_IDR)) ) … … 295 295 m_tDecTop[viewDepthIdx]->destroy() ; 296 296 } 297 #if MVHEVC297 #if QC_MVHEVC_B0046 298 298 if(viewDepthIdx) 299 299 { … … 445 445 m_pocLastDisplay[viewDepthId] = -MAX_INT; 446 446 } 447 #if VIDYO_VPS_INTEGRATION| MVHEVC447 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 448 448 Void TAppDecTop::increaseNumberOfViews ( UInt layerId, UInt viewId, UInt isDepth ) 449 449 #else … … 451 451 #endif 452 452 { 453 #if VIDYO_VPS_INTEGRATION| MVHEVC453 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 454 454 Int newNumberOfViewDepth = layerId + 1; 455 455 #endif … … 458 458 m_outputBitDepth = g_uiBitDepth + g_uiBitIncrement; 459 459 } 460 #if !VIDYO_VPS_INTEGRATION&! MVHEVC460 #if !VIDYO_VPS_INTEGRATION&!QC_MVHEVC_B0046 461 461 Int viewId = (newNumberOfViewDepth-1)>>1; // coding order T0D0T1D1T2D2 462 462 Bool isDepth = ((newNumberOfViewDepth % 2) == 0); // coding order T0D0T1D1T2D2 … … 471 471 m_tVideoIOYuvReconFile.push_back(new TVideoIOYuv); 472 472 Char buffer[4]; 473 #if VIDYO_VPS_INTEGRATION| MVHEVC473 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 474 474 sprintf(buffer,"_%i", viewId ); 475 475 #else … … 477 477 #endif 478 478 Char* nextFilename = NULL; 479 #if VIDYO_VPS_INTEGRATION| MVHEVC479 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 480 480 if( isDepth) 481 481 #else … … 492 492 xAppendToFileNameEnd( m_pchReconFile, buffer, nextFilename); 493 493 } 494 #if !VIDYO_VPS_INTEGRATION&! MVHEVC494 #if !VIDYO_VPS_INTEGRATION&!QC_MVHEVC_B0046 495 495 if( isDepth || ( !isDepth && (m_tVideoIOYuvReconFile.size() % 2) == 1 ) ) 496 496 #endif … … 509 509 { 510 510 m_tDecTop.push_back(new TDecTop); 511 #if !VIDYO_VPS_INTEGRATION&! MVHEVC511 #if !VIDYO_VPS_INTEGRATION&!QC_MVHEVC_B0046 512 512 if( isDepth || ( !isDepth && (m_tVideoIOYuvReconFile.size() % 2) == 1 ) ) 513 513 { … … 519 519 m_tDecTop.back()->setPictureDigestEnabled(m_pictureDigestEnabled); 520 520 m_tDecTop.back()->setCamParsCollector( &m_cCamParsCollector ); 521 #if !VIDYO_VPS_INTEGRATION&! MVHEVC521 #if !VIDYO_VPS_INTEGRATION&!QC_MVHEVC_B0046 522 522 } 523 523 #endif -
branches/HTM-5.0-Qualcomm/source/App/TAppDecoder/TAppDecTop.h
r194 r195 74 74 CamParsCollector m_cCamParsCollector; 75 75 #if DEPTH_MAP_GENERATION 76 #if VIDYO_VPS_INTEGRATION| MVHEVC76 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 77 77 TComVPSAccess m_cVPSAccess; 78 78 #endif … … 88 88 Void destroy (); ///< destroy internal members 89 89 Void decode (); ///< main decoding function 90 #if VIDYO_VPS_INTEGRATION| MVHEVC90 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 91 91 Void increaseNumberOfViews (UInt layerId, UInt viewId, UInt isDepth); 92 92 #else -
branches/HTM-5.0-Qualcomm/source/App/TAppEncoder/TAppEncCfg.cpp
r194 r195 329 329 /* Camera Paremetes */ 330 330 ("CameraParameterFile,cpf", m_pchCameraParameterFile, (Char *) 0, "Camera Parameter File Name") 331 #if MVHEVC331 #if QC_MVHEVC_B0046 332 332 ("BaseViewCameraNumbers" , m_aiVId, std::vector<Int>(1, MAX_VIEW_NUM), "Numbers of base views") 333 333 #endif … … 789 789 } 790 790 #else 791 #if ! MVHEVC791 #if !QC_MVHEVC_B0046 792 792 m_cCameraData .init ( (UInt)m_iNumberOfViews, 793 793 m_uiInputBitDepth, … … 806 806 // check validity of input parameters 807 807 xCheckParameter(); 808 #if ! MVHEVC808 #if !QC_MVHEVC_B0046 809 809 m_cCameraData.check( false, true ); 810 810 #endif -
branches/HTM-5.0-Qualcomm/source/App/TAppEncoder/TAppEncCfg.h
r194 r195 109 109 std::vector<Double> m_adQP; ///< QP value of key-picture (floating point) [0] video, [1] depth 110 110 std::vector<Int> m_aiQP; ///< QP value of key-picture (integer) [0] video, [1] depth 111 #if MVHEVC111 #if QC_MVHEVC_B0046 112 112 std::vector<Int> m_aiVId; ///< view id 113 113 #endif … … 288 288 Char* m_pchCameraParameterFile; ///< camera parameter file 289 289 Char* m_pchBaseViewCameraNumbers; 290 #if ! MVHEVC290 #if !QC_MVHEVC_B0046 291 291 TAppComCamPara m_cCameraData; 292 292 #endif -
branches/HTM-5.0-Qualcomm/source/App/TAppEncoder/TAppEncTop.cpp
r194 r195 67 67 Void TAppEncTop::xInitLibCfg() 68 68 { 69 #if VIDYO_VPS_INTEGRATION| MVHEVC70 #if ! MVHEVC69 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 70 #if !QC_MVHEVC_B0046 71 71 UInt layerId = 0; 72 72 #endif 73 73 // TODO: fix the assumption here that the temporal structures are all equal across all layers??? 74 74 m_cVPS.setMaxTLayers( m_maxTempLayer[0] ); 75 #if MVHEVC75 #if QC_MVHEVC_B0046 76 76 m_cVPS.setMaxLayers( m_iNumberOfViews ); 77 77 #else … … 107 107 m_acTEncTopList[iViewIdx]->setViewId ( iViewIdx ); 108 108 m_acTEncTopList[iViewIdx]->setIsDepth ( false ); 109 #if MVHEVC109 #if QC_MVHEVC_B0046 110 110 m_acTEncTopList[iViewIdx]->setLayerId ( iViewIdx ); 111 111 m_cVPS.setViewId ( m_aiVId[ iViewIdx ], iViewIdx ); … … 417 417 m_acTEncDepthTopList[iViewIdx]->setViewId ( iViewIdx ); 418 418 m_acTEncDepthTopList[iViewIdx]->setIsDepth ( true ); 419 #if MVHEVC419 #if QC_MVHEVC_B0046 420 420 m_acTEncDepthTopList[iViewIdx]->setLayerId ( iViewIdx ); 421 421 #else … … 836 836 { 837 837 m_acTEncTopList[iViewIdx]->init( this ); 838 #if MVHEVC838 #if QC_MVHEVC_B0046 839 839 //set setNumDirectRefLayer 840 840 Int iNumDirectRef = m_acTEncTopList[iViewIdx]->getSPS()->getNumberOfUsableInterViewRefs(); … … 887 887 TComPicYuv* pcPicYuvOrg = new TComPicYuv; 888 888 TComPicYuv* pcDepthPicYuvOrg = new TComPicYuv; 889 #if ! MVHEVC889 #if !QC_MVHEVC_B0046 890 890 TComPicYuv* pcPdmDepthOrg = new TComPicYuv; 891 891 #endif … … 990 990 { 991 991 Int iNumEncoded = 0; 992 #if ! MVHEVC992 #if !QC_MVHEVC_B0046 993 993 UInt iNextPoc = m_acTEncTopList[0] -> getFrameId( gopId ); 994 994 if ( iNextPoc < m_iFrameToBeEncoded ) … … 1052 1052 pcDepthPicYuvOrg = NULL; 1053 1053 1054 #if ! MVHEVC1055 #if BUG_FIX_HTM1054 #if !QC_MVHEVC_B0046 1055 #if FIX_DEL_NULLPTR 1056 1056 if ( pcPdmDepthOrg != NULL && m_uiMultiviewMvRegMode ) 1057 1057 #else … … 1267 1267 case NAL_UNIT_CODED_SLICE: 1268 1268 #if H0566_TLA 1269 #if !QC_REM_IDV 1269 #if !QC_REM_IDV_B0046 1270 1270 case NAL_UNIT_CODED_SLICE_IDV: 1271 1271 #endif -
branches/HTM-5.0-Qualcomm/source/App/TAppEncoder/TAppEncTop.h
r194 r195 87 87 #endif 88 88 89 #if VIDYO_VPS_INTEGRATION| MVHEVC89 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 90 90 TComVPS m_cVPS; 91 91 #endif … … 139 139 #endif 140 140 141 #if MVHEVC141 #if QC_MVHEVC_B0046 142 142 TComVPS* getVPS() { return &m_cVPS; } 143 143 #endif -
branches/HTM-5.0-Qualcomm/source/App/TAppRenderer/RendererMain.cpp
r194 r195 43 43 int main(int argc, char* argv[]) 44 44 { 45 #if ! MVHEVC45 #if !QC_MVHEVC_B0046 46 46 TAppRendererTop cTAppRendererTop; 47 47 -
branches/HTM-5.0-Qualcomm/source/App/TAppRenderer/TAppRendererCfg.cpp
r194 r195 59 59 // Constructor / destructor / initialization / destroy 60 60 // ==================================================================================================================== 61 #if ! MVHEVC61 #if !QC_MVHEVC_B0046 62 62 TAppRendererCfg::TAppRendererCfg() 63 63 { -
branches/HTM-5.0-Qualcomm/source/App/TAppRenderer/TAppRendererCfg.h
r194 r195 50 50 #include <string> 51 51 #include <vector> 52 #if ! MVHEVC52 #if !QC_MVHEVC_B0046 53 53 // ==================================================================================================================== 54 54 // Class definition -
branches/HTM-5.0-Qualcomm/source/App/TAppRenderer/TAppRendererTop.cpp
r194 r195 45 45 // Constructor / destructor / initialization / destroy 46 46 // ==================================================================================================================== 47 #if ! MVHEVC47 #if !QC_MVHEVC_B0046 48 48 TAppRendererTop::TAppRendererTop() 49 49 { -
branches/HTM-5.0-Qualcomm/source/App/TAppRenderer/TAppRendererTop.h
r194 r195 50 50 #include "../../Lib/TLibRenderer/TRenModel.h" 51 51 52 #if ! MVHEVC52 #if !QC_MVHEVC_B0046 53 53 // ==================================================================================================================== 54 54 // Class definition -
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/CommonDef.h
r194 r195 185 185 // VPS constants 186 186 // ==================================================================================================================== 187 #if MVHEVC187 #if QC_MVHEVC_B0046 188 188 #define MAX_LAYER_NUM MAX_VIEW_NUM 189 189 #endif … … 483 483 NAL_UNIT_CODED_SLICE, 484 484 #if H0566_TLA 485 #if QC_REM_IDV 485 #if QC_REM_IDV_B0046 486 486 NAL_UNIT_RESERVED, 487 487 #else … … 515 515 NAL_UNIT_RESERVED_23, 516 516 NAL_UNIT_UNSPECIFIED_24, 517 #if VIDYO_VPS_INTEGRATION| MVHEVC517 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 518 518 NAL_UNIT_VPS, 519 519 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/NAL.h
r194 r195 51 51 NalRefIdc m_nalRefIDC; ///< nal_ref_idc 52 52 #endif 53 #if VIDYO_VPS_INTEGRATION| MVHEVC53 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 54 54 unsigned m_layerId; 55 55 unsigned m_temporalId; ///< temporal_id … … 69 69 NalUnitType nalUnitType, 70 70 Bool nalRefFlag, 71 #if !VIDYO_VPS_INTEGRATION & ! MVHEVC71 #if !VIDYO_VPS_INTEGRATION & !QC_MVHEVC_B0046 72 72 Int viewId, 73 73 Bool isDepth, … … 78 78 :m_nalUnitType (nalUnitType) 79 79 ,m_nalRefFlag (nalRefFlag) 80 #if !VIDYO_VPS_INTEGRATION & ! MVHEVC80 #if !VIDYO_VPS_INTEGRATION & !QC_MVHEVC_B0046 81 81 ,m_viewId (viewId) 82 82 ,m_isDepth (isDepth) … … 139 139 return m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR 140 140 #if H0566_TLA 141 #if !QC_REM_IDV 141 #if !QC_REM_IDV_B0046 142 142 || m_nalUnitType == NAL_UNIT_CODED_SLICE_IDV 143 143 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComDataCU.cpp
r194 r195 4307 4307 { 4308 4308 // col [2] 4309 #if ! TMVP_INDEX_MODIFY4309 #if !QC_TMVP_IDX_MOD_B0046 4310 4310 Int iRefIdxSkip[2] = {-1, -1}; 4311 4311 for (Int i=0; i<2; i++) … … 4339 4339 4340 4340 TComMv cColMv; 4341 #if TMVP_INDEX_MODIFY4341 #if QC_TMVP_IDX_MOD_B0046 4342 4342 Int iRefIdx = 0; 4343 4343 #else … … 4376 4376 } 4377 4377 } 4378 #if ! TMVP_INDEX_MODIFY4378 #if !QC_TMVP_IDX_MOD_B0046 4379 4379 iRefIdx = iRefIdxSkip[0]; 4380 4380 #else … … 4398 4398 if ( getSlice()->isInterB() ) 4399 4399 { 4400 #if ! TMVP_INDEX_MODIFY4400 #if !QC_TMVP_IDX_MOD_B0046 4401 4401 iRefIdx = iRefIdxSkip[1]; 4402 4402 #else … … 6412 6412 if( pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx) >= 0 ) 6413 6413 { 6414 #if IV_AS_LT6414 #if QC_IV_AS_LT_B0046 6415 6415 Bool bIsCurrRefLongTerm = m_pcSlice->getRefPic( eRefPicList, iRefIdx)->getIsLongTerm(); 6416 6416 Bool bIsNeibRefLongTerm = m_pcSlice->getRefPic( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx))->getIsLongTerm(); … … 6561 6561 Int iNeibRefPOC; 6562 6562 6563 #if IV_AS_LT6563 #if QC_IV_AS_LT_B0046 6564 6564 Bool bIsCurrRefLongTerm = m_pcSlice->getRefPic( eRefPicList, iRefIdx)->getIsLongTerm(); 6565 6565 Bool bIsNeibRefLongTerm = false; … … 6568 6568 { 6569 6569 iNeibRefPOC = pcTmpCU->getSlice()->getRefPOC( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx) ); 6570 #if IV_AS_LT6570 #if QC_IV_AS_LT_B0046 6571 6571 bIsNeibRefLongTerm = m_pcSlice->getRefPic( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx))->getIsLongTerm() ; 6572 6572 if ( (bIsCurrRefLongTerm == bIsNeibRefLongTerm) && (iNeibRefPOC == iCurrRefPOC) ) … … 6593 6593 TComMv cMvPred = pcTmpCU->getCUMvField(eRefPicList)->getMv(uiIdx); 6594 6594 TComMv rcMv; 6595 #if IV_AS_LT6595 #if QC_IV_AS_LT_B0046 6596 6596 bIsNeibRefLongTerm = m_pcSlice->getRefPic( eRefPicList, pcTmpCU->getCUMvField(eRefPicList)->getRefIdx(uiIdx))->getIsLongTerm(); 6597 6597 if ( bIsCurrRefLongTerm == bIsNeibRefLongTerm ) … … 6617 6617 pInfo->m_acMvCand[ pInfo->iN++] = rcMv; 6618 6618 return true; 6619 #if IV_AS_LT6619 #if QC_IV_AS_LT_B0046 6620 6620 } 6621 6621 #endif … … 6627 6627 TComMv cMvPred = pcTmpCU->getCUMvField(eRefPicList2nd)->getMv(uiIdx); 6628 6628 TComMv rcMv; 6629 #if IV_AS_LT6629 #if QC_IV_AS_LT_B0046 6630 6630 bIsNeibRefLongTerm = m_pcSlice->getRefPic( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx))->getIsLongTerm(); ; 6631 6631 if ( bIsCurrRefLongTerm == bIsNeibRefLongTerm ) … … 6651 6651 pInfo->m_acMvCand[ pInfo->iN++] = rcMv; 6652 6652 return true; 6653 #if IV_AS_LT6653 #if QC_IV_AS_LT_B0046 6654 6654 } 6655 6655 #endif … … 6764 6764 Int iColPOC, iColRefPOC, iCurrPOC, iCurrRefPOC, iScale; 6765 6765 #if SONY_COLPIC_AVAILABILITY 6766 #if IV_AS_LT6766 #if QC_IV_AS_LT_B0046 6767 6767 Int iColViewOrderIdx, iCurrViewOrderIdx, iCurrRefViewOrderIdx; 6768 6768 #else … … 6799 6799 } 6800 6800 6801 #if !SONY_COLPIC_AVAILABILITY&! IV_AS_LT6801 #if !SONY_COLPIC_AVAILABILITY&!QC_IV_AS_LT_B0046 6802 6802 if( m_pcSlice->getRefPic(eRefPicList, riRefIdx)->getViewId() != m_pcSlice->getViewId() ) 6803 6803 return false; … … 6827 6827 iColRefPOC = pColCU->getSlice()->getRefPOC(eColRefPicList, iColRefIdx); 6828 6828 6829 #if ! IV_AS_LT6829 #if !QC_IV_AS_LT_B0046 6830 6830 #if SONY_COLPIC_AVAILABILITY 6831 6831 iColRefViewOrderIdx = pColCU->getSlice()->getRefPic( eColRefPicList, pColCU->getCUMvField(eColRefPicList)->getRefIdx(uiAbsPartAddr))->getViewOrderIdx(); … … 6848 6848 6849 6849 iCurrRefPOC = m_pcSlice->getRefPic(eRefPicList, riRefIdx)->getPOC(); 6850 #if IV_AS_LT6850 #if QC_IV_AS_LT_B0046 6851 6851 { 6852 6852 assert( ((iColPOC != iColRefPOC)&&(iCurrPOC != iCurrRefPOC))||((iColPOC == iColRefPOC)&&(iCurrPOC == iCurrRefPOC))); -
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComDepthMapGenerator.h
r194 r195 239 239 Bool m_bDecoder; 240 240 TComPrediction* m_pcPrediction; 241 #if VIDYO_VPS_INTEGRATION| MVHEVC241 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 242 242 TComVPSAccess* m_pcVPSAccess; 243 243 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComPic.cpp
r194 r195 519 519 UInt uiTempLayer = currSlice->getRefPic(eRefPicList, lpRef)->getCurrSlice()->getTLayer(); 520 520 Int iTempDiff = (iTempPoc > iPOCCurr) ? (iTempPoc - iPOCCurr): (iPOCCurr - iTempPoc); 521 #if QC_REM_IDV 521 #if QC_REM_IDV_B0046 522 522 TComSlice* refSlice = currSlice->getRefPic(eRefPicList, lpRef)->getCurrSlice(); 523 523 bRAP = (refSlice->getSPS()->getViewId() && (refSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR || refSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA))? 1: 0; -
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComPic.h
r194 r195 140 140 TComSlice* getSlice(Int i) { return m_apcPicSym->getSlice(i); } 141 141 TComSlice* getCurrSlice() { return m_apcPicSym->getSlice(m_uiCurrSliceIdx); } 142 #if VIDYO_VPS_INTEGRATION| MVHEVC142 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 143 143 TComVPS* getVPS() { return m_apcPicSym->getSlice(m_uiCurrSliceIdx)->getVPS(); } 144 144 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComPrediction.cpp
r194 r195 924 924 } 925 925 #endif 926 #if ! MVHEVC926 #if !QC_MVHEVC_B0046 927 927 Int ixFrac = iHor & 0x3; 928 928 Int iyFrac = iVer & 0x3; -
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComSlice.cpp
r194 r195 44 44 45 45 TComSlice::TComSlice() 46 #if MVHEVC46 #if QC_MVHEVC_B0046 47 47 : m_iPPSId ( 0 ) 48 48 #else … … 146 146 resetWpScalingLC(m_weightPredTableLC); 147 147 initWpAcDcParam(); 148 #if IV_AS_LT148 #if QC_IV_AS_LT_B0046 149 149 for(Int iNumCount = 0; iNumCount < MAX_NUM_REF+1; iNumCount++) 150 150 { … … 483 483 { 484 484 pcRefPic = xGetInterViewRefPic( rapcInterViewRefPics, getViewId() + m_pcSPS->getUsableInterViewRef(i) ); 485 #if IV_AS_LT485 #if QC_IV_AS_LT_B0046 486 486 pcRefPic->setIsLongTerm( 1 ); 487 487 #else … … 528 528 { 529 529 m_apcRefPicList[0][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL0() ? refPicListTemp0[ m_RefPicListModification.getRefPicSetIdxL0(cIdx) ] : refPicListTemp0[cIdx]; 530 #if IV_AS_LT530 #if QC_IV_AS_LT_B0046 531 531 setWasLongTerm(m_apcRefPicList[0][cIdx]->getIsLongTerm(), REF_PIC_LIST_0, cIdx); 532 532 #endif … … 542 542 { 543 543 m_apcRefPicList[1][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL1() ? refPicListTemp1[ m_RefPicListModification.getRefPicSetIdxL1(cIdx) ] : refPicListTemp1[cIdx]; 544 #if IV_AS_LT544 #if QC_IV_AS_LT_B0046 545 545 setWasLongTerm(m_apcRefPicList[1][cIdx]->getIsLongTerm(), REF_PIC_LIST_1, cIdx); 546 546 #endif … … 897 897 for(i=0;i<pReferencePictureSet->getNumberOfPositivePictures()+pReferencePictureSet->getNumberOfNegativePictures();i++) 898 898 { 899 #if IV_AS_LT899 #if QC_IV_AS_LT_B0046 900 900 if( rpcPic->getPicSym()->getSlice(0)->getPOC() == this->getPOC() + pReferencePictureSet->getDeltaPOC(i)) 901 901 #else … … 911 911 for(;i<pReferencePictureSet->getNumberOfPictures();i++) 912 912 { 913 #if IV_AS_LT913 #if QC_IV_AS_LT_B0046 914 914 if( (rpcPic->getPicSym()->getSlice(0)->getPOC()%(1<<rpcPic->getPicSym()->getSlice(0)->getSPS()->getBitsForPOC())) == pReferencePictureSet->getPOC(i)%(1<<rpcPic->getPicSym()->getSlice(0)->getSPS()->getBitsForPOC())) 915 915 #else … … 1419 1419 // Video parameter set (VPS) 1420 1420 // ------------------------------------------------------------------------------------------------ 1421 #if MVHEVC1421 #if QC_MVHEVC_B0046 1422 1422 TComVPS::TComVPS() 1423 1423 : m_VPSId ( 0) … … 1496 1496 1497 1497 TComSPS::TComSPS() 1498 #if VIDYO_VPS_INTEGRATION| MVHEVC1498 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1499 1499 : m_VPSId ( 0) 1500 1500 , m_SPSId ( 0) … … 1548 1548 , m_bLCMod (false) 1549 1549 #if H0412_REF_PIC_LIST_RESTRICTION 1550 #if MVHEVC1550 #if QC_MVHEVC_B0046 1551 1551 , m_restrictedRefPicListsFlag ( 0) 1552 1552 #else … … 1805 1805 TComSPS::initMultiviewSPS( UInt uiViewId, Int iViewOrderIdx, UInt uiCamParPrecision, Bool bCamParSlice, Int** aaiScale, Int** aaiOffset ) 1806 1806 { 1807 #if ! MVHEVC1807 #if !QC_MVHEVC_B0046 1808 1808 AOT( uiViewId == 0 && iViewOrderIdx != 0 ); 1809 1809 AOT( uiViewId != 0 && iViewOrderIdx == 0 ); … … 1817 1817 ::memset( m_aaiCodedScale, 0x00, sizeof( m_aaiCodedScale ) ); 1818 1818 ::memset( m_aaiCodedOffset, 0x00, sizeof( m_aaiCodedOffset ) ); 1819 #if ! MVHEVC1819 #if !QC_MVHEVC_B0046 1820 1820 if( !m_bCamParInSliceHeader ) 1821 1821 { … … 2448 2448 , m_ppsMap(MAX_NUM_PPS) 2449 2449 , m_apsMap(MAX_NUM_APS) 2450 #if VIDYO_VPS_INTEGRATION| MVHEVC2450 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 2451 2451 , m_vpsMap(MAX_NUM_VPS) 2452 2452 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComSlice.h
r194 r195 144 144 #endif 145 145 146 #if VIDYO_VPS_INTEGRATION| MVHEVC146 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 147 147 /// VPS class 148 148 … … 156 156 157 157 UInt m_uiExtensionType; 158 #if ! MVHEVC158 #if !QC_MVHEVC_B0046 159 159 Bool m_bDependentFlag[MAX_LAYER_NUM]; 160 160 #else … … 168 168 #endif 169 169 UInt m_uiViewId[MAX_LAYER_NUM]; 170 #if ! MVHEVC170 #if !QC_MVHEVC_B0046 171 171 Bool m_bDepthFlag[MAX_LAYER_NUM]; 172 172 #endif 173 173 Int m_iViewOrderIdx[MAX_LAYER_NUM]; 174 #if ! MVHEVC174 #if !QC_MVHEVC_B0046 175 175 UInt m_uiDependentLayer[MAX_LAYER_NUM]; 176 176 #endif … … 195 195 Bool getTemporalNestingFlag () { return m_uiMaxLayers; } 196 196 Void setTemporalNestingFlag (UInt t) { m_bTemporalIdNestingFlag = t; } 197 #if ! MVHEVC197 #if !QC_MVHEVC_B0046 198 198 Void setExtensionType(UInt v) { m_uiExtensionType = v; } 199 199 UInt getExtensionType() { return m_uiExtensionType; } … … 204 204 Void setViewId(UInt v, UInt layer) { m_uiViewId[layer] = v; } 205 205 UInt getViewId(UInt layer) { return m_uiViewId[layer]; } 206 #if ! MVHEVC206 #if !QC_MVHEVC_B0046 207 207 Void setDepthFlag(Bool d, UInt layer) { m_bDepthFlag[layer] = d; } 208 208 Bool getDepthFlag(UInt layer) { return m_bDepthFlag[layer]; } … … 210 210 Void setViewOrderIdx(Int v, UInt layer) { m_iViewOrderIdx[layer] = v; } 211 211 Int getViewOrderIdx(UInt layer) { return m_iViewOrderIdx[layer]; } 212 #if ! MVHEVC212 #if !QC_MVHEVC_B0046 213 213 Void setDependentLayer(UInt v, UInt layer) { m_uiDependentLayer[layer] = v; } 214 214 UInt getDependentLayer(UInt layer) { return m_uiDependentLayer[layer]; } … … 222 222 Void setMaxLatencyIncrease(UInt v, UInt tLayer) { m_uiMaxLatencyIncrease[tLayer] = v; } 223 223 UInt getMaxLatencyIncrease(UInt tLayer) { return m_uiMaxLatencyIncrease[tLayer]; } 224 #if MVHEVC224 #if QC_MVHEVC_B0046 225 225 Void setNumHRDParameters(UInt n) { m_uiNumHRDParameter = n; } 226 226 UInt getNumHRDParameters() { return m_uiNumHRDParameter; } … … 249 249 { 250 250 private: 251 #if VIDYO_VPS_INTEGRATION| MVHEVC251 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 252 252 Int m_VPSId; 253 253 #endif … … 422 422 TComSPS(); 423 423 virtual ~TComSPS(); 424 #if VIDYO_VPS_INTEGRATION| MVHEVC424 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 425 425 Int getVPSId () { return m_VPSId; } 426 426 Void setVPSId (Int i) { m_VPSId = i; } … … 1252 1252 1253 1253 // access channel 1254 #if VIDYO_VPS_INTEGRATION| MVHEVC1254 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1255 1255 TComVPS* m_pcVPS; 1256 1256 #endif 1257 #if IV_AS_LT1257 #if QC_IV_AS_LT_B0046 1258 1258 Bool m_bWasLongTerm[2][MAX_NUM_REF+1]; //was long-term picture 1259 1259 #endif … … 1331 1331 Int m_aaiCodedOffset[2][MAX_VIEW_NUM]; 1332 1332 1333 #if SONY_COLPIC_AVAILABILITY| MVHEVC1333 #if SONY_COLPIC_AVAILABILITY|QC_MVHEVC_B0046 1334 1334 Int m_iViewOrderIdx; 1335 1335 #endif … … 1345 1345 Void initTiles(); 1346 1346 1347 #if VIDYO_VPS_INTEGRATION| MVHEVC1347 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1348 1348 Void setVPS ( TComVPS* pcVPS ) { m_pcVPS = pcVPS; } 1349 1349 TComVPS* getVPS () { return m_pcVPS; } 1350 1350 #endif 1351 #if IV_AS_LT1351 #if QC_IV_AS_LT_B0046 1352 1352 Void setWasLongTerm( Bool lt, RefPicList e, Int iRefIdx ) { m_bWasLongTerm[e][iRefIdx] = lt; } 1353 1353 Bool getWasLongTerm( RefPicList e, Int iRefIdx ) { return m_bWasLongTerm[e][iRefIdx] ; } … … 1626 1626 Void setViewId( Int viewId ) { m_viewId = viewId; } 1627 1627 Int getViewId() { return m_viewId; } 1628 #if MVHEVC1628 #if QC_MVHEVC_B0046 1629 1629 Void setViewOrderIdx(Int v, UInt layer) { m_iViewOrderIdx = v; } 1630 1630 Int getViewOrderIdx() { return m_iViewOrderIdx; } … … 1698 1698 } 1699 1699 1700 #if MVHEVC1700 #if QC_MVHEVC_B0046 1701 1701 Void clearPSList() 1702 1702 { … … 1714 1714 ParameterSetManager(); 1715 1715 virtual ~ParameterSetManager(); 1716 #if VIDYO_VPS_INTEGRATION| MVHEVC1716 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1717 1717 //! store video parameter set and take ownership of it 1718 1718 Void storeVPS(TComVPS *vps) { m_vpsMap.storePS( vps->getVPSId(), vps); }; … … 1720 1720 TComVPS* getVPS(Int vpsId) { return m_vpsMap.getPS(vpsId); }; 1721 1721 TComVPS* getFirstVPS() { return m_vpsMap.getFirstPS(); }; 1722 #if MVHEVC1722 #if QC_MVHEVC_B0046 1723 1723 Void clearVPS() { m_vpsMap.clearPSList(); }; 1724 1724 Void clearSPS() { m_spsMap.clearPSList(); }; … … 1747 1747 ParameterSetMap<TComPPS> m_ppsMap; 1748 1748 ParameterSetMap<TComAPS> m_apsMap; 1749 #if VIDYO_VPS_INTEGRATION| MVHEVC1749 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1750 1750 ParameterSetMap<TComVPS> m_vpsMap; 1751 1751 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TypeDef.h
r194 r195 41 41 //! \ingroup TLibCommon 42 42 //! \{ 43 #define MVHEVC044 #define IV_AS_LT 1 //inter-view reference pictures are treated as long-term pictures45 #define TMVP_INDEX_MODIFY 1 //the reference index for temporal merging candidate is set to 0, as defined in HEVC46 #define QC_REM_IDV 1 //nal unit type NAL_UNIT_CODED_SLICE_IDV is removed.47 #define BUG_FIX_HTM148 #if ! MVHEVC43 #define QC_MVHEVC_B0046 0 44 #define QC_IV_AS_LT_B0046 1 //JCT3V-B0046: Disable 3DHEVC tools 45 #define QC_TMVP_IDX_MOD_B0046 1 //JCT3V-B0046: inter-view reference pictures are treated as long-term pictures, scaling of motion vectors for DCP based on ViewId/ViewOrderIdx is disabled 46 #define QC_REM_IDV_B0046 1 //JCT3V-B0046: the reference index for temporal merging candidate is set to 0, as defined in HEVC 47 #define FIX_DEL_NULLPTR 1 48 #if !QC_MVHEVC_B0046 49 49 ///// ***** FIXES ********* 50 50 // A … … 482 482 // VPS INTEGRATION 483 483 // ==================================================================================================================== 484 #if ! MVHEVC484 #if !QC_MVHEVC_B0046 485 485 #if VIDYO_VPS_INTEGRATION 486 486 #define MAX_NUM_VPS 10 -
branches/HTM-5.0-Qualcomm/source/Lib/TLibDecoder/NALread.cpp
r194 r195 132 132 #endif 133 133 134 #if MVHEVC134 #if QC_MVHEVC_B0046 135 135 //nalu.m_layerId = bs.read(6); 136 136 nalu.m_layerId = bs.read(5); … … 150 150 if ( nalu.m_temporalId ) 151 151 { 152 #if QC_REM_IDV 152 #if QC_REM_IDV_B0046 153 153 assert( nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_CRA && nalu.m_nalUnitType != NAL_UNIT_CODED_SLICE_IDR); 154 154 #else … … 163 163 case NAL_UNIT_CODED_SLICE_IDR: 164 164 #if H0566_TLA 165 #if !QC_REM_IDV 165 #if !QC_REM_IDV_B0046 166 166 case NAL_UNIT_CODED_SLICE_IDV: 167 167 #endif … … 186 186 if (nalu.m_temporalId == 0) 187 187 { 188 #if QC_REM_IDV 188 #if QC_REM_IDV_B0046 189 189 assert(nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_CRA || nalu.m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR); 190 190 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibDecoder/TDecCAVLC.cpp
r194 r195 1338 1338 } 1339 1339 } 1340 #if MVHEVC1340 #if QC_MVHEVC_B0046 1341 1341 Void TDecCavlc::parseVPS(TComVPS* pcVPS) 1342 1342 { … … 1479 1479 1480 1480 UInt uiCode; 1481 #if ! MVHEVC1481 #if !QC_MVHEVC_B0046 1482 1482 Int iCode; 1483 1483 #endif … … 1724 1724 #endif 1725 1725 READ_FLAG( uiCode, "sps_extension_flag"); 1726 #if ! MVHEVC1726 #if !QC_MVHEVC_B0046 1727 1727 if(uiCode) 1728 1728 { … … 1988 1988 } 1989 1989 #endif 1990 #if QC_REM_IDV 1991 #if ! MVHEVC1990 #if QC_REM_IDV_B0046 1991 #if !QC_MVHEVC_B0046 1992 1992 if(rpcSlice->getNalUnitType()==NAL_UNIT_CODED_SLICE_IDR && rpcSlice->getSPS()->getViewId() == 0) 1993 1993 #else … … 2030 2030 } 2031 2031 rpcSlice->setPOC( iPOCmsb+iPOClsb ); 2032 #if QC_REM_IDV 2033 #if ! MVHEVC2032 #if QC_REM_IDV_B0046 2033 #if !QC_MVHEVC_B0046 2034 2034 if( rpcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR && rpcSlice->getSPS()->getViewId() && rpcSlice->getPOC() == 0 ) 2035 2035 #else … … 2178 2178 { 2179 2179 #if H0412_REF_PIC_LIST_RESTRICTION 2180 #if MVHEVC2180 #if QC_MVHEVC_B0046 2181 2181 if( !rpcSlice->getViewId() || !rpcSlice->getSPS()->getListsModificationPresentFlag() ) 2182 2182 #else … … 2253 2253 { 2254 2254 #if H0412_REF_PIC_LIST_RESTRICTION 2255 #if MVHEVC2255 #if QC_MVHEVC_B0046 2256 2256 if( !rpcSlice->getViewId() || !rpcSlice->getSPS()->getListsModificationPresentFlag() ) 2257 2257 #else … … 2341 2341 2342 2342 #if H0412_REF_PIC_LIST_RESTRICTION 2343 #if MVHEVC2343 #if QC_MVHEVC_B0046 2344 2344 if( rpcSlice->getViewId() && rpcSlice->getSPS()->getListsModificationPresentFlag() ) 2345 2345 #else … … 3052 3052 } 3053 3053 3054 #if MVHEVC3054 #if QC_MVHEVC_B0046 3055 3055 /** Parse VPS alignment one bits. 3056 3056 * \returns Void -
branches/HTM-5.0-Qualcomm/source/Lib/TLibDecoder/TDecCAVLC.h
r194 r195 75 75 Void xReadFlagTr ( UInt& rValue, const Char *pSymbolName); 76 76 #endif 77 #if MVHEVC77 #if QC_MVHEVC_B0046 78 78 Void xReadVPSAlignOne (); 79 79 #endif … … 115 115 Void parseQtRootCbf ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, UInt& uiQtRootCbf ); 116 116 117 #if VIDYO_VPS_INTEGRATION| MVHEVC117 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 118 118 Void parseVPS ( TComVPS* pcVPS ); 119 119 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibDecoder/TDecEntropy.h
r194 r195 71 71 #endif 72 72 73 #if VIDYO_VPS_INTEGRATION| MVHEVC73 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 74 74 virtual Void parseVPS ( TComVPS* pcVPS ) = 0; 75 75 #endif … … 175 175 Void resetEntropy ( TComSlice* p) { m_pcEntropyDecoderIf->resetEntropy(p); } 176 176 177 #if VIDYO_VPS_INTEGRATION| MVHEVC177 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 178 178 Void decodeVPS ( TComVPS* pcVPS ) { m_pcEntropyDecoderIf->parseVPS(pcVPS); } 179 179 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibDecoder/TDecSbac.h
r194 r195 87 87 Void setBitstream ( TComInputBitstream* p ) { m_pcBitstream = p; m_pcTDecBinIf->init( p ); } 88 88 89 #if VIDYO_VPS_INTEGRATION| MVHEVC89 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 90 90 Void parseVPS ( TComVPS* pcVPS ) {} 91 91 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibDecoder/TDecSlice.cpp
r194 r195 446 446 , m_ppsBuffer(16) 447 447 , m_apsBuffer(64) 448 #if VIDYO_VPS_INTEGRATION| MVHEVC448 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 449 449 , m_vpsBuffer(16) 450 450 #endif … … 458 458 } 459 459 460 #if VIDYO_VPS_INTEGRATION| MVHEVC460 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 461 461 TComVPS* ParameterSetManagerDecoder::getPrefetchedVPS (Int vpsId) 462 462 { … … 513 513 m_ppsMap.mergePSList(m_ppsBuffer); 514 514 m_spsMap.mergePSList(m_spsBuffer); 515 #if VIDYO_VPS_INTEGRATION| MVHEVC515 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 516 516 m_vpsMap.mergePSList(m_vpsBuffer); 517 517 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibDecoder/TDecSlice.h
r194 r195 96 96 Void storePrefetchedAPS(TComAPS *aps) { m_apsBuffer.storePS( aps->getAPSID(), aps); }; 97 97 TComAPS* getPrefetchedAPS (Int apsId); 98 #if VIDYO_VPS_INTEGRATION| MVHEVC98 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 99 99 Void storePrefetchedVPS(TComVPS *vps) { m_vpsBuffer.storePS( vps->getVPSId(), vps); }; 100 100 TComVPS* getPrefetchedVPS (Int vpsId); … … 106 106 ParameterSetMap<TComPPS> m_ppsBuffer; 107 107 ParameterSetMap<TComAPS> m_apsBuffer; 108 #if VIDYO_VPS_INTEGRATION| MVHEVC108 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 109 109 ParameterSetMap<TComVPS> m_vpsBuffer; 110 110 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibDecoder/TDecTop.cpp
r194 r195 50 50 m_aaiCodedScale = new Int* [ MAX_VIEW_NUM ]; 51 51 m_aiViewOrderIndex = new Int [ MAX_VIEW_NUM ]; 52 #if MVHEVC52 #if QC_MVHEVC_B0046 53 53 m_aiViewId = new Int [ MAX_VIEW_NUM ]; 54 54 #endif … … 269 269 m_bFirstSliceInSequence = true; 270 270 m_pcCamParsCollector = 0; 271 #if MVHEVC271 #if QC_MVHEVC_B0046 272 272 m_bFirstNal = false; 273 273 #endif … … 584 584 TComVPS *vps = m_parameterSetManagerDecoder.getVPS(sps->getVPSId()); 585 585 assert (vps != 0); 586 #if !QC_REM_IDV 586 #if !QC_REM_IDV_B0046 587 587 if( m_apcSlicePilot->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR || m_apcSlicePilot->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA ) 588 588 #else … … 594 594 m_apcSlicePilot->setPPS(pps); 595 595 m_apcSlicePilot->setSPS(sps); 596 #if MVHEVC596 #if QC_MVHEVC_B0046 597 597 TComVPS *vps = m_parameterSetManagerDecoder.getVPS(sps->getVPSId()); 598 598 #endif 599 #if VIDYO_VPS_INTEGRATION| MVHEVC599 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 600 600 m_apcSlicePilot->setVPS(vps); 601 601 #endif … … 639 639 m_apcSlicePilot->setPPS(m_parameterSetManagerDecoder.getPrefetchedPPS(0)); 640 640 m_apcSlicePilot->setSPS(m_parameterSetManagerDecoder.getPrefetchedSPS(0)); 641 #if VIDYO_VPS_INTEGRATION| MVHEVC642 #if MVHEVC641 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 642 #if QC_MVHEVC_B0046 643 643 m_apcSlicePilot->setIsDepth(false); 644 644 #endif … … 646 646 #endif 647 647 m_apcSlicePilot->initTiles(); 648 #if MVHEVC648 #if QC_MVHEVC_B0046 649 649 m_apcSlicePilot->setViewId( nalu.m_layerId ); 650 650 m_apcSlicePilot->setViewId( nalu.m_layerId ); … … 672 672 if( m_bFirstSliceInPicture ) 673 673 { 674 #if MVHEVC674 #if QC_MVHEVC_B0046 675 675 if( nalu.m_layerId == 0 ) { m_nalUnitTypeBaseView = nalu.m_nalUnitType; } 676 676 else { m_nalUnitTypeBaseView = m_tAppDecTop->getTDecTop( 0, 0 )->getNalUnitTypeBaseView(); } … … 982 982 983 983 // Set reference list 984 #if ! MVHEVC984 #if !QC_MVHEVC_B0046 985 985 #if VIDYO_VPS_INTEGRATION 986 986 pcSlice->setViewId( pcSlice->getVPS()->getViewId(nalu.m_layerId) ); … … 1104 1104 m_cGopDecoder.decompressGop(nalu.m_Bitstream, pcPic, false); 1105 1105 1106 #if IV_AS_LT1106 #if QC_IV_AS_LT_B0046 1107 1107 std::vector<TComPic*> apcInterViewRefPics = m_tAppDecTop->getInterViewRefPics( m_viewId, pcSlice->getPOC(), m_isDepth, pcSlice->getSPS() ); 1108 1108 for( Int k = 0; k < apcInterViewRefPics.size(); k++ ) … … 1123 1123 } 1124 1124 1125 #if VIDYO_VPS_INTEGRATION| MVHEVC1125 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1126 1126 Void TDecTop::xDecodeVPS() 1127 1127 { … … 1130 1130 m_cEntropyDecoder.decodeVPS( vps ); 1131 1131 m_parameterSetManagerDecoder.storePrefetchedVPS(vps); 1132 #if ! MVHEVC1132 #if !QC_MVHEVC_B0046 1133 1133 getTAppDecTop()->getVPSAccess()->addVPS( vps ); 1134 1134 #endif … … 1198 1198 switch (nalu.m_nalUnitType) 1199 1199 { 1200 #if VIDYO_VPS_INTEGRATION| MVHEVC1200 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1201 1201 case NAL_UNIT_VPS: 1202 1202 xDecodeVPS(); … … 1221 1221 case NAL_UNIT_CODED_SLICE_IDR: 1222 1222 #if H0566_TLA 1223 #if !QC_REM_IDV 1223 #if !QC_REM_IDV_B0046 1224 1224 case NAL_UNIT_CODED_SLICE_IDV: 1225 1225 #endif … … 1238 1238 } 1239 1239 1240 #if MVHEVC1240 #if QC_MVHEVC_B0046 1241 1241 Void TDecTop::xCopyVPS( TComVPS* pVPSV0 ) 1242 1242 { -
branches/HTM-5.0-Qualcomm/source/Lib/TLibDecoder/TDecTop.h
r194 r195 88 88 Int** m_aaiCodedScale; 89 89 Int* m_aiViewOrderIndex; 90 #if MVHEVC90 #if QC_MVHEVC_B0046 91 91 Int* m_aiViewId; 92 92 #endif … … 171 171 172 172 Void deletePicBuffer(); 173 #if MVHEVC173 #if QC_MVHEVC_B0046 174 174 Void xCopySPS( TComSPS* pSPSV0); 175 175 Void xCopyPPS( TComPPS* pPPSV0); … … 202 202 TAppDecTop* getTAppDecTop() { return m_tAppDecTop; } 203 203 NalUnitType getNalUnitTypeBaseView() { return m_nalUnitTypeBaseView; } 204 #if MVHEVC204 #if QC_MVHEVC_B0046 205 205 bool m_bFirstNal; //used to copy SPS, PPS, VPS 206 206 ParameterSetManagerDecoder* xGetParaSetDec () {return &m_parameterSetManagerDecoder;} … … 218 218 Bool xDecodeSlice(InputNALUnit &nalu, Int iSkipFrame, Int iPOCLastDisplay); 219 219 #endif 220 #if VIDYO_VPS_INTEGRATION| MVHEVC220 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 221 221 Void xDecodeVPS(); 222 222 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/NALwrite.cpp
r194 r195 64 64 #endif 65 65 66 #if MVHEVC66 #if QC_MVHEVC_B0046 67 67 bsNALUHeader.write(nalu.m_layerId, 5); // when nal_ref_flag is signalled, 5 bits here. otherwise, 6 bits 68 68 bsNALUHeader.write(nalu.m_temporalId + 1, 3); // temporal_id … … 83 83 case NAL_UNIT_CODED_SLICE_IDR: 84 84 #if H0566_TLA 85 #if !QC_REM_IDV 85 #if !QC_REM_IDV_B0046 86 86 case NAL_UNIT_CODED_SLICE_IDV: 87 87 #endif … … 202 202 } 203 203 204 #if ! MVHEVC204 #if !QC_MVHEVC_B0046 205 205 /** 206 206 * Copy NALU from naluSrc to naluDest -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/NALwrite.h
r194 r195 62 62 NalRefIdc nalRefIDC, 63 63 #endif 64 #if VIDYO_VPS_INTEGRATION| MVHEVC64 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 65 65 unsigned layerId, 66 66 #else … … 70 70 unsigned temporalID = 0) 71 71 #if NAL_REF_FLAG 72 #if VIDYO_VPS_INTEGRATION| MVHEVC72 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 73 73 : NALUnit(nalUnitType, nalRefFlag, layerId, temporalID) 74 74 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncCavlc.cpp
r194 r195 375 375 } 376 376 377 #if MVHEVC377 #if QC_MVHEVC_B0046 378 378 Void TEncCavlc::codeVPS( TComVPS* pcVPS ) 379 379 { … … 708 708 #endif 709 709 WRITE_FLAG( 1, "sps_extension_flag" ); 710 #if ! MVHEVC710 #if !QC_MVHEVC_B0046 711 711 WRITE_FLAG( (pcSPS->getNumberOfUsableInterViewRefs() > 0) ? 1 : 0, "interview_refs_present_flag" ); 712 712 if( pcSPS->getNumberOfUsableInterViewRefs() > 0 ) … … 884 884 if (!bEntropySlice) 885 885 { 886 #if MVHEVC886 #if QC_MVHEVC_B0046 887 887 WRITE_UVLC( 0, "pic_parameter_set_id" ); 888 888 #else … … 895 895 } 896 896 #endif 897 #if QC_REM_IDV 897 #if QC_REM_IDV_B0046 898 898 if(pcSlice->getNalUnitType()==NAL_UNIT_CODED_SLICE_IDR && pcSlice->getViewId() == 0) 899 899 #else … … 907 907 { 908 908 WRITE_CODE( (pcSlice->getPOC()-pcSlice->getLastIDR()+(1<<pcSlice->getSPS()->getBitsForPOC()))%(1<<pcSlice->getSPS()->getBitsForPOC()), pcSlice->getSPS()->getBitsForPOC(), "pic_order_cnt_lsb"); 909 #if QC_REM_IDV 909 #if QC_REM_IDV_B0046 910 910 if( pcSlice->getPOC() == 0 && !(pcSlice->getSPS()->getViewId() && (pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR || pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA))) 911 911 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncCavlc.h
r194 r195 114 114 UInt getCoeffCost () { return m_uiCoeffCost; } 115 115 116 #if VIDYO_VPS_INTEGRATION| MVHEVC116 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 117 117 Void codeVPS ( TComVPS* pcVPS ); 118 118 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncCfg.h
r194 r195 307 307 #endif 308 308 309 #if VIDYO_VPS_INTEGRATION| MVHEVC309 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 310 310 UInt m_layerId; 311 311 #endif … … 820 820 Int getTSIG() { return m_signHidingThreshold; } 821 821 #endif 822 #if VIDYO_VPS_INTEGRATION | MVHEVC822 #if VIDYO_VPS_INTEGRATION |QC_MVHEVC_B0046 823 823 Void setLayerId ( UInt layerId ) { m_layerId = layerId; } 824 824 UInt getLayerId () { return m_layerId; } -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncEntropy.cpp
r194 r195 121 121 } 122 122 123 #if VIDYO_VPS_INTEGRATION| MVHEVC123 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 124 124 Void TEncEntropy::encodeVPS( TComVPS* pcVPS ) 125 125 { … … 129 129 #endif 130 130 131 #if VIDYO_VPS_INTEGRATION| MVHEVC131 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 132 132 Void codeVPS ( TComVPS* pcVPS ); 133 133 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncEntropy.h
r194 r195 76 76 virtual UInt getCoeffCost () = 0; 77 77 78 #if VIDYO_VPS_INTEGRATION| MVHEVC78 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 79 79 virtual Void codeVPS ( TComVPS* pcVPS ) = 0; 80 80 #endif … … 242 242 243 243 public: 244 #if VIDYO_VPS_INTEGRATION| MVHEVC244 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 245 245 Void encodeVPS ( TComVPS* pcVPS); 246 246 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncGOP.cpp
r194 r195 246 246 247 247 std::vector<TComAPS>& vAPS = m_pcEncTop->getAPS(); 248 #if VIDYO_VPS_INTEGRATION| MVHEVC248 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 249 249 m_pcSliceEncoder->initEncSlice ( pcPic, iPOCLast, uiPOCCurr, iNumPicRcvd, iGOPid, pcSlice, m_pcEncTop->getEncTop()->getVPS(), m_pcEncTop->getSPS(), m_pcEncTop->getPPS() ); 250 250 #else … … 298 298 if( pcSlice->getSliceType() == B_SLICE ) 299 299 { 300 #if QC_REM_IDV 300 #if QC_REM_IDV_B0046 301 301 if( m_pcCfg->getGOPEntry(pcSlice->getSPS()->getViewId() && ((getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDR) || (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_CRA))? MAX_GOP : iGOPid ).m_sliceType == 'P' ) { pcSlice->setSliceType( P_SLICE ); } 302 302 #else … … 336 336 #endif 337 337 338 #if !QC_REM_IDV 338 #if !QC_REM_IDV_B0046 339 339 pcSlice->setNumRefIdx( REF_PIC_LIST_0, min( m_pcCfg->getGOPEntry( (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDV) ? MAX_GOP : iGOPid ).m_numRefPicsActive, (pcSlice->getRPS()->getNumberOfPictures() + pcSlice->getSPS()->getNumberOfUsableInterViewRefs()) ) ); 340 340 pcSlice->setNumRefIdx( REF_PIC_LIST_1, min( m_pcCfg->getGOPEntry( (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDV) ? MAX_GOP : iGOPid ).m_numRefPicsActive, (pcSlice->getRPS()->getNumberOfPictures() + pcSlice->getSPS()->getNumberOfUsableInterViewRefs()) ) ); … … 373 373 if( pcSlice->getSliceType() == B_SLICE ) 374 374 { 375 #if !QC_REM_IDV 375 #if !QC_REM_IDV_B0046 376 376 if( m_pcCfg->getGOPEntry( (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDV) ? MAX_GOP : iGOPid ).m_sliceType == 'P' ) { pcSlice->setSliceType( P_SLICE ); } 377 377 #else … … 845 845 if ( m_bSeqFirst ) 846 846 { 847 #if MVHEVC847 #if QC_MVHEVC_B0046 848 848 if(!m_pcEncTop->getLayerId()) 849 849 { 850 850 #endif 851 #if VIDYO_VPS_INTEGRATION| MVHEVC851 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 852 852 { 853 853 OutputNALUnit nalu(NAL_UNIT_VPS, true, m_pcEncTop->getLayerId()); … … 859 859 #endif 860 860 #if NAL_REF_FLAG 861 #if VIDYO_VPS_INTEGRATION| MVHEVC861 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 862 862 OutputNALUnit nalu(NAL_UNIT_SPS, true, m_pcEncTop->getLayerId()); 863 863 #else … … 880 880 881 881 #if NAL_REF_FLAG 882 #if VIDYO_VPS_INTEGRATION| MVHEVC883 #if MVHEVC882 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 883 #if QC_MVHEVC_B0046 884 884 nalu = NALUnit(NAL_UNIT_PPS, true, m_pcEncTop->getLayerId()); 885 885 #else … … 896 896 writeRBSPTrailingBits(nalu.m_Bitstream); 897 897 accessUnit.push_back(new NALUnitEBSP(nalu)); 898 #if MVHEVC898 #if QC_MVHEVC_B0046 899 899 } 900 900 #endif … … 1018 1018 #if NAL_REF_FLAG 1019 1019 OutputNALUnit nalu( pcSlice->getNalUnitType(), pcSlice->isReferenced(), 1020 #if !VIDYO_VPS_INTEGRATION &! MVHEVC1020 #if !VIDYO_VPS_INTEGRATION &!QC_MVHEVC_B0046 1021 1021 m_pcEncTop->getViewId(), m_pcEncTop->getIsDepth(), pcSlice->getTLayer() ); 1022 1022 #else … … 1494 1494 { 1495 1495 #if NAL_REF_FLAG 1496 #if VIDYO_VPS_INTEGRATION | MVHEVC1496 #if VIDYO_VPS_INTEGRATION | QC_MVHEVC_B0046 1497 1497 OutputNALUnit nalu(NAL_UNIT_APS, true, m_pcEncTop->getLayerId()); 1498 1498 #else … … 1560 1560 1561 1561 #if NAL_REF_FLAG 1562 #if VIDYO_VPS_INTEGRATION | MVHEVC1562 #if VIDYO_VPS_INTEGRATION | QC_MVHEVC_B0046 1563 1563 OutputNALUnit nalu(NAL_UNIT_SEI, false, m_pcEncTop->getLayerId()); 1564 1564 #else … … 1998 1998 case NAL_UNIT_CODED_SLICE: return "SLICE"; 1999 1999 #if H0566_TLA 2000 #if !QC_REM_IDV 2000 #if !QC_REM_IDV_B0046 2001 2001 case NAL_UNIT_CODED_SLICE_IDV: return "IDV"; 2002 2002 #endif … … 2215 2215 if( bInterViewOnlySlice ) 2216 2216 { 2217 #if !QC_REM_IDV 2217 #if !QC_REM_IDV_B0046 2218 2218 return NAL_UNIT_CODED_SLICE_IDV; 2219 2219 #else … … 2232 2232 if( bInterViewOnlySlice ) 2233 2233 { 2234 #if !QC_REM_IDV 2234 #if !QC_REM_IDV_B0046 2235 2235 return NAL_UNIT_CODED_SLICE_IDV; 2236 2236 #else … … 2251 2251 if( bInterViewOnlySlice ) 2252 2252 { 2253 #if !QC_REM_IDV 2253 #if !QC_REM_IDV_B0046 2254 2254 return NAL_UNIT_CODED_SLICE_IDV; 2255 2255 #else … … 2493 2493 2494 2494 // analyze inter-view modifications 2495 #if !QC_REM_IDV 2495 #if !QC_REM_IDV_B0046 2496 2496 GOPEntryMvc gem = m_pcCfg->getGOPEntry( (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDV) ? MAX_GOP : iGOPid ); 2497 2497 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncSbac.cpp
r194 r195 396 396 } 397 397 398 #if VIDYO_VPS_INTEGRATION| MVHEVC398 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 399 399 Void TEncSbac::codeVPS( TComVPS* pcVPS ) 400 400 { -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncSbac.h
r194 r195 98 98 //--SBAC RD 99 99 100 #if VIDYO_VPS_INTEGRATION| MVHEVC100 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 101 101 Void codeVPS ( TComVPS* pcVPS ); 102 102 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncSearch.cpp
r194 r195 4284 4284 } 4285 4285 #endif 4286 #if MVHEVC4286 #if QC_MVHEVC_B0046 4287 4287 m_pcRdCost->setMultiviewReg( 0 ); 4288 4288 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncSlice.cpp
r194 r195 162 162 \param pPPS PPS associated with the slice 163 163 */ 164 #if VIDYO_VPS_INTEGRATION| MVHEVC164 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 165 165 Void TEncSlice::initEncSlice( TComPic* pcPic, Int iPOCLast, UInt uiPOCCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComVPS * pVPS, TComSPS* pSPS, TComPPS *pPPS ) 166 166 #else … … 172 172 173 173 rpcSlice = pcPic->getSlice(0); 174 #if VIDYO_VPS_INTEGRATION| MVHEVC174 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 175 175 rpcSlice->setVPS( pVPS ); 176 176 #endif … … 820 820 UInt uiTileStartLCU = 0; 821 821 UInt uiTileLCUX = 0; 822 #if ! MVHEVC822 #if !QC_MVHEVC_B0046 823 823 Int iLastPosY = -1; 824 824 #endif … … 833 833 TComDataCU*& pcCU = rpcPic->getCU( uiCUAddr ); 834 834 pcCU->initCU( rpcPic, uiCUAddr ); 835 #if ! MVHEVC835 #if !QC_MVHEVC_B0046 836 836 if ( m_pcRdCost->getUseRenModel() ) 837 837 { -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncSlice.h
r194 r195 110 110 111 111 /// preparation of slice encoding (reference marking, QP and lambda) 112 #if VIDYO_VPS_INTEGRATION| MVHEVC112 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 113 113 Void initEncSlice ( TComPic* pcPic, Int iPOCLast, UInt uiPOCCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComVPS* pVPS, TComSPS* pSPS, TComPPS *pPPS ); 114 114 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibEncoder/TEncTop.cpp
r194 r195 785 785 else 786 786 { 787 #if MVHEVC787 #if QC_MVHEVC_B0046 788 788 m_cSPS.initMultiviewSPS ( m_viewId); 789 789 #else … … 997 997 Void TEncTop::selectReferencePictureSet(TComSlice* slice, Int POCCurr, Int GOPid,TComList<TComPic*>& listPic ) 998 998 { 999 #if QC_REM_IDV 999 #if QC_REM_IDV_B0046 1000 1000 if( (slice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR ||slice->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA) && slice->getSPS()->getViewId() && POCCurr == 0 ) 1001 1001 #else -
branches/HTM-5.0-Qualcomm/source/Lib/TLibExtractor/TExtrTop.cpp
r194 r195 55 55 Bool TExtrTop::extract( InputNALUnit& nalu, std::set<UInt>& rsuiExtractLayerIds ) 56 56 { 57 #if VIDYO_VPS_INTEGRATION| MVHEVC57 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 58 58 //extraction now has to be done using layer_id 59 59 UInt uiLayerId = nalu.m_layerId; … … 65 65 m_cEntropyDecoder.setBitstream ( nalu.m_Bitstream ); 66 66 67 #if VIDYO_VPS_INTEGRATION| MVHEVC67 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 68 68 if ( nalu.m_nalUnitType == NAL_UNIT_VPS ) 69 69 { -
branches/HTM-5.0-Qualcomm/source/Lib/TLibExtractor/TExtrTop.h
r194 r195 54 54 { 55 55 private: 56 #if VIDYO_VPS_INTEGRATION| MVHEVC56 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 57 57 TComVPS m_cVPS; 58 58 #endif -
branches/HTM-5.0-Qualcomm/source/Lib/TLibRenderer/TRenModSetupStrParser.cpp
r194 r195 36 36 #include "TRenFilter.h" 37 37 #include "TRenModSetupStrParser.h" 38 #if ! MVHEVC38 #if !QC_MVHEVC_B0046 39 39 Int 40 40 TRenModSetupStrParser::getNumOfModels() -
branches/HTM-5.0-Qualcomm/source/Lib/TLibRenderer/TRenModSetupStrParser.h
r194 r195 31 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 32 */ 33 #if ! MVHEVC33 #if !QC_MVHEVC_B0046 34 34 #ifndef __TRENMODSETUPSTRPARSER__ 35 35 #define __TRENMODSETUPSTRPARSER__ -
branches/HTM-5.0-Qualcomm/source/Lib/TLibRenderer/TRenModel.cpp
r194 r195 35 35 #include "TRenFilter.h" 36 36 #include "TRenModel.h" 37 #if ! MVHEVC37 #if !QC_MVHEVC_B0046 38 38 /////////// TRENMODEL ////////////////////// 39 39 TRenModel::TRenModel() -
branches/HTM-5.0-Qualcomm/source/Lib/TLibRenderer/TRenModel.h
r194 r195 32 32 */ 33 33 34 #if ! MVHEVC34 #if !QC_MVHEVC_B0046 35 35 #ifndef __TRENMODEL__ 36 36 #define __TRENMODEL__ -
branches/HTM-5.0-Qualcomm/source/Lib/TLibRenderer/TRenSingleModel.cpp
r194 r195 36 36 #include "TRenSingleModel.h" 37 37 38 #if ! MVHEVC38 #if !QC_MVHEVC_B0046 39 39 ////////////// TRENSINGLE MODEL /////////////// 40 40 template <BlenMod iBM, Bool bBitInc> -
branches/HTM-5.0-Qualcomm/source/Lib/TLibRenderer/TRenSingleModel.h
r194 r195 32 32 */ 33 33 34 #if ! MVHEVC34 #if !QC_MVHEVC_B0046 35 35 #ifndef __TRENSINGLEMODEL__ 36 36 #define __TRENSINGLEMODEL__
Note: See TracChangeset for help on using the changeset viewer.