Changeset 296 in 3DVCSoftware for trunk/source/App/TAppEncoder/TAppEncTop.cpp
- Timestamp:
- 20 Feb 2013, 22:07:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/TAppEncoder/TAppEncTop.cpp
r210 r296 97 97 m_acTEncTopList[iViewIdx]->setSourceWidth ( m_iSourceWidth ); 98 98 m_acTEncTopList[iViewIdx]->setSourceHeight ( m_iSourceHeight ); 99 #if PIC_CROPPING100 99 m_acTEncTopList[iViewIdx]->setCroppingMode ( m_croppingMode ); 101 100 m_acTEncTopList[iViewIdx]->setCropLeft ( m_cropLeft ); … … 103 102 m_acTEncTopList[iViewIdx]->setCropTop ( m_cropTop ); 104 103 m_acTEncTopList[iViewIdx]->setCropBottom ( m_cropBottom ); 105 #endif106 104 m_acTEncTopList[iViewIdx]->setFrameToBeEncoded ( m_iFrameToBeEncoded ); 107 105 m_acTEncTopList[iViewIdx]->setViewId ( iViewIdx ); … … 121 119 m_cVPS.setDependentFlag ( iViewIdx ? true:false, layerId ); 122 120 m_cVPS.setDependentLayer ( layerId - (m_bUsingDepthMaps ? 2:1), layerId ); 121 #if INTER_VIEW_VECTOR_SCALING_C0115 122 m_cVPS.setIVScalingFlag ( m_bUseIVS ); 123 #endif 123 124 #endif 124 125 … … 135 136 m_acTEncTopList[iViewIdx]->setGopList ( m_GOPListsMvc[iViewIdx] ); 136 137 m_acTEncTopList[iViewIdx]->setExtraRPSs ( m_extraRPSs[iViewIdx] ); 137 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER138 138 for(Int i = 0; i < MAX_TLAYER; i++) 139 139 { … … 141 141 m_acTEncTopList[iViewIdx]->setMaxDecPicBuffering ( m_maxDecPicBuffering[iViewIdx][i], i ); 142 142 } 143 #else144 m_acTEncTopList[iViewIdx]->setNumReorderFrames ( m_numReorderFrames );145 m_acTEncTopList[iViewIdx]->setMaxNumberOfReferencePictures ( m_maxNumberOfReferencePictures );146 #endif147 143 for( UInt uiLoop = 0; uiLoop < MAX_TLAYER; ++uiLoop ) 148 144 { … … 154 150 m_acTEncTopList[iViewIdx]->setPad ( m_aiPad ); 155 151 156 #if H0566_TLA157 152 m_acTEncTopList[iViewIdx]->setMaxTempLayer ( m_maxTempLayer[iViewIdx] ); 158 #else159 m_acTEncTopList[iViewIdx]->setTLayering ( m_bTLayering );160 m_acTEncTopList[iViewIdx]->setTLayerSwitchingFlag ( m_abTLayerSwitchingFlag );161 #endif162 153 163 154 m_acTEncTopList[iViewIdx]->setDisInter4x4 ( m_bDisInter4x4); … … 173 164 m_acTEncTopList[iViewIdx]->setLoopFilterBetaOffset ( m_loopFilterBetaOffsetDiv2 ); 174 165 m_acTEncTopList[iViewIdx]->setLoopFilterTcOffset ( m_loopFilterTcOffsetDiv2 ); 175 #if DBL_CONTROL176 166 m_acTEncTopList[iViewIdx]->setDeblockingFilterControlPresent( m_DeblockingFilterControlPresent); 177 #endif178 167 179 168 //====== Motion search ======== … … 198 187 #if LOSSLESS_CODING 199 188 Int lowestQP; 200 #if H0736_AVC_STYLE_QP_RANGE201 189 lowestQP = - ( (Int)(6*(g_uiBitDepth + g_uiBitIncrement - 8)) ); 202 #else203 lowestQP = 0;204 #endif205 190 if ((m_iMaxDeltaQP == 0 ) && (m_aiQP[0] == lowestQP) && (m_useLossless == true)) 206 191 { … … 232 217 m_acTEncTopList[iViewIdx]->setPdmOffset ( m_cCameraData.getPdmOffset () ); 233 218 #endif 234 #if H HI_INTER_VIEW_MOTION_PRED219 #if H3D_IVMP 235 220 m_acTEncTopList[iViewIdx]->setMultiviewMvPredMode ( m_uiMultiviewMvPredMode ); 236 221 m_acTEncTopList[iViewIdx]->setMultiviewMvRegMode ( iViewIdx ? m_uiMultiviewMvRegMode : 0 ); 237 222 m_acTEncTopList[iViewIdx]->setMultiviewMvRegLambdaScale ( iViewIdx ? m_dMultiviewMvRegLambdaScale : 0.0 ); 238 223 #endif 239 #if H HI_INTER_VIEW_RESIDUAL_PRED224 #if H3D_IVRP 240 225 m_acTEncTopList[iViewIdx]->setMultiviewResPredMode ( m_uiMultiviewResPredMode ); 241 226 #endif … … 257 242 m_acTEncTopList[iViewIdx]->setdQPs ( m_aidQP ); 258 243 m_acTEncTopList[iViewIdx]->setUseRDOQ ( m_abUseRDOQ[0] ); 259 #if !PIC_CROPPING260 m_acTEncTopList[iViewIdx]->setUsePAD ( m_bUsePAD );261 #endif262 244 m_acTEncTopList[iViewIdx]->setQuadtreeTULog2MaxSize ( m_uiQuadtreeTULog2MaxSize ); 263 245 m_acTEncTopList[iViewIdx]->setQuadtreeTULog2MinSize ( m_uiQuadtreeTULog2MinSize ); … … 266 248 m_acTEncTopList[iViewIdx]->setUseFastEnc ( m_bUseFastEnc ); 267 249 m_acTEncTopList[iViewIdx]->setUseEarlyCU ( m_bUseEarlyCU ); 268 #if FAST_DECISION_FOR_MRG_RD_COST269 250 m_acTEncTopList[iViewIdx]->setUseFastDecisionForMerge ( m_useFastDecisionForMerge ); 270 #endif271 251 m_acTEncTopList[iViewIdx]->setUseCbfFastMode ( m_bUseCbfFastMode ); 272 252 #if HHI_INTERVIEW_SKIP … … 301 281 m_acTEncTopList[iViewIdx]->setSliceArgument ( m_iSliceArgument * ( iNumPartInCU >> ( m_iSliceGranularity << 1 ) ) ); 302 282 } 303 #if FIXED_NUMBER_OF_TILES_SLICE_MODE304 283 if(m_iSliceMode==AD_HOC_SLICES_FIXED_NUMBER_OF_TILES_IN_SLICE) 305 284 { 306 285 m_acTEncTopList[iViewIdx]->setSliceArgument ( m_iSliceArgument ); 307 286 } 308 #endif309 287 m_acTEncTopList[iViewIdx]->setSliceGranularity ( m_iSliceGranularity ); 310 288 if(m_iSliceMode == 0 ) … … 315 293 m_acTEncTopList[iViewIdx]->setUseSAO ( m_abUseSAO[0] ); 316 294 #if LGE_ILLUCOMP_B0045 295 #if LGE_ILLUCOMP_DEPTH_C0046 296 m_acTEncTopList[iViewIdx]->setUseIC ( m_abUseIC[0] ); 297 #else 317 298 m_acTEncTopList[iViewIdx]->setUseIC ( m_bUseIC ); 318 299 #endif 319 #if SAO_UNIT_INTERLEAVING 300 #endif 301 #if INTER_VIEW_VECTOR_SCALING_C0115 302 m_acTEncTopList[iViewIdx]->setUseIVS ( m_bUseIVS ); 303 #endif 320 304 m_acTEncTopList[iViewIdx]->setMaxNumOffsetsPerPic (m_maxNumOffsetsPerPic); 321 305 m_acTEncTopList[iViewIdx]->setSaoInterleavingFlag (m_saoInterleavingFlag); 322 #endif323 306 m_acTEncTopList[iViewIdx]->setPCMInputBitDepthFlag ( m_bPCMInputBitDepthFlag); 324 307 m_acTEncTopList[iViewIdx]->setPCMFilterDisableFlag ( m_bPCMFilterDisableFlag); … … 328 311 m_acTEncTopList[iViewIdx]->setColumnRowInfoPresent ( m_iColumnRowInfoPresent ); 329 312 m_acTEncTopList[iViewIdx]->setUniformSpacingIdr ( m_iUniformSpacingIdr ); 330 #if !REMOVE_TILE_DEPENDENCE331 m_acTEncTopList[iViewIdx]->setTileBoundaryIndependenceIdr( m_iTileBoundaryIndependenceIdr );332 #endif333 313 m_acTEncTopList[iViewIdx]->setNumColumnsMinus1 ( m_iNumColumnsMinus1 ); 334 314 m_acTEncTopList[iViewIdx]->setNumRowsMinus1 ( m_iNumRowsMinus1 ); … … 347 327 m_acTEncTopList[iViewIdx]->setMaxTileMarkerOffset ( m_dMaxTileMarkerOffset ); 348 328 m_acTEncTopList[iViewIdx]->setTileBehaviorControlPresentFlag( m_iTileBehaviorControlPresentFlag ); 349 #if !REMOVE_TILE_DEPENDENCE350 if(m_iTileBoundaryIndependenceIdr == 0 || uiTilesCount == 1)351 #else352 329 if(uiTilesCount == 1) 353 #endif354 330 { 355 331 m_bLFCrossTileBoundaryFlag = true; … … 366 342 m_acTEncTopList[iViewIdx]->setUseScalingListId ( m_useScalingListId ); 367 343 m_acTEncTopList[iViewIdx]->setScalingListFile ( m_scalingListFile ); 368 #if MULTIBITS_DATA_HIDING369 344 m_acTEncTopList[iViewIdx]->setSignHideFlag(m_signHideFlag); 370 345 m_acTEncTopList[iViewIdx]->setTSIG(m_signHidingThreshold); 371 #endif 372 373 #if LCU_SYNTAX_ALF 346 374 347 if(uiTilesCount > 1) 375 348 { … … 379 352 m_acTEncTopList[iViewIdx]->setALFParamInSlice ( m_bALFParamInSlice); 380 353 m_acTEncTopList[iViewIdx]->setALFPicBasedEncode ( m_bALFPicBasedEncode); 381 #endif382 354 383 355 //====== Depth tools ======== … … 435 407 m_acTEncDepthTopList[iViewIdx]->setSourceWidth ( m_iSourceWidth ); 436 408 m_acTEncDepthTopList[iViewIdx]->setSourceHeight ( m_iSourceHeight ); 437 #if PIC_CROPPING438 409 m_acTEncDepthTopList[iViewIdx]->setCroppingMode ( m_croppingMode ); 439 410 m_acTEncDepthTopList[iViewIdx]->setCropLeft ( m_cropLeft ); … … 441 412 m_acTEncDepthTopList[iViewIdx]->setCropTop ( m_cropTop ); 442 413 m_acTEncDepthTopList[iViewIdx]->setCropBottom ( m_cropBottom ); 443 #endif444 414 m_acTEncDepthTopList[iViewIdx]->setFrameToBeEncoded ( m_iFrameToBeEncoded ); 445 415 m_acTEncDepthTopList[iViewIdx]->setViewId ( iViewIdx ); … … 470 440 m_acTEncDepthTopList[iViewIdx]->setGopList ( m_GOPListsMvc[iViewIdx] ); 471 441 m_acTEncDepthTopList[iViewIdx]->setExtraRPSs ( m_extraRPSs[iViewIdx] ); 472 #if H0567_DPB_PARAMETERS_PER_TEMPORAL_LAYER473 442 for(Int i = 0; i < MAX_TLAYER; i++) 474 443 { … … 476 445 m_acTEncDepthTopList[iViewIdx]->setMaxDecPicBuffering ( m_maxDecPicBuffering[iViewIdx][i], i ); 477 446 } 478 #else479 m_acTEncDepthTopList[iViewIdx]->setNumReorderFrames ( m_numReorderFrames );480 m_acTEncDepthTopList[iViewIdx]->setMaxNumberOfReferencePictures ( m_maxNumberOfReferencePictures );481 #endif482 447 for( UInt uiLoop = 0; uiLoop < MAX_TLAYER; ++uiLoop ) 483 448 { … … 489 454 m_acTEncDepthTopList[iViewIdx]->setPad ( m_aiPad ); 490 455 491 #if H0566_TLA492 456 m_acTEncDepthTopList[iViewIdx]->setMaxTempLayer ( m_maxTempLayer[iViewIdx] ); 493 #else494 m_acTEncDepthTopList[iViewIdx]->setTLayering ( m_bTLayering );495 m_acTEncDepthTopList[iViewIdx]->setTLayerSwitchingFlag ( m_abTLayerSwitchingFlag );496 #endif497 457 498 458 m_acTEncDepthTopList[iViewIdx]->setDisInter4x4 ( m_bDisInter4x4); … … 508 468 m_acTEncDepthTopList[iViewIdx]->setLoopFilterBetaOffset ( m_loopFilterBetaOffsetDiv2 ); 509 469 m_acTEncDepthTopList[iViewIdx]->setLoopFilterTcOffset ( m_loopFilterTcOffsetDiv2 ); 510 #if DBL_CONTROL511 470 m_acTEncDepthTopList[iViewIdx]->setDeblockingFilterControlPresent( m_DeblockingFilterControlPresent); 512 #endif513 471 514 472 //====== Motion search ======== … … 550 508 m_acTEncDepthTopList[iViewIdx]->setdQPs ( m_aidQPdepth ); 551 509 m_acTEncDepthTopList[iViewIdx]->setUseRDOQ ( m_abUseRDOQ[1] ); 552 #if !PIC_CROPPING553 m_acTEncDepthTopList[iViewIdx]->setUsePAD ( m_bUsePAD );554 #endif555 510 m_acTEncDepthTopList[iViewIdx]->setQuadtreeTULog2MaxSize ( m_uiQuadtreeTULog2MaxSize ); 556 511 m_acTEncDepthTopList[iViewIdx]->setQuadtreeTULog2MinSize ( m_uiQuadtreeTULog2MinSize ); … … 559 514 m_acTEncDepthTopList[iViewIdx]->setUseFastEnc ( m_bUseFastEnc ); 560 515 m_acTEncDepthTopList[iViewIdx]->setUseEarlyCU ( m_bUseEarlyCU ); 561 #if FAST_DECISION_FOR_MRG_RD_COST562 516 m_acTEncDepthTopList[iViewIdx]->setUseFastDecisionForMerge ( m_useFastDecisionForMerge ); 563 #endif564 517 m_acTEncDepthTopList[iViewIdx]->setUseCbfFastMode ( m_bUseCbfFastMode ); 565 518 #if HHI_INTERVIEW_SKIP … … 595 548 m_acTEncDepthTopList[iViewIdx]->setPredDepthMapGeneration ( 0 ); 596 549 #endif 597 #if H HI_INTER_VIEW_MOTION_PRED550 #if H3D_IVMP 598 551 m_acTEncDepthTopList[iViewIdx]->setMultiviewMvPredMode ( 0 ); 599 552 m_acTEncDepthTopList[iViewIdx]->setMultiviewMvRegMode ( 0 ); 600 553 m_acTEncDepthTopList[iViewIdx]->setMultiviewMvRegLambdaScale ( 0.0 ); 601 554 #endif 602 #if H HI_INTER_VIEW_RESIDUAL_PRED555 #if H3D_IVRP 603 556 m_acTEncDepthTopList[iViewIdx]->setMultiviewResPredMode ( 0 ); 604 557 #endif … … 623 576 m_acTEncDepthTopList[iViewIdx]->setSliceArgument ( m_iSliceArgument * ( iNumPartInCU >> ( m_iSliceGranularity << 1 ) ) ); 624 577 } 625 #if FIXED_NUMBER_OF_TILES_SLICE_MODE626 578 if(m_iSliceMode==AD_HOC_SLICES_FIXED_NUMBER_OF_TILES_IN_SLICE) 627 579 { 628 580 m_acTEncDepthTopList[iViewIdx]->setSliceArgument ( m_iSliceArgument ); 629 581 } 630 #endif631 582 m_acTEncDepthTopList[iViewIdx]->setSliceGranularity ( m_iSliceGranularity ); 632 583 if(m_iSliceMode == 0 ) … … 639 590 m_acTEncDepthTopList[iViewIdx]->setUseIC ( false ); 640 591 #endif 641 #if SAO_UNIT_INTERLEAVING 592 #if INTER_VIEW_VECTOR_SCALING_C0115 593 m_acTEncDepthTopList[iViewIdx]->setUseIVS ( m_bUseIVS ); 594 #endif 642 595 m_acTEncDepthTopList[iViewIdx]->setMaxNumOffsetsPerPic (m_maxNumOffsetsPerPic); 643 596 m_acTEncDepthTopList[iViewIdx]->setSaoInterleavingFlag (m_saoInterleavingFlag); 644 #endif645 597 m_acTEncDepthTopList[iViewIdx]->setPCMInputBitDepthFlag ( m_bPCMInputBitDepthFlag); 646 598 m_acTEncDepthTopList[iViewIdx]->setPCMFilterDisableFlag ( m_bPCMFilterDisableFlag); … … 650 602 m_acTEncDepthTopList[iViewIdx]->setColumnRowInfoPresent ( m_iColumnRowInfoPresent ); 651 603 m_acTEncDepthTopList[iViewIdx]->setUniformSpacingIdr ( m_iUniformSpacingIdr ); 652 #if !REMOVE_TILE_DEPENDENCE653 m_acTEncDepthTopList[iViewIdx]->setTileBoundaryIndependenceIdr( m_iTileBoundaryIndependenceIdr );654 #endif655 604 m_acTEncDepthTopList[iViewIdx]->setNumColumnsMinus1 ( m_iNumColumnsMinus1 ); 656 605 m_acTEncDepthTopList[iViewIdx]->setNumRowsMinus1 ( m_iNumRowsMinus1 ); … … 669 618 m_acTEncDepthTopList[iViewIdx]->setMaxTileMarkerOffset ( m_dMaxTileMarkerOffset ); 670 619 m_acTEncDepthTopList[iViewIdx]->setTileBehaviorControlPresentFlag( m_iTileBehaviorControlPresentFlag ); 671 #if !REMOVE_TILE_DEPENDENCE672 if(m_iTileBoundaryIndependenceIdr == 0 || uiTilesCount == 1)673 #else674 620 if(uiTilesCount == 1) 675 #endif676 621 { 677 622 m_bLFCrossTileBoundaryFlag = true; … … 688 633 m_acTEncDepthTopList[iViewIdx]->setUseScalingListId ( m_useScalingListId ); 689 634 m_acTEncDepthTopList[iViewIdx]->setScalingListFile ( m_scalingListFile ); 690 #if MULTIBITS_DATA_HIDING691 635 m_acTEncDepthTopList[iViewIdx]->setSignHideFlag(m_signHideFlag); 692 636 m_acTEncDepthTopList[iViewIdx]->setTSIG(m_signHidingThreshold); 693 #endif 694 695 #if LCU_SYNTAX_ALF 637 696 638 if(uiTilesCount > 1) 697 639 { … … 701 643 m_acTEncDepthTopList[iViewIdx]->setALFParamInSlice ( m_bALFParamInSlice); 702 644 m_acTEncDepthTopList[iViewIdx]->setALFPicBasedEncode ( m_bALFPicBasedEncode); 703 #endif704 645 705 646 //====== Depth tools ======== … … 728 669 } 729 670 730 #if H HI_INTER_VIEW_MOTION_PRED671 #if H3D_IVMP 731 672 else if( m_uiMultiviewMvRegMode ) 732 673 { … … 815 756 m_acTEncDepthTopList[iViewIdx]->create(); 816 757 } 817 #if H HI_INTER_VIEW_MOTION_PRED758 #if H3D_IVMP 818 759 else if( m_uiMultiviewMvRegMode ) 819 760 { … … 931 872 TComPicYuv* pcPicYuvRec = NULL; 932 873 TComPicYuv* pcDepthPicYuvRec = NULL; 933 874 934 875 // initialize internal class & member variables 935 876 xInitLibCfg(); … … 962 903 pcDepthPicYuvOrg->create( m_iSourceWidth, m_iSourceHeight, m_uiMaxCUWidth, m_uiMaxCUHeight, m_uiMaxCUDepth ); 963 904 964 #if H HI_INTER_VIEW_MOTION_PRED905 #if H3D_IVMP 965 906 if( m_uiMultiviewMvRegMode ) 966 907 { … … 982 923 m_acTVideoIOYuvInputFileList[iViewIdx]->read( pcPicYuvOrg, m_aiPad ); 983 924 984 #if H HI_INTER_VIEW_MOTION_PRED925 #if H3D_IVMP 985 926 if( m_uiMultiviewMvRegMode && iViewIdx ) 986 927 { … … 989 930 #endif 990 931 991 #if H HI_INTER_VIEW_MOTION_PRED932 #if H3D_IVMP 992 933 m_acTEncTopList[iViewIdx]->initNewPic( pcPicYuvOrg, ( m_uiMultiviewMvRegMode && iViewIdx ? pcPdmDepthOrg : 0 ) ); 993 934 #else … … 1033 974 if ( iNextPoc < m_iFrameToBeEncoded ) 1034 975 { 1035 m_cCameraData.update( iNextPoc );976 m_cCameraData.update( iNextPoc ); 1036 977 } 1037 978 #endif … … 1096 1037 #endif 1097 1038 iNumEncoded = 0; 1039 1040 #if MERL_VSP_C0152 1041 Int iCurPoc = m_acTEncDepthTopList[iViewIdx]->getFrameId(gopId); 1042 if( iCurPoc < m_acTEncDepthTopList[iViewIdx]->getFrameToBeEncoded() && iViewIdx!=0 ) 1043 { 1044 TComPic* pcBaseTxtPic = getPicFromView( 0, m_acTEncDepthTopList[iViewIdx]->getFrameId(gopId), false ); //get base view reconstructed texture 1045 TComPic* pcBaseDepthPic = getPicFromView( 0, m_acTEncDepthTopList[iViewIdx]->getFrameId(gopId), true ); //get base view reconstructed depth 1046 TEncSlice* pEncSlice = m_acTEncTopList[iViewIdx]->getSliceEncoder(); 1047 pEncSlice->setRefPicBaseTxt(pcBaseTxtPic); 1048 pEncSlice->setRefPicBaseDepth(pcBaseDepthPic); 1049 } 1050 setBWVSPLUT( iViewIdx, gopId, false); 1051 #endif 1098 1052 // call encoding function for one frame 1099 1053 m_acTEncTopList[iViewIdx]->encode( eos[iViewIdx], pcPicYuvOrg, *m_picYuvRec[iViewIdx], outputAccessUnits, iNumEncoded, gopId ); … … 1103 1057 { 1104 1058 Int iNumDepthEncoded = 0; 1059 #if MERL_VSP_C0152 1060 Int iCurPocDepth = m_acTEncDepthTopList[iViewIdx]->getFrameId(gopId); 1061 if( iCurPocDepth < m_acTEncDepthTopList[iViewIdx]->getFrameToBeEncoded() && iViewIdx!=0 ) 1062 { 1063 TComPic* pcBaseDepthPic = getPicFromView( 0, m_acTEncDepthTopList[iViewIdx]->getFrameId(gopId), true ); 1064 TEncSlice* pcSlice = (TEncSlice*) m_acTEncDepthTopList[iViewIdx]->getSliceEncoder(); 1065 pcSlice->setRefPicBaseDepth(pcBaseDepthPic); 1066 } 1067 setBWVSPLUT( iViewIdx, gopId, true); 1068 #endif 1069 1105 1070 // call encoding function for one depth frame 1106 1071 m_acTEncDepthTopList[iViewIdx]->encode( depthEos[iViewIdx], pcDepthPicYuvOrg, *m_picYuvDepthRec[iViewIdx], outputAccessUnits, iNumDepthEncoded, gopId ); … … 1114 1079 #endif 1115 1080 1116 #if HHI_INTERVIEW_SKIP || H HI_INTER_VIEW_MOTION_PRED || HHI_INTER_VIEW_RESIDUAL_PRED1081 #if HHI_INTERVIEW_SKIP || H3D_IVMP || H3D_IVRP 1117 1082 for( Int iViewIdx = 0; iViewIdx < m_iNumberOfViews; iViewIdx++ ) 1118 1083 { … … 1147 1112 1148 1113 #if !QC_MVHEVC_B0046 1149 #if FIX_DEL_NULLPTR1150 1114 if ( pcPdmDepthOrg != NULL && m_uiMultiviewMvRegMode ) 1151 #else1152 if ( pcPdmDepthOrg != NULL )1153 #endif1154 1115 { 1155 1116 pcPdmDepthOrg->destroy(); … … 1292 1253 if (m_pchReconFileList[iViewIdx]) 1293 1254 { 1294 #if PIC_CROPPING1295 1255 m_acTVideoIOYuvReconFileList[iViewIdx]->write( pcPicYuvRec, m_cropLeft, m_cropRight, m_cropTop, m_cropBottom ); 1296 #else1297 m_acTVideoIOYuvReconFileList[iViewIdx]->write( pcPicYuvRec, m_aiPad );1298 #endif1299 1256 } 1300 1257 } … … 1303 1260 if (m_pchDepthReconFileList[iViewIdx]) 1304 1261 { 1305 #if PIC_CROPPING1306 1262 m_acTVideoIOYuvDepthReconFileList[iViewIdx]->write( pcPicYuvRec, m_cropLeft, m_cropRight, m_cropTop, m_cropBottom ); 1307 #else1308 m_acTVideoIOYuvDepthReconFileList[iViewIdx]->write( pcPicYuvRec, m_aiPad );1309 #endif1310 1263 } 1311 1264 } … … 1360 1313 { 1361 1314 case NAL_UNIT_CODED_SLICE: 1362 #if H0566_TLA1363 1315 #if !QC_REM_IDV_B0046 1364 1316 case NAL_UNIT_CODED_SLICE_IDV: … … 1366 1318 case NAL_UNIT_CODED_SLICE_TLA: 1367 1319 case NAL_UNIT_CODED_SLICE_CRA: 1368 #else1369 case NAL_UNIT_CODED_SLICE_DATAPART_A:1370 case NAL_UNIT_CODED_SLICE_DATAPART_B:1371 case NAL_UNIT_CODED_SLICE_CDR:1372 #endif1373 1320 case NAL_UNIT_CODED_SLICE_IDR: 1374 1321 case NAL_UNIT_SPS: … … 1634 1581 #endif 1635 1582 1583 #if MERL_VSP_C0152 1584 Void TAppEncTop::setBWVSPLUT(Int iCodedViewIdx, Int gopId, Bool isDepth) 1585 { 1586 //first view does not have VSP 1587 if((iCodedViewIdx == 0)) return; 1588 1589 AOT( iCodedViewIdx <= 0); 1590 AOT( iCodedViewIdx >= m_iNumberOfViews ); 1591 1592 Int iNeighborViewId = 0; 1593 //setting look-up table 1594 Int* piShiftLUT = m_cCameraData.getBaseViewShiftLUTI()[iNeighborViewId][iCodedViewIdx][0]; 1595 1596 if(isDepth) 1597 { 1598 TEncSlice* pcEncSlice = (TEncSlice*) m_acTEncDepthTopList[iCodedViewIdx]->getSliceEncoder(); 1599 pcEncSlice->setBWVSPLUTParam( piShiftLUT, LOG2_DISP_PREC_LUT ); 1600 } 1601 else 1602 { 1603 TEncSlice* pcEncSlice = (TEncSlice*) m_acTEncTopList[iCodedViewIdx]->getSliceEncoder(); 1604 pcEncSlice->setBWVSPLUTParam( piShiftLUT, LOG2_DISP_PREC_LUT ); 1605 } 1606 1607 } 1608 #endif 1609 1636 1610 //! \}
Note: See TracChangeset for help on using the changeset viewer.