Changeset 1396 in 3DVCSoftware for trunk/source/App/TAppEncoder
- Timestamp:
- 11 Mar 2016, 16:54:51 (9 years ago)
- Location:
- trunk/source/App/TAppEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/TAppEncoder/TAppEncCfg.cpp
r1386 r1396 188 188 free ( m_pchVSOConfig ); 189 189 } 190 #endif 191 #if NH_3D_VSO || NH_3D 190 192 191 193 if ( m_pchCameraParameterFile != NULL ) … … 816 818 ("ViewId", m_viewId , IntAry1d(1,0), "View Id per View Order Index") 817 819 ("AuxId", m_auxId , IntAry1d(1,0), "AuxId per layer") 818 #if NH_3D_VSO 820 #if NH_3D_VSO || NH_3D 819 821 ("DepthFlag", m_depthFlag , IntAry1d(1,0), "Depth Flag") 820 822 #endif … … 1285 1287 ("Depth420OutputFlag", m_depth420OutputFlag, true , "Output depth layers in 4:2:0 ") 1286 1288 #endif 1287 #if NH_3D_VSO 1289 #if NH_3D_VSO || NH_3D 1288 1290 ("CameraParameterFile,cpf", m_pchCameraParameterFile, (TChar *) 0 , "Camera Parameter File Name") 1289 1291 ("CodedCamParsPrecision", m_iCodedCamParPrecision, STD_CAM_PARAMETERS_PRECISION, "precision for coding of camera parameters (in units of 2^(-x) luma samples)" ) 1290 1292 #endif 1293 #if NH_3D_VSO 1291 1294 /* View Synthesis Optimization */ 1292 1295 ("VSOConfig", m_pchVSOConfig , (TChar *) 0 ,"VSO configuration") … … 1807 1810 xResizeVector( m_auxId ); 1808 1811 1809 #if NH_3D_VSO 1812 #if NH_3D_VSO || NH_3D 1810 1813 xResizeVector( m_depthFlag ); 1811 1814 #endif … … 2070 2073 LOG2_DISP_PREC_LUT ); 2071 2074 } 2072 #if NH_3D2073 2075 else 2076 #endif 2077 #if NH_3D || NH_3D_VSO 2074 2078 { 2075 2079 m_cCameraData .init ( ((UInt) m_iNumberOfViews ), … … 2085 2089 } 2086 2090 m_cCameraData.check( false, true ); 2087 #endif2088 2091 #endif 2089 2092 … … 2270 2273 #endif 2271 2274 2272 #if NH_3D_VSO 2275 #if NH_3D_VSO || NH_3D 2273 2276 if ( m_scalabilityMask & ( 1 << DEPTH_ID ) ) 2274 2277 { … … 2629 2632 } 2630 2633 2631 #if NH_3D_VSO 2634 #if NH_3D_VSO || NH_3D 2632 2635 xConfirmPara( m_pchCameraParameterFile == 0 , "CameraParameterFile must be given"); 2633 2636 xConfirmPara( m_pchBaseViewCameraNumbers == 0 , "BaseViewCameraNumbers must be given" ); 2634 2637 xConfirmPara( m_iNumberOfViews != m_cCameraData.getBaseViewNumbers().size() , "Number of Views in BaseViewCameraNumbers must be equal to NumberOfViews" ); 2635 2638 xConfirmPara ( m_iCodedCamParPrecision < 0 || m_iCodedCamParPrecision > 5, "CodedCamParsPrecision must be in range of 0..5" ); 2639 #endif 2640 #if NH_3D_VSO 2636 2641 if( m_bUseVSO ) 2637 2642 { … … 3393 3398 xPrintParaVector( "AuxId", m_auxId ); 3394 3399 #endif 3395 #if NH_3D_VSO 3400 #if NH_3D_VSO || NH_3D 3396 3401 xPrintParaVector( "DepthLayerFlag", m_depthFlag ); 3397 3402 printf("Coded Camera Param. Precision : %d\n", m_iCodedCamParPrecision); … … 3595 3600 3596 3601 printf("Max Num Merge Candidates : %d\n", m_maxNumMergeCand); 3597 #if NH_3D_VSO 3602 #if NH_3D_VSO || NH_3D 3598 3603 printf("BaseViewCameraNumbers : %s\n", m_pchBaseViewCameraNumbers ); 3599 3604 printf("Coded Camera Param. Precision : %d\n", m_iCodedCamParPrecision); 3605 #endif 3606 #if NH_3D_VSO 3600 3607 printf("Force use of Lambda Scale : %d\n", m_bForceLambdaScaleVSO ); 3601 3608 -
trunk/source/App/TAppEncoder/TAppEncCfg.h
r1386 r1396 80 80 IntAry1d m_viewOrderIndex; ///< view order index 81 81 IntAry1d m_auxId; ///< auxiliary id 82 #if NH_3D_VSO 82 #if NH_3D_VSO || NH_3D 83 83 IntAry1d m_depthFlag; ///< depth flag 84 84 #endif … … 532 532 #endif 533 533 // Camera parameters 534 #if NH_3D _VSO534 #if NH_3D || NH_3D_VSO 535 535 TChar* m_pchCameraParameterFile; ///< camera parameter file 536 536 TAppComCamPara m_cCameraData; 537 537 Int m_iCodedCamParPrecision; ///< precision for coding of camera parameters 538 #endif 539 #if NH_3D_VSO 538 540 TChar* m_pchVSOConfig; 539 541 Bool m_bUseVSO; ///< flag for using View Synthesis Optimization -
trunk/source/App/TAppEncoder/TAppEncTop.cpp
r1386 r1396 148 148 xSetCamPara ( vps ); 149 149 #endif 150 #if NH_3D_VSO 150 #if NH_3D_VSO || NH_3D 151 151 m_ivPicLists.setVPS ( &vps ); 152 152 #endif … … 278 278 m_cTEncTop.setViewId ( vps.getViewId ( layerId ) ); 279 279 m_cTEncTop.setViewIndex ( vps.getViewIndex ( layerId ) ); 280 #if NH_3D_VSO 280 #if NH_3D_VSO || NH_3D 281 281 Bool isDepth = ( vps.getDepthId ( layerId ) != 0 ) ; 282 282 Bool isAuxDepth = ( vps.getAuxId ( layerId ) == 2 ) ; // TBD: define 2 as AUX_DEPTH … … 284 284 m_cTEncTop.setIsAuxDepth ( isAuxDepth ); 285 285 //====== Camera Parameters ========= 286 m_cTEncTop.setCameraParameters ( &m_cCameraData ); 286 m_cTEncTop.setCameraParameters ( &m_cCameraData ); 287 #endif 288 #if NH_3D_VSO 287 289 //====== VSO ========= 288 290 m_cTEncTop.setRenderModelParameters ( &m_cRenModStrParser ); … … 796 798 { 797 799 #if H_3D_VSO_EARLY_SKIP 798 m_cRendererModel.create( m_cRenModStrParser.getNumOfBaseViews(), m_cRenModStrParser.getNumOfModels(), m_iSourceWidth, m_uiMaxCUHeight , LOG2_DISP_PREC_LUT, 0, m_bVSOEarlySkip );799 #else 800 m_cRendererModel.create( m_cRenModStrParser.getNumOfBaseViews(), m_cRenModStrParser.getNumOfModels(), m_iSourceWidth, m_uiMaxCUHeight , LOG2_DISP_PREC_LUT, 0 );800 m_cRendererModel.create( m_cRenModStrParser.getNumOfBaseViews(), m_cRenModStrParser.getNumOfModels(), m_iSourceWidth, m_uiMaxCUHeight , LOG2_DISP_PREC_LUT, 0, true, m_bVSOEarlySkip ); 801 #else 802 m_cRendererModel.create( m_cRenModStrParser.getNumOfBaseViews(), m_cRenModStrParser.getNumOfModels(), m_iSourceWidth, m_uiMaxCUHeight , LOG2_DISP_PREC_LUT, 0 , true); 801 803 #endif 802 804 for ( Int layer = 0; layer < m_numberOfLayers ; layer++ ) … … 1036 1038 for ( Int gopId=0; gopId < gopSize; gopId++ ) 1037 1039 { 1038 #if NH_3D_VSO 1040 #if NH_3D_VSO || NH_3D 1039 1041 UInt iNextPoc = m_acTEncTopList[0] -> getFrameId( gopId ); 1040 1042 if ( iNextPoc < m_framesToBeEncoded )
Note: See TracChangeset for help on using the changeset viewer.