Changeset 195 in 3DVCSoftware for branches/HTM-5.0-Qualcomm/source/App
- Timestamp:
- 26 Nov 2012, 22:32:00 (12 years ago)
- Location:
- branches/HTM-5.0-Qualcomm/source/App
- Files:
-
- 11 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
Note: See TracChangeset for help on using the changeset viewer.