Changeset 1373 in 3DVCSoftware for branches/HTM-15.2-dev/source/Lib
- Timestamp:
- 6 Nov 2015, 16:18:36 (9 years ago)
- Location:
- branches/HTM-15.2-dev/source/Lib
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.2-dev/source/Lib/TAppCommon/TAppComCamPara.cpp
r1360 r1373 49 49 #include <functional> 50 50 #include <string> 51 #if NH_3D 51 #if NH_3D_VSO 52 52 53 53 … … 194 194 TAppComCamPara::xReadCameraParameterFile( TChar* pchCfgFileName ) 195 195 { 196 assert( pchCfgFileName != NULL ); 197 196 198 std::ifstream cCfgStream( pchCfgFileName, std::ifstream::in ); 197 199 if( !cCfgStream ) -
branches/HTM-15.2-dev/source/Lib/TLibCommon/CommonDef.h
r1362 r1373 446 446 #endif 447 447 448 #if NH_3D 448 #if NH_3D_VSO 449 449 //PICYUV 450 450 #define PICYUV_PAD 16 -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPic.cpp
r1321 r1373 60 60 , m_viewId (0) 61 61 , m_bPicOutputFlag (false) 62 #if NH_3D 62 #if NH_3D_VSO 63 63 , m_viewIndex (0) 64 64 , m_isDepth (false) … … 993 993 } 994 994 995 #if NH_3D 996 TComPicYuv* TComPicLists::getPicYuv( Int viewIndex, Bool depthFlag, Int poc, Bool recon )995 #if NH_3D_VSO 996 TComPicYuv* TComPicLists::getPicYuv( Int viewIndex, Bool depthFlag, Int auxId, Int poc, Bool recon ) 997 997 { 998 Int layerIdInNuh = m_vps->getLayerIdInNuh( viewIndex, depthFlag );998 Int layerIdInNuh = m_vps->getLayerIdInNuh( viewIndex, depthFlag, auxId ); 999 999 return getPicYuv( layerIdInNuh, poc, recon ); 1000 1000 } 1001 1001 1002 TComPic* TComPicLists::getPic( Int viewIndex, Bool depthFlag, Int poc )1003 { 1004 return getPic ( m_vps->getLayerIdInNuh( viewIndex, depthFlag ), poc );1002 TComPic* TComPicLists::getPic( Int viewIndex, Bool depthFlag, Int auxId, Int poc ) 1003 { 1004 return getPic ( m_vps->getLayerIdInNuh( viewIndex, depthFlag, auxId ), poc ); 1005 1005 } 1006 1006 -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPic.h
r1360 r1373 154 154 TComDecodedRps m_decodedRps; 155 155 #endif 156 #if NH_3D 156 #if NH_3D_VSO 157 157 Int m_viewIndex; 158 158 Bool m_isDepth; … … 311 311 Void print( Int outputLevel ); 312 312 313 #if NH_3D 313 #if NH_3D_VSO 314 314 Void setViewIndex ( Int viewIndex ) { m_viewIndex = viewIndex; } 315 315 Int getViewIndex () const { return m_viewIndex; } … … 404 404 TComList<TComSubDpb*> m_subDpbs; 405 405 Bool m_printPicOutput; 406 #if NH_3D 406 #if NH_3D_VSO 407 407 const TComVPS* m_vps; 408 408 #endif … … 448 448 Void print(); 449 449 450 #if NH_3D 450 #if NH_3D_VSO 451 451 Void setVPS ( const TComVPS* vps ) { m_vps = vps; }; 452 TComPic* getPic ( Int viewIndex, Bool depthFlag, Int poc );453 TComPicYuv* getPicYuv ( Int viewIndex, Bool depthFlag, Int poc, Bool recon );452 TComPic* getPic ( Int viewIndex, Bool depthFlag, Int auxId, Int poc ); 453 TComPicYuv* getPicYuv ( Int viewIndex, Bool depthFlag, Int auxId, Int poc, Bool recon ); 454 454 #endif 455 455 -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComPicYuv.h
r1360 r1373 183 183 Bool getBorderExtension( ) { return m_bIsBorderExtended; } 184 184 #endif 185 #if NH_3D 185 #if NH_3D_VSO 186 186 // Set Function 187 187 Void setLumaTo ( Pel pVal ); 188 188 Void setChromaTo ( Pel pVal ); 189 #endif 190 #if NH_3D 189 191 #if NH_3D_IV_MERGE 190 192 // sample to block and block to sample conversion -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComRdCost.cpp
r1364 r1373 41 41 #include "TComRom.h" 42 42 #include "TComRdCost.h" 43 #if NH_3D 43 #if NH_3D_VSO 44 44 #include "TComDataCU.h" 45 45 #include "TComRectangle.h" … … 503 503 504 504 cDtParam.bitDepth = bitDepth; 505 505 #if NH_3D 506 506 cDtParam.bUseIC = false; 507 #endif 507 508 #if NH_3D_SDC_INTER 508 509 cDtParam.bUseSDCMRSAD = false; -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComRdCost.h
r1370 r1373 46 46 #include "TComSlice.h" 47 47 #include "TComRdCostWeightPrediction.h" 48 #if NH_3D 48 #if NH_3D_VSO 49 49 #include "../TLibRenderer/TRenModel.h" 50 50 #include "TComYuv.h" … … 57 57 class DistParam; 58 58 class TComPattern; 59 #if NH_3D 59 #if NH_3D_VSO 60 60 class TComRdCost; 61 61 #endif … … 68 68 typedef Distortion (*FpDistFunc) (DistParam*); // TODO: can this pointer be replaced with a reference? - there are no NULL checks on pointer. 69 69 70 #if NH_3D 70 71 71 #if NH_3D_VSO 72 72 typedef Dist (TComRdCost::*FpDistFuncVSO) ( Int, Int, Pel*, Int, Pel*, Int, UInt, UInt, Bool ); 73 #endif74 73 #endif 75 74 // ==================================================================================================================== -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComSlice.cpp
r1360 r1373 118 118 , m_viewId (0) 119 119 , m_viewIndex (0) 120 #if NH_3D 120 #if NH_3D_VSO 121 121 , m_isDepth (false) 122 122 #endif … … 2182 2182 } 2183 2183 2184 #if NH_3D 2185 Int TComVPS::getLayerIdInNuh( Int viewIndex, Bool depthFlag ) const2184 #if NH_3D_VSO 2185 Int TComVPS::getLayerIdInNuh( Int viewIndex, Bool depthFlag, Int auxId ) const 2186 2186 { 2187 2187 Int foundLayerIdinNuh = -1; … … 2190 2190 { 2191 2191 Int layerIdInNuh = getLayerIdInNuh( layerIdInVps ); 2192 #if !NH_3D 2193 if( ( getViewIndex( layerIdInNuh ) == viewIndex ) && ( getAuxId( layerIdInNuh ) == ( depthFlag ? 2 : 0 ) ) ) 2194 #else 2192 2195 if( ( getViewIndex( layerIdInNuh ) == viewIndex ) && ( getDepthId( layerIdInNuh ) == ( depthFlag ? 1 : 0 ) ) ) 2196 #endif 2193 2197 { 2194 2198 foundLayerIdinNuh = layerIdInNuh; … … 2198 2202 return foundLayerIdinNuh; 2199 2203 } 2200 2204 #endif 2205 #if NH_3D 2201 2206 Void TComVPS::createCamPars(Int iNumViews) 2202 2207 { … … 3857 3862 } 3858 3863 #endif 3859 #if NH_3D 3864 #if NH_3D_QTL 3860 3865 Void TComSlice::setIvPicLists( TComPicLists* m_ivPicLists ) 3861 3866 { … … 3864 3869 for ( Int depthId = 0; depthId < 2; depthId++ ) 3865 3870 { 3866 m_ivPicsCurrPoc[ depthId ][ i ] = ( i <= m_viewIndex ) ? m_ivPicLists->getPic( i, ( depthId == 1) , getPOC() ) : NULL;3871 m_ivPicsCurrPoc[ depthId ][ i ] = ( i <= m_viewIndex ) ? m_ivPicLists->getPic( i, ( depthId == 1) , 0, getPOC() ) : NULL; 3867 3872 } 3868 3873 } 3869 3874 } 3875 #endif 3876 #if NH_3D 3870 3877 Void TComSlice::setDepthToDisparityLUTs() 3871 3878 { -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComSlice.h
r1364 r1373 1384 1384 /// VPS EXTENSION 2 SYNTAX ELEMENTS 1385 1385 Int getDepthId ( Int layerIdInNuh) const { return getScalabilityId( getLayerIdInVps(layerIdInNuh), DEPTH_ID ); } 1386 #if NH_3D 1386 #if NH_3D_VSO 1387 1387 Bool getVpsDepthFlag ( Int layerIdInNuh) const { return (getDepthId( layerIdInNuh ) > 0); } 1388 Int getLayerIdInNuh ( Int viewIndex, Bool depthFlag ) const; 1389 1388 Int getLayerIdInNuh ( Int viewIndex, Bool depthFlag, Int auxId ) const; 1389 #endif 1390 #if NH_3D 1390 1391 Void createCamPars ( Int iNumViews ); 1391 1392 Void initCamParaVPS ( Int vOIdxInVps, Int numCp, Bool cpInSliceSegmentHeaderFlag, Int* cpRefVoi, Int** aaiScale, Int** aaiOffset ); … … 2700 2701 Int m_viewId; 2701 2702 Int m_viewIndex; 2702 #if NH_3D 2703 #if NH_3D_VSO 2703 2704 Bool m_isDepth; 2704 2705 #endif … … 2752 2753 Bool m_cpAvailableFlag; 2753 2754 Int m_numViews; 2755 #endif 2756 #if NH_3D_QTL 2754 2757 TComPic* m_ivPicsCurrPoc [2][MAX_NUM_LAYERS]; 2758 #endif 2759 #if NH_3D 2755 2760 Int** m_depthToDisparityB; 2756 2761 Int** m_depthToDisparityF; … … 2850 2855 Int getNumCurCmpLIds( ) const { return (Int) m_inCmpRefViewIdcs.size(); } 2851 2856 TComPic* getIvPic( Bool depthFlag, Int viewIndex) const { return m_ivPicsCurrPoc[ depthFlag ? 1 : 0 ][ viewIndex ]; } 2857 #endif 2858 #if NH_3D_QTL 2852 2859 TComPic* getTexturePic () { return m_ivPicsCurrPoc[0][ m_viewIndex ]; } 2860 2853 2861 #endif 2854 2862 #if NH_3D_IC … … 3155 3163 Int getFirstTRefIdx ( RefPicList e ) { return m_aiFirstTRefIdx[e]; } 3156 3164 Void setFirstTRefIdx ( RefPicList e, Int i ) { m_aiFirstTRefIdx[e] = i; } 3157 Bool getArpRefPicAvailable ( RefPicList e, Int viewIdx) { return m_arpRefPicAvailable[e][getVPS()->getLayerIdInNuh(viewIdx, 0)]; } 3165 3166 Bool getArpRefPicAvailable ( RefPicList e, Int viewIdx) { return m_arpRefPicAvailable[e][getVPS()->getLayerIdInNuh(viewIdx, false, 0 )]; } 3158 3167 IntAry1d getPocsInCurrRPSs() { return m_pocsInCurrRPSs; } 3159 #endif 3168 #endif 3169 #endif 3170 #if NH_3D_VSO 3160 3171 Void setIsDepth ( Bool isDepth ) { m_isDepth = isDepth; } 3161 3172 Bool getIsDepth () const { return m_isDepth; } 3173 #endif 3174 #if NH_3D 3162 3175 Void setCamparaSlice ( Int** aaiScale = 0, Int** aaiOffset = 0 ); 3163 3176 … … 3179 3192 Int getCpInvOff( Int j ) { return m_aaiCodedOffset[1][j]; } 3180 3193 3194 #endif 3195 #if NH_3D_QTL 3181 3196 Void setIvPicLists( TComPicLists* m_ivPicLists ); 3197 #endif 3198 #if NH_3D 3182 3199 Void setDepthToDisparityLUTs(); 3183 3200 -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TComYuv.h
r1313 r1373 204 204 UInt getComponentScaleX (const ComponentID id) const { return ::getComponentScaleX(id, m_chromaFormatIDC); } 205 205 UInt getComponentScaleY (const ComponentID id) const { return ::getComponentScaleY(id, m_chromaFormatIDC); } 206 #if NH_3D_VSO 207 Void addClipPartLuma( Int bitDepth, TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiTrUnitIdx, UInt uiPartSize ); 208 #endif 206 209 #if NH_3D 207 Void addClipPartLuma( Int bitDepth, TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiTrUnitIdx, UInt uiPartSize );208 210 #if NH_3D_ARP 209 211 Void addARP ( TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiAbsPartIdx, UInt uiWidth , UInt uiHeight , Bool bClip, const BitDepths &clipBitDepths ); -
branches/HTM-15.2-dev/source/Lib/TLibCommon/TypeDef.h
r1372 r1373 105 105 // SEC_ARP_VIEW_REF_CHECK_J0037 Signaling iv_res_pred_weight_idx when the current slice has both view and temporal reference picture(s), JCT3V-J0037 item1 106 106 // SEC_ARP_REM_ENC_RESTRICT_K0035 Removal of encoder restriction of ARP, JCT3V-K0035 107 #define NH_3D_QTL 1 107 108 #define NH_3D_QTLPC 1 // OL_QTLIMIT_PREDCODING_B0068 //JCT3V-B0068 108 109 // HHI_QTLPC_RAU_OFF_C0160 JCT3V-C0160 change 2: quadtree limitation and predictive coding switched off in random access units … … 496 497 typedef std::vector< std::string > StringAry1d; 497 498 typedef std::vector< StringAry1d > StringAry2d; 499 typedef std::vector< std::string > StringAry1d; 500 typedef std::vector< StringAry1d > StringAry2d; 498 501 typedef std::vector< Int > IntAry1d; 499 502 typedef std::vector< IntAry1d > IntAry2d; … … 1003 1006 }; 1004 1007 #endif 1005 #if NH_3D 1008 #if NH_3D_VSO 1006 1009 // Renderer 1007 1010 enum BlenMod -
branches/HTM-15.2-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1356 r1373 1771 1771 xG813DecProcForInterLayerRefPicSet(); 1772 1772 } 1773 else 1774 { 1775 #if NH_MV_FIX_INIT_NUM_ACTIVE_REF_LAYER_PICS 1776 TComDecodedRps* decRps = m_pcPic->getDecodedRps(); 1777 decRps->m_numActiveRefLayerPics0 = 0; 1778 decRps->m_numActiveRefLayerPics1 = 0; 1779 #endif 1780 } 1773 1781 } 1774 1782 } -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCfg.h
r1360 r1373 46 46 #include "TLibCommon/TComSlice.h" 47 47 #include <assert.h> 48 #if NH_3D 48 #if NH_3D_VSO 49 49 #include "TAppCommon/TAppComCamPara.h" 50 50 #include "TLibRenderer/TRenModSetupStrParser.h" … … 469 469 #endif 470 470 471 #if NH_3D 471 #if NH_3D_VSO 472 472 Bool m_isDepth; 473 Bool m_isAuxDepth; 473 474 474 475 //====== Camera Parameters ====== 475 476 TAppComCamPara* m_cameraParameters; 476 477 477 #if NH_3D_VSO478 478 //====== View Synthesis Optimization ====== 479 479 TRenModSetupStrParser* m_renderModelParameters; … … 492 492 Double m_dDispCoeff; 493 493 #endif 494 #if NH_3D 494 495 495 496 Bool m_bUseIC; … … 498 499 Bool m_useSDC; 499 500 Bool m_useDLT; 501 #endif 502 #if NH_3D_QTL 500 503 Bool m_bUseQTL; 504 #endif 505 #if NH_3D 501 506 Int m_profileIdc; 502 503 507 #endif 504 508 public: … … 511 515 , m_viewId(-1) 512 516 , m_viewIndex(-1) 517 #if NH_3D_VSO 518 , m_isDepth(false) 519 , m_isAuxDepth(false) 520 , m_bUseVSO(false) 521 #endif 513 522 #if NH_3D 514 , m_isDepth(false)515 #if NH_3D_VSO516 , m_bUseVSO(false)517 #endif518 523 , m_profileIdc( -1 ) 519 524 #endif … … 561 566 Void setViewIndex ( Int viewIndex ) { m_viewIndex = viewIndex; } 562 567 Int getViewIndex () { return m_viewIndex; } 563 #if NH_3D 568 #if NH_3D_VSO 564 569 Void setIsDepth ( Bool isDepth ) { m_isDepth = isDepth; } 565 570 Bool getIsDepth () { return m_isDepth; } 571 Void setIsAuxDepth ( Bool isAuxDepth ) { m_isAuxDepth = isAuxDepth; } 572 Bool getIsAuxDepth () { return m_isAuxDepth; } 573 574 566 575 #endif 567 576 #endif … … 1188 1197 UInt getSummaryVerboseness( ) const { return m_summaryVerboseness; } 1189 1198 1190 #if NH_3D 1199 #if NH_3D_VSO 1191 1200 // Only flags that are not in the SPS3dExtension should go here. 1192 1201 /// 3D Tools … … 1194 1203 //==== CAMERA PARAMETERS ========== 1195 1204 Void setCameraParameters ( TAppComCamPara* c) { m_cameraParameters = c; } 1196 1197 #if NH_3D_VSO1198 1205 //==== VSO ========== 1199 1206 Void setRenderModelParameters ( TRenModSetupStrParser* c ) { m_renderModelParameters = c; } … … 1225 1232 Void setDispCoeff ( Double d ) { m_dDispCoeff = d; } 1226 1233 #endif // NH_3D_VSO 1227 1234 #if NH_3D 1228 1235 Bool getUseDMM () { return m_useDMM; } 1229 1236 Void setUseDMM ( Bool b) { m_useDMM = b; } … … 1233 1240 Bool getUseDLT () { return m_useDLT; } 1234 1241 Void setUseDLT ( Bool b) { m_useDLT = b; } 1235 1242 #endif 1243 1244 #if NH_3D_QTL 1236 1245 Void setUseQTL ( Bool b ) { m_bUseQTL = b; } 1237 1246 Bool getUseQTL () { return m_bUseQTL; } 1247 #endif 1248 #if NH_3D 1238 1249 1239 1250 Void setProfileIdc( Int a ) { assert( a == 1 || a == 6 || a == 8 ); m_profileIdc = a; } -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncCu.cpp
r1360 r1373 420 420 const UInt fastDeltaQPCuMaxSize = Clip3(sps.getMaxCUHeight()>>sps.getLog2DiffMaxMinCodingBlockSize(), sps.getMaxCUHeight(), 32u); 421 421 422 422 #if NH_3D_QTL 423 423 #if NH_3D_QTLPC 424 424 Bool bLimQtPredFalg = pcPic->getSlice(0)->getQtPredFlag(); 425 #else 426 Bool bLimQtPredFalg = false; 427 #endif 425 428 TComPic *pcTexture = rpcBestCU->getSlice()->getTexturePic(); 426 429 … … 437 440 m_ppcOrigYuv[uiDepth]->copyFromPicYuv( pcPic->getPicYuvOrg(), rpcBestCU->getCtuRsAddr(), rpcBestCU->getZorderIdxInCtu() ); 438 441 439 #if NH_3D_QTL PC442 #if NH_3D_QTL 440 443 Bool bTrySplit = true; 441 444 Bool bTrySplitDQP = true; … … 534 537 } 535 538 536 #if NH_3D_QTL PC539 #if NH_3D_QTL 537 540 bTrySplit = true; 538 541 #endif … … 552 555 553 556 rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode ); 554 #if NH_3D_QTL PC557 #if NH_3D_QTL 555 558 //logic for setting bTrySplit using the partition information that is stored of the texture colocated CU 556 559 #if H_3D_FCO … … 734 737 #endif 735 738 } 736 #if NH_3D_QTL PC739 #if NH_3D_QTL 737 740 if(depthMapDetect && !bIntraSliceDetect && !rapPic && ( m_pcEncCfg->getUseQTL() || bLimQtPredFalg )) 738 741 { … … 789 792 { 790 793 if( uiDepth == sps.getLog2DiffMaxMinCodingBlockSize() && doNotBlockPu 791 #if NH_3D_QTL PC794 #if NH_3D_QTL 792 795 && bTrySplit 793 796 #endif … … 809 812 810 813 if(doNotBlockPu 811 #if NH_3D_QTL PC814 #if NH_3D_QTL 812 815 && bTryNx2N 813 816 #endif … … 830 833 } 831 834 if(doNotBlockPu 832 #if NH_3D_QTL PC835 #if NH_3D_QTL 833 836 && bTry2NxN 834 837 #endif … … 871 874 { 872 875 if(doNotBlockPu 873 #if NH_3D_QTL PC876 #if NH_3D_QTL 874 877 && bTry2NxN 875 878 #endif … … 891 894 } 892 895 if(doNotBlockPu 893 #if NH_3D_QTL PC896 #if NH_3D_QTL 894 897 && bTry2NxN 895 898 #endif … … 917 920 { 918 921 if(doNotBlockPu 919 #if NH_3D_QTL PC922 #if NH_3D_QTL 920 923 && bTry2NxN 921 924 #endif … … 939 942 } 940 943 if(doNotBlockPu 941 #if NH_3D_QTL PC944 #if NH_3D_QTL 942 945 && bTry2NxN 943 946 #endif … … 966 969 { 967 970 if(doNotBlockPu 968 #if NH_3D_QTL PC971 #if NH_3D_QTL 969 972 && bTryNx2N 970 973 #endif … … 987 990 } 988 991 if(doNotBlockPu 989 #if NH_3D_QTL PC992 #if NH_3D_QTL 990 993 && bTryNx2N 991 994 #endif … … 1007 1010 { 1008 1011 if(doNotBlockPu 1009 #if NH_3D_QTL PC1012 #if NH_3D_QTL 1010 1013 && bTryNx2N 1011 1014 #endif … … 1027 1030 } 1028 1031 if(doNotBlockPu 1029 #if NH_3D_QTL PC1032 #if NH_3D_QTL 1030 1033 && bTryNx2N 1031 1034 #endif … … 1048 1051 1049 1052 #else 1050 #if NH_3D_QTL PC1053 #if NH_3D_QTL 1051 1054 if (bTry2NxN) 1052 1055 { … … 1063 1066 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 1064 1067 #endif 1065 #if NH_3D_QTL PC1068 #if NH_3D_QTL 1066 1069 } 1067 1070 if (bTryNx2N) … … 1078 1081 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 1079 1082 #endif 1080 #if NH_3D_QTL PC1083 #if NH_3D_QTL 1081 1084 } 1082 1085 #endif … … 1134 1137 if( uiDepth == sps.getLog2DiffMaxMinCodingBlockSize() ) 1135 1138 { 1136 #if NH_3D_QTL PC//Try IntraNxN1139 #if NH_3D_QTL //Try IntraNxN 1137 1140 if(bTrySplit) 1138 1141 { … … 1150 1153 rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode ); 1151 1154 } 1152 #if NH_3D_QTL PC1155 #if NH_3D_QTL 1153 1156 } 1154 1157 #endif … … 1252 1255 const Bool bSubBranch = bBoundary || !( m_pcEncCfg->getUseEarlyCU() && rpcBestCU->getTotalCost()!=MAX_DOUBLE && rpcBestCU->isSkipped(0) ); 1253 1256 #endif 1254 #if NH_3D_QTL PC1257 #if NH_3D_QTL 1255 1258 if( bSubBranch && uiDepth < sps.getLog2DiffMaxMinCodingBlockSize() && (!getFastDeltaQp() || uiWidth > fastDeltaQPCuMaxSize || bBoundary) && bTrySplitDQP ) 1256 1259 #else -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1368 r1373 1434 1434 Int numDirectRefLayers = vps ->getNumDirectRefLayers( getLayerId() ); 1435 1435 #endif 1436 #if NH_3D_QTL 1437 pcSlice->setIvPicLists( m_ivPicLists ); 1438 #endif 1436 1439 #if NH_3D 1437 pcSlice->setIvPicLists( m_ivPicLists ); 1440 1438 1441 1439 1442 Int gopNum = (pcSlice->getRapPicFlag() && getLayerId() > 0) ? MAX_GOP : iGOPid; … … 1654 1657 pcRdCost->setVideoRecPicYuv( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), false, pcSlice->getPOC(), flagRec ) ); 1655 1658 pcRdCost->setDepthPicYuv ( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), true, pcSlice->getPOC(), false ) ); 1656 #else 1657 pcRdCost->setVideoRecPicYuv( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), false , pcSlice->getPOC(), true ) ); 1658 pcRdCost->setDepthPicYuv ( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), true , pcSlice->getPOC(), false ) ); 1659 #endif 1660 1659 #else 1660 Int curAuxId = pcSlice->getVPS()->getAuxId( getLayerId() ); 1661 Int curDepthFlag = pcSlice->getIsDepth(); 1662 assert( curAuxId == 2 || curDepthFlag ); 1663 pcRdCost->setVideoRecPicYuv( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), false , 0 , pcSlice->getPOC(), true ) ); 1664 pcRdCost->setDepthPicYuv ( m_pcEncTop->getIvPicLists()->getPicYuv( pcSlice->getViewIndex(), curDepthFlag, curAuxId, pcSlice->getPOC(), false ) ); 1665 #endif 1661 1666 // LGE_WVSO_A0119 1662 1667 Bool bUseWVSO = m_pcEncTop->getUseWVSO(); -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1368 r1373 461 461 462 462 #if NH_3D_VSO 463 m_pcRdCost->setUseLambdaScaleVSO ( (m_pcCfg->getUseVSO() || m_pcCfg->getForceLambdaScaleVSO()) && m_pcCfg->getIsDepth() );463 m_pcRdCost->setUseLambdaScaleVSO ( (m_pcCfg->getUseVSO() || m_pcCfg->getForceLambdaScaleVSO()) && ( m_pcCfg->getIsDepth() | m_pcCfg->getIsAuxDepth() ) ); 464 464 m_pcRdCost->setLambdaVSO ( dLambda * m_pcCfg->getLambdaScaleVSO() ); 465 465 … … 470 470 471 471 // LGE_WVSO_A0119 472 if( m_pcCfg->getUseWVSO() && m_pcCfg->getIsDepth() )472 if( m_pcCfg->getUseWVSO() && ( m_pcCfg->getIsDepth() || m_pcCfg->getIsAuxDepth() ) ) 473 473 { 474 474 m_pcRdCost->setDWeight ( m_pcCfg->getDWeight() ); … … 713 713 714 714 // compute RD cost and choose the best 715 #if NH_3D 715 #if NH_3D_VSO 716 716 Double dPicRdCost = m_pcRdCost->calcRdCost( (Double)m_uiPicTotalBits, uiPicDist, DF_SSE_FRAME); 717 717 #else … … 899 899 iLastPosY = iCurPosY; 900 900 TEncTop* pcEncTop = (TEncTop*) m_pcCfg; // Fix this later. 901 pcEncTop->setupRenModel( pcSlice->getPOC() , pcSlice->getViewIndex(), pcSlice->getIsDepth() ? 1 : 0, iCurPosY, pcSlice->getSPS()->getMaxCUHeight() );901 pcEncTop->setupRenModel( pcSlice->getPOC() , pcSlice->getViewIndex(), pcSlice->getIsDepth() || pcSlice->getVPS()->getAuxId( pcSlice->getLayerId() ) ? 1 : 0, iCurPosY, pcSlice->getSPS()->getMaxCUHeight() ); 902 902 } 903 903 } -
branches/HTM-15.2-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1360 r1373 1565 1565 Int iBaseViewIdx = m_cameraParameters->getBaseSortedId2Id()[ iBaseViewSIdx ]; 1566 1566 1567 TComPicYuv* pcPicYuvVideoRec = m_ivPicLists->getPicYuv( iBaseViewIdx, false, iPoc, true ); 1568 TComPicYuv* pcPicYuvDepthRec = m_ivPicLists->getPicYuv( iBaseViewIdx, true , iPoc, true ); 1569 TComPicYuv* pcPicYuvVideoOrg = m_ivPicLists->getPicYuv( iBaseViewIdx, false, iPoc, false ); 1570 TComPicYuv* pcPicYuvDepthOrg = m_ivPicLists->getPicYuv( iBaseViewIdx, true , iPoc, false ); 1567 Int auxId = getVPS()->getAuxId ( getLayerId() ); 1568 Bool depthFlag = ( getVPS()->getDepthId( getLayerId() ) == 1 ); 1569 1570 if( auxId == 0 && !depthFlag ) 1571 { 1572 // Defaults for texture layers 1573 #if NH_3D 1574 depthFlag = true; 1575 auxId = 0; 1576 #else 1577 depthFlag = false; 1578 auxId = 2; 1579 #endif 1580 } 1581 1582 TComPicYuv* pcPicYuvVideoRec = m_ivPicLists->getPicYuv( iBaseViewIdx, false , 0 , iPoc, true ); 1583 TComPicYuv* pcPicYuvDepthRec = m_ivPicLists->getPicYuv( iBaseViewIdx, depthFlag, auxId, iPoc, true ); 1584 TComPicYuv* pcPicYuvVideoOrg = m_ivPicLists->getPicYuv( iBaseViewIdx, false, 0 , iPoc, false ); 1585 TComPicYuv* pcPicYuvDepthOrg = m_ivPicLists->getPicYuv( iBaseViewIdx, depthFlag, auxId, iPoc, false ); 1571 1586 1572 1587 TComPicYuv* pcPicYuvVideoRef = ( iVideoDistMode == 2 ) ? pcPicYuvVideoOrg : NULL; … … 1633 1648 if ( iOrgRefBaseViewSIdx != -1 ) 1634 1649 { 1635 pcPicYuvOrgRef = m_ivPicLists->getPicYuv( m_cameraParameters->getBaseSortedId2Id()[ iOrgRefBaseViewSIdx ] , false, iPoc, false );1650 pcPicYuvOrgRef = m_ivPicLists->getPicYuv( m_cameraParameters->getBaseSortedId2Id()[ iOrgRefBaseViewSIdx ] , false, 0, iPoc, false ); 1636 1651 AOF ( pcPicYuvOrgRef ); 1637 1652 } -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenFilter.cpp
r1313 r1373 36 36 #include "TRenFilter.h" 37 37 #include "TRenInterpFilter.h" 38 #if NH_3D 38 #if NH_3D_VSO 39 39 40 40 ///// COMMON ///// -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenFilter.h
r1313 r1373 39 39 #include "TRenImage.h" 40 40 #include "TRenInterpFilter.h" 41 #if NH_3D 41 #if NH_3D_VSO 42 42 43 43 typedef Int (TRenInterpFilter<REN_BIT_DEPTH>::*FpChromaIntFilt) ( Pel*, Int ); -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenImage.cpp
r1313 r1373 37 37 #include "TRenFilter.h" 38 38 #include "assert.h" 39 #if NH_3D 39 #if NH_3D_VSO 40 40 41 41 -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenImage.h
r1313 r1373 39 39 #include "../TLibCommon/TComPicYuv.h" 40 40 #include "TRenImagePlane.h" 41 #if NH_3D 41 #if NH_3D_VSO 42 42 43 43 -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenImagePlane.cpp
r1313 r1373 36 36 #include "TRenFilter.h" 37 37 #include <string.h> 38 #if NH_3D 38 #if NH_3D_VSO 39 39 40 40 /////// TRenImagePlane /////// -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenImagePlane.h
r1313 r1373 39 39 #include "../TLibCommon/TComPicYuv.h" 40 40 41 #if NH_3D 41 #if NH_3D_VSO 42 42 #define PelImagePlane TRenImagePlane<Pel> 43 43 #define DoubleImagePlane TRenImagePlane<Double> -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenInterpFilter.cpp
r1313 r1373 39 39 40 40 #include "TRenInterpFilter.h" 41 #if NH_3D 41 #if NH_3D_VSO 42 42 43 43 // ==================================================================================================================== -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenInterpFilter.h
r1313 r1373 44 44 #include "TLibCommon/CommonDef.h" 45 45 #include "assert.h" 46 #if NH_3D 46 #if NH_3D_VSO 47 47 48 48 // ==================================================================================================================== -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenModSetupStrParser.cpp
r1360 r1373 37 37 #include "TRenModSetupStrParser.h" 38 38 39 #if NH_3D 39 #if NH_3D_VSO 40 40 Int 41 41 TRenModSetupStrParser::getNumOfModels() -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenModSetupStrParser.h
r1360 r1373 39 39 #include "../TLibCommon/TypeDef.h" 40 40 #include "../TAppCommon/TAppComCamPara.h" 41 #if NH_3D 41 #if NH_3D_VSO 42 42 43 43 -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenTop.cpp
r1313 r1373 40 40 #include <math.h> 41 41 #include "../TLibCommon/CommonDef.h" 42 #if NH_3D 42 #if NH_3D_VSO 43 43 44 44 -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenTop.h
r1313 r1373 39 39 #include "../TLibCommon/TComPicYuv.h" 40 40 41 #if NH_3D 41 #if NH_3D_VSO 42 42 #include <list> 43 43 #include <vector>
Note: See TracChangeset for help on using the changeset viewer.