Changeset 194 in 3DVCSoftware for branches/HTM-5.0-Qualcomm/source/App/TAppEncoder
- Timestamp:
- 26 Nov 2012, 18:35:20 (12 years ago)
- Location:
- branches/HTM-5.0-Qualcomm/source/App/TAppEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.0-Qualcomm/source/App/TAppEncoder/TAppEncCfg.cpp
r189 r194 329 329 /* Camera Paremetes */ 330 330 ("CameraParameterFile,cpf", m_pchCameraParameterFile, (Char *) 0, "Camera Parameter File Name") 331 #if MVHEVC 332 ("BaseViewCameraNumbers" , m_aiVId, std::vector<Int>(1, MAX_VIEW_NUM), "Numbers of base views") 333 #endif 331 334 ("BaseViewCameraNumbers" , m_pchBaseViewCameraNumbers, (Char *) 0, "Numbers of base views") 332 335 … … 786 789 } 787 790 #else 791 #if !MVHEVC 788 792 m_cCameraData .init ( (UInt)m_iNumberOfViews, 789 793 m_uiInputBitDepth, … … 797 801 LOG2_DISP_PREC_LUT ); 798 802 #endif 803 #endif 799 804 800 805 801 806 // check validity of input parameters 802 807 xCheckParameter(); 808 #if !MVHEVC 803 809 m_cCameraData.check( false, true ); 804 810 #endif 805 811 // print-out parameters 806 812 xPrintParameter(); -
branches/HTM-5.0-Qualcomm/source/App/TAppEncoder/TAppEncCfg.h
r189 r194 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 MVHEVC 112 std::vector<Int> m_aiVId; ///< view id 113 #endif 111 114 Int m_aiTLayerQPOffset[MAX_TLAYER]; ///< QP offset corresponding to temporal layer depth 112 115 char* m_pchdQPFile; ///< QP offset for each slice (initialized from external file) … … 285 288 Char* m_pchCameraParameterFile; ///< camera parameter file 286 289 Char* m_pchBaseViewCameraNumbers; 290 #if !MVHEVC 287 291 TAppComCamPara m_cCameraData; 288 292 #endif 289 293 Int m_iCodedCamParPrecision; ///< precision for coding of camera parameters 290 294 -
branches/HTM-5.0-Qualcomm/source/App/TAppEncoder/TAppEncTop.cpp
r189 r194 67 67 Void TAppEncTop::xInitLibCfg() 68 68 { 69 #if VIDYO_VPS_INTEGRATION 69 #if VIDYO_VPS_INTEGRATION|MVHEVC 70 #if !MVHEVC 70 71 UInt layerId = 0; 72 #endif 71 73 // TODO: fix the assumption here that the temporal structures are all equal across all layers??? 72 74 m_cVPS.setMaxTLayers( m_maxTempLayer[0] ); 75 #if MVHEVC 76 m_cVPS.setMaxLayers( m_iNumberOfViews ); 77 #else 73 78 m_cVPS.setMaxLayers( m_iNumberOfViews * (m_bUsingDepthMaps ? 2:1) ); 79 #endif 74 80 for(Int i = 0; i < MAX_TLAYER; i++) 75 81 { … … 101 107 m_acTEncTopList[iViewIdx]->setViewId ( iViewIdx ); 102 108 m_acTEncTopList[iViewIdx]->setIsDepth ( false ); 109 #if MVHEVC 110 m_acTEncTopList[iViewIdx]->setLayerId ( iViewIdx ); 111 m_cVPS.setViewId ( m_aiVId[ iViewIdx ], iViewIdx ); 112 #else 103 113 m_acTEncTopList[iViewIdx]->setViewOrderIdx ( m_cCameraData.getViewOrderIndex()[ iViewIdx ] ); 104 114 #if VIDYO_VPS_INTEGRATION … … 117 127 m_acTEncTopList[iViewIdx]->setCodedScale ( m_cCameraData.getCodedScale () ); 118 128 m_acTEncTopList[iViewIdx]->setCodedOffset ( m_cCameraData.getCodedOffset () ); 129 #endif 119 130 120 131 //====== Coding Structure ======== … … 406 417 m_acTEncDepthTopList[iViewIdx]->setViewId ( iViewIdx ); 407 418 m_acTEncDepthTopList[iViewIdx]->setIsDepth ( true ); 419 #if MVHEVC 420 m_acTEncDepthTopList[iViewIdx]->setLayerId ( iViewIdx ); 421 #else 408 422 m_acTEncDepthTopList[iViewIdx]->setViewOrderIdx ( m_cCameraData.getViewOrderIndex()[ iViewIdx ] ); 423 #endif 409 424 #if VIDYO_VPS_INTEGRATION 410 425 layerId = iViewIdx * 2 + 1; … … 821 836 { 822 837 m_acTEncTopList[iViewIdx]->init( this ); 838 #if MVHEVC 839 //set setNumDirectRefLayer 840 Int iNumDirectRef = m_acTEncTopList[iViewIdx]->getSPS()->getNumberOfUsableInterViewRefs(); 841 m_acTEncTopList[iViewIdx]->getEncTop()->getVPS()->setNumDirectRefLayer(iNumDirectRef, iViewIdx); 842 for(Int iNumIvRef = 0; iNumIvRef < iNumDirectRef; iNumIvRef ++) 843 { 844 Int iLayerId = m_acTEncTopList[iViewIdx]->getSPS()->getUsableInterViewRef(iNumIvRef); 845 m_acTEncTopList[iViewIdx]->getEncTop()->getVPS()->setDirectRefLayerId( iLayerId + iViewIdx, iViewIdx, iNumIvRef); 846 } 847 #endif 823 848 } 824 849 for(Int iViewIdx=0; iViewIdx<m_iNumberOfViews; iViewIdx++) … … 862 887 TComPicYuv* pcPicYuvOrg = new TComPicYuv; 863 888 TComPicYuv* pcDepthPicYuvOrg = new TComPicYuv; 889 #if !MVHEVC 864 890 TComPicYuv* pcPdmDepthOrg = new TComPicYuv; 891 #endif 865 892 TComPicYuv* pcPicYuvRec = NULL; 866 893 TComPicYuv* pcDepthPicYuvRec = NULL; … … 963 990 { 964 991 Int iNumEncoded = 0; 992 #if !MVHEVC 965 993 UInt iNextPoc = m_acTEncTopList[0] -> getFrameId( gopId ); 966 994 if ( iNextPoc < m_iFrameToBeEncoded ) … … 968 996 m_cCameraData.update( iNextPoc ); 969 997 } 998 #endif 970 999 for(Int iViewIdx=0; iViewIdx < m_iNumberOfViews; iViewIdx++ ) 971 1000 { … … 1022 1051 delete pcDepthPicYuvOrg; 1023 1052 pcDepthPicYuvOrg = NULL; 1024 1053 1054 #if !MVHEVC 1055 #if BUG_FIX_HTM 1056 if ( pcPdmDepthOrg != NULL && m_uiMultiviewMvRegMode ) 1057 #else 1025 1058 if ( pcPdmDepthOrg != NULL ) 1059 #endif 1026 1060 { 1027 1061 pcPdmDepthOrg->destroy(); … … 1029 1063 pcPdmDepthOrg = NULL; 1030 1064 }; 1031 1065 #endif 1032 1066 1033 1067 for(Int iViewIdx=0; iViewIdx < m_iNumberOfViews; iViewIdx++ ) … … 1233 1267 case NAL_UNIT_CODED_SLICE: 1234 1268 #if H0566_TLA 1269 #if !QC_REM_IDV 1235 1270 case NAL_UNIT_CODED_SLICE_IDV: 1271 #endif 1236 1272 case NAL_UNIT_CODED_SLICE_TLA: 1237 1273 case NAL_UNIT_CODED_SLICE_CRA: -
branches/HTM-5.0-Qualcomm/source/App/TAppEncoder/TAppEncTop.h
r189 r194 87 87 #endif 88 88 89 #if VIDYO_VPS_INTEGRATION 89 #if VIDYO_VPS_INTEGRATION|MVHEVC 90 90 TComVPS m_cVPS; 91 91 #endif … … 139 139 #endif 140 140 141 #if MVHEVC 142 TComVPS* getVPS() { return &m_cVPS; } 143 #endif 141 144 #if VIDYO_VPS_INTEGRATION 142 145 TComVPS* getVPS() { return &m_cVPS; }
Note: See TracChangeset for help on using the changeset viewer.