Changeset 1133 in 3DVCSoftware for trunk/source/Lib/TLibDecoder
- Timestamp:
- 21 Feb 2015, 22:47:16 (10 years ago)
- Location:
- trunk/source/Lib/TLibDecoder
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1124 r1133 721 721 } 722 722 723 #if HHI_TOOL_PARAMETERS_I2_J0107724 723 Void TDecCavlc::parseSPS(TComSPS* pcSPS) 725 #else726 #if H_3D727 Void TDecCavlc::parseSPS(TComSPS* pcSPS, Int viewIndex, Bool depthFlag )728 #else729 Void TDecCavlc::parseSPS(TComSPS* pcSPS)730 #endif731 #endif732 724 { 733 725 #if ENC_DEC_TRACE … … 997 989 if ( pcSPS->getSps3dExtensionFlag() ) 998 990 { 999 #if HHI_TOOL_PARAMETERS_I2_J01071000 991 parseSPS3dExtension( pcSPS ); 1001 #else1002 parseSPSExtension2( pcSPS, viewIndex, depthFlag );1003 #endif1004 992 } 1005 993 … … 1028 1016 1029 1017 #if H_3D 1030 #if HHI_TOOL_PARAMETERS_I2_J01071031 1018 Void TDecCavlc::parseSPS3dExtension( TComSPS* pcSPS ) 1032 1019 { … … 1057 1044 } 1058 1045 } 1059 #else1060 Void TDecCavlc::parseSPSExtension2( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )1061 {1062 1063 }1064 #endif1065 1046 #endif 1066 1047 … … 1071 1052 READ_FLAG( uiCode, "pps_infer_scaling_list_flag" ); pcPPS->setPpsInferScalingListFlag( uiCode == 1 ); 1072 1053 READ_CODE( 6, uiCode, "pps_scaling_list_ref_layer_id" ); pcPPS->setPpsScalingListRefLayerId( uiCode ); 1073 #if H_MV_HLS_FIX1074 1054 1075 1055 UInt numRefLocOffsets;; … … 1112 1092 // This is required to equal to 0 for Multiview Main profile. 1113 1093 assert( uiCode == 0 ); 1114 #else1115 READ_UVLC( uiCode, "num_ref_loc_offsets" ); assert( uiCode == 0 );1116 #endif1117 1094 } 1118 1095 … … 1237 1214 { 1238 1215 #if H_3D 1239 #if HHI_VPS_3D_EXTENSION_I3_J01071240 1216 READ_FLAG( uiCode, "vps_3d_extension_flag" ); 1241 1217 if ( uiCode ) … … 1248 1224 if (uiCode) 1249 1225 { 1250 #else1251 m_pcBitstream->readOutTrailingBits();1252 pcVPS->createCamPars(pcVPS->getNumViews());1253 parseVPSExtension2( pcVPS );1254 READ_FLAG( uiCode, "vps_extension3_flag" );1255 if (uiCode)1256 {1257 #endif1258 1226 #endif 1259 1227 #endif … … 1330 1298 } 1331 1299 1332 #if H_MV_FIX_NUM_VIEWS1333 1300 pcVPS->initNumViews(); 1334 #endif1335 1301 1336 1302 READ_CODE( 4, uiCode, "view_id_len" ); pcVPS->setViewIdLen( uiCode ); … … 1441 1407 for( Int i = 1; i < pcVPS->getNumOutputLayerSets( ); i++ ) 1442 1408 { 1443 #if H_MV_HLS_FIX1444 1409 if( pcVPS->getNumLayerSets() > 2 && i >= pcVPS->getNumLayerSets( ) ) 1445 #else1446 if( i >= pcVPS->getNumLayerSets( ) )1447 #endif1448 1410 { 1449 1411 READ_CODE( pcVPS->getLayerSetIdxForOlsMinus1Len( i ), uiCode, "layer_set_idx_for_ols_minus1[i]" ); pcVPS->setLayerSetIdxForOlsMinus1( i, uiCode ); … … 1517 1479 READ_FLAG( uiCode, "max_one_active_ref_layer_flag" ); pcVPS->setMaxOneActiveRefLayerFlag ( uiCode == 1 ); 1518 1480 1519 #if H_MV_HLS7_GEN || H_MV_HLS_FIX1520 1481 READ_FLAG( uiCode, "vps_poc_lsb_aligned_flag" ); pcVPS->setVpsPocLsbAlignedFlag( uiCode == 1 ); 1521 #endif1522 1482 for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ ) 1523 1483 { … … 1567 1527 parseVPSVUI( pcVPS ); 1568 1528 } 1569 #if H_MV_HLS_FIX1570 1529 else 1571 #endif1572 1530 { 1573 1531 TComVPSVUI* pcVPSVUI = pcVPS->getVPSVUI( ); … … 1945 1903 1946 1904 #if H_3D 1947 #if HHI_VPS_3D_EXTENSION_I3_J01071948 1905 Void TDecCavlc::parseVPS3dExtension( TComVPS* pcVPS ) 1949 #else1950 Void TDecCavlc::parseVPSExtension2( TComVPS* pcVPS )1951 #endif1952 1906 { 1953 1907 UInt uiCode; 1954 1908 1955 #if !HHI_TOOL_PARAMETERS_I2_J01071956 for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ )1957 {1958 #if H_3D_ARP1959 pcVPS->setUseAdvRP ( i, 0 );1960 pcVPS->setARPStepNum( i, 1 );1961 #endif1962 #if H_3D_SPIVMP1963 pcVPS->setSubPULog2Size(i, 0);1964 #endif1965 {1966 #if H_3D_IV_MERGE1967 READ_FLAG( uiCode, "iv_mv_pred_flag[i]"); pcVPS->setIvMvPredFlag ( i, uiCode == 1 ? true : false );1968 READ_FLAG( uiCode, "iv_mv_scaling_flag[i]"); pcVPS->setIvMvScalingFlag ( i, uiCode == 1 ? true : false );1969 #endif1970 if( !( pcVPS->getDepthId( i ) == 1 ) )1971 {1972 #if H_3D_IV_MERGE1973 if( !pcVPS->getNumDirectRefLayers(i) )1974 {1975 assert( !uiCode );1976 }1977 #if H_3D_SPIVMP1978 READ_UVLC (uiCode, "log2_sub_PU_size_minus3[i]"); pcVPS->setSubPULog2Size(i, uiCode+3);1979 #endif1980 #endif1981 #if H_3D_ARP1982 READ_FLAG( uiCode, "iv_res_pred_flag[i]" ); pcVPS->setUseAdvRP ( i, uiCode ); pcVPS->setARPStepNum( i, uiCode ? H_3D_ARP_WFNR : 1 );1983 if( !pcVPS->getNumDirectRefLayers(i) )1984 {1985 assert( !uiCode );1986 }1987 #endif1988 #if H_3D_NBDV_REF1989 READ_FLAG( uiCode, "depth_refinement_flag[i]"); pcVPS->setDepthRefinementFlag ( i, uiCode == 1 ? true : false );1990 #endif1991 #if H_3D_VSP1992 READ_FLAG( uiCode, "view_synthesis_pred_flag[i]"); pcVPS->setViewSynthesisPredFlag( i, uiCode == 1 ? true : false );1993 if( !pcVPS->getNumDirectRefLayers(i) )1994 {1995 assert( !uiCode );1996 }1997 #endif1998 #if H_3D_DBBP1999 READ_FLAG( uiCode, "use_dbbp_flag[i]" ); pcVPS->setUseDBBP( i, uiCode == 1 ? true : false );2000 #endif2001 }2002 else2003 {2004 #if H_3D_IV_MERGE2005 READ_FLAG( uiCode, "mpi_flag[i]" ); pcVPS->setMPIFlag( i, uiCode == 1 ? true : false );2006 READ_UVLC (uiCode, "log2_mpi_sub_PU_size_minus3[i]"); pcVPS->setSubPUMPILog2Size(i, uiCode+3);2007 #endif2008 READ_FLAG( uiCode, "vps_depth_modes_flag[i]" ); pcVPS->setVpsDepthModesFlag( i, uiCode == 1 ? true : false );2009 #if H_3D2010 READ_FLAG( uiCode, "ivp_flag[i]" ); pcVPS->setIVPFlag( i, uiCode == 1 ? true : false );2011 #endif2012 #if H_3D_QTLPC2013 READ_FLAG( uiCode, "lim_qt_pred_flag[i]"); pcVPS->setLimQtPredFlag ( i, uiCode == 1 ? true : false );2014 #endif2015 #if H_3D_INTER_SDC2016 READ_FLAG( uiCode, "depth_inter_SDC_flag" ); pcVPS->setInterSDCFlag( i, uiCode ? true : false );2017 #endif2018 #if MTK_SINGLE_DEPTH_VPS_FLAG_J00602019 READ_FLAG( uiCode, "single_depth_mode_flag[i]"); pcVPS->setSingleDepthModeFlag( i, uiCode == 1 ? true : false );2020 #endif2021 }2022 }2023 }2024 #endif2025 1909 2026 1910 UInt uiCamParPrecision = 0; … … 2131 2015 #endif 2132 2016 rpcSlice->setSPS(sps); 2133 #if HHI_TOOL_PARAMETERS_I2_J01072134 2017 #if H_3D 2135 2018 rpcSlice->init3dToolParameters(); 2136 #endif2137 2019 #endif 2138 2020 rpcSlice->setPPS(pps); … … 2207 2089 rpcSlice->checkCrossLayerBlaFlag( ); 2208 2090 2209 #if !H_MV_HLS7_GEN && !H_MV_HLS_FIX2210 if ( rpcSlice->getPPS()->getNumExtraSliceHeaderBits() > esb )2211 {2212 esb++;2213 READ_FLAG( uiCode, "poc_reset_flag" ); rpcSlice->setPocResetFlag( uiCode == 1 );2214 }2215 #endif2216 2091 2217 2092 for (; esb < rpcSlice->getPPS()->getNumExtraSliceHeaderBits(); esb++) … … 2492 2367 Bool interLayerPredLayerIdcPresentFlag = false; 2493 2368 Int layerId = rpcSlice->getLayerId(); 2494 #if HHI_DEPENDENCY_SIGNALLING_I1_J01072495 2369 #if H_3D 2496 2370 if( rpcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumRefListLayers( layerId ) > 0 ) … … 2498 2372 if( rpcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 ) 2499 2373 #endif 2500 #else2501 if( rpcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 )2502 #endif2503 2374 { 2504 2375 READ_FLAG( uiCode, "inter_layer_pred_enabled_flag" ); rpcSlice->setInterLayerPredEnabledFlag( uiCode == 1 ); 2505 #if HHI_DEPENDENCY_SIGNALLING_I1_J01072506 2376 #if H_3D 2507 2377 if( rpcSlice->getInterLayerPredEnabledFlag() && vps->getNumRefListLayers( layerId ) > 1 ) … … 2509 2379 if( rpcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 ) 2510 2380 #endif 2511 #else2512 if( rpcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 )2513 #endif2514 2381 { 2515 2382 if( !vps->getMaxOneActiveRefLayerFlag()) … … 2517 2384 READ_CODE( rpcSlice->getNumInterLayerRefPicsMinus1Len( ), uiCode, "num_inter_layer_ref_pics_minus1" ); rpcSlice->setNumInterLayerRefPicsMinus1( uiCode ); 2518 2385 } 2519 #if HHI_DEPENDENCY_SIGNALLING_I1_J01072520 2386 #if H_3D 2521 2387 if ( rpcSlice->getNumActiveRefLayerPics() != vps->getNumRefListLayers( layerId ) ) 2522 #else2523 if ( rpcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) )2524 #endif2525 2388 #else 2526 2389 if ( rpcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) ) … … 2711 2574 } 2712 2575 #if H_3D_IC 2713 #if HHI_DEPENDENCY_SIGNALLING_I1_J01072714 2576 else if( rpcSlice->getViewIndex() && ( rpcSlice->getSliceType() == P_SLICE || rpcSlice->getSliceType() == B_SLICE ) && !rpcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 ) 2715 #else2716 else if( rpcSlice->getViewIndex() && ( rpcSlice->getSliceType() == P_SLICE || rpcSlice->getSliceType() == B_SLICE ) && !rpcSlice->getIsDepth() && vps->getNumDirectRefLayers( layerId ) > 0 )2717 #endif2718 2577 { 2719 2578 UInt uiCodeTmp = 0; … … 2729 2588 } 2730 2589 #endif 2731 #if !MTK_SINGLE_DEPTH_VPS_FLAG_J00602732 #if H_3D_SINGLE_DEPTH2733 if(rpcSlice->getIsDepth())2734 {2735 UInt uiCodeTmp = 0;2736 READ_FLAG( uiCodeTmp, "slice_enable_single_depth_mode" );2737 rpcSlice->setApplySingleDepthMode(uiCodeTmp);2738 }2739 #endif2740 #endif2741 2590 if (!rpcSlice->isIntra()) 2742 2591 { 2743 2592 READ_UVLC( uiCode, "five_minus_max_num_merge_cand"); 2744 2593 #if H_3D_IV_MERGE 2745 #if HHI_TOOL_PARAMETERS_I2_J01072746 #if ALGIN_J0107_J00592747 2594 rpcSlice->setMaxNumMergeCand(( ( rpcSlice->getMpiFlag() || rpcSlice->getIvMvPredFlag() || rpcSlice->getViewSynthesisPredFlag() ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode); 2748 #else2749 rpcSlice->setMaxNumMergeCand(( ( rpcSlice->getMpiFlag() || rpcSlice->getIvMvPredFlag() ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);2750 #endif2751 #else2752 if(rpcSlice->getIsDepth())2753 {2754 Bool bMPIFlag = rpcSlice->getVPS()->getMPIFlag( rpcSlice->getLayerIdInVps() ) ;2755 Bool ivMvPredFlag = rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ;2756 rpcSlice->setMaxNumMergeCand(( ( bMPIFlag || ivMvPredFlag ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);2757 }2758 else2759 {2760 Bool ivMvPredFlag = rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ;2761 #if MTK_MRG_LIST_SIZE_CLEANUP_J00592762 Bool vspFlag = rpcSlice->getVPS()->getViewSynthesisPredFlag( rpcSlice->getLayerIdInVps() ) ;2763 rpcSlice->setMaxNumMergeCand(( ivMvPredFlag || vspFlag? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);2764 #else2765 rpcSlice->setMaxNumMergeCand(( ivMvPredFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);2766 #endif2767 }2768 #endif2769 2595 #else 2770 2596 rpcSlice->setMaxNumMergeCand(MRG_MAX_NUM_CANDS - uiCode); … … 2926 2752 2927 2753 // Derive the value of PocMs8bValRequiredFlag 2928 #if !H_MV_HLS_FIX 2929 rpcSlice->setPocMsbValRequiredFlag( rpcSlice->getCraPicFlag() || rpcSlice->getBlaPicFlag() 2930 /* || TODO related to vps_poc_lsb_aligned_flag */ 2931 ); 2932 #endif 2933 2934 #if H_MV_HLS_FIX 2754 2935 2755 if( !rpcSlice->getPocMsbValRequiredFlag() && rpcSlice->getVPS()->getVpsPocLsbAlignedFlag() ) 2936 #else2937 if( !rpcSlice->getPocMsbValRequiredFlag() /* TODO && rpcSlice->getVPS()->getVpsPocLsbAlignedFlag() */ )2938 #endif2939 2756 { 2940 2757 READ_FLAG( uiCode, "poc_msb_val_present_flag" ); rpcSlice->setPocMsbValPresentFlag( uiCode == 1 ); -
trunk/source/Lib/TLibDecoder/TDecCAVLC.h
r1124 r1133 90 90 #endif 91 91 #if H_3D 92 #if HHI_VPS_3D_EXTENSION_I3_J010793 92 Void parseVPS3dExtension ( TComVPS* pcVPS ); 94 #else95 Void parseVPSExtension2 ( TComVPS* pcVPS );96 #endif97 #if HHI_TOOL_PARAMETERS_I2_J010798 93 Void parseSPS3dExtension ( TComSPS* pcSPS ); 99 94 Void parseSPS ( TComSPS* pcSPS ); 100 #else101 Void parseSPSExtension2 ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );102 Void parseSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );103 #endif104 95 #else 105 96 Void parseSPS ( TComSPS* pcSPS ); -
trunk/source/Lib/TLibDecoder/TDecCu.cpp
r1124 r1133 291 291 DTRACE_CU_S("=========== coding_unit ===========\n") 292 292 #endif 293 #if !LGE_DDD_REMOVAL_J0042_J0030294 #if H_3D_DDD295 pcCU->setUseDDD( false, uiAbsPartIdx, uiDepth );296 #endif297 #endif298 293 299 294 if( (g_uiMaxCUWidth>>uiDepth) >= pcCU->getSlice()->getPPS()->getMinCuDQPSize() && pcCU->getSlice()->getPPS()->getUseDQP()) … … 315 310 { 316 311 #if H_3D_ARP && H_3D_IV_MERGE 317 #if HHI_TOOL_PARAMETERS_I2_J0107318 312 if( pcCU->getSlice()->getIvResPredFlag() || pcCU->getSlice()->getIvMvPredFlag() ) 319 #else320 if( pcCU->getSlice()->getVPS()->getUseAdvRP( pcCU->getSlice()->getLayerId() ) || pcCU->getSlice()->getVPS()->getIvMvPredFlag( pcCU->getSlice()->getLayerId() ))321 #endif322 313 #else 323 314 #if H_3D_ARP … … 349 340 #endif 350 341 #if H_3D_NBDV_REF 351 #if HHI_TOOL_PARAMETERS_I2_J0107352 342 if( pcCU->getSlice()->getDepthBasedBlkPartFlag() ) //Notes from QC: please check the condition for DoNBDV. Remove this comment once it is done. 353 #else354 if(pcCU->getSlice()->getVPS()->getDepthRefinementFlag( pcCU->getSlice()->getLayerIdInVps() )) //Notes from QC: please check the condition for DoNBDV. Remove this comment once it is done.355 #endif356 343 { 357 344 DvInfo.bDV = m_ppcCU[uiDepth]->getDisMvpCandNBDV(&DvInfo, true); … … 460 447 #endif 461 448 pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiAbsPartIdx, 0, uiDepth ); 462 #if !LGE_DDD_REMOVAL_J0042_J0030463 #if H_3D_DDD464 if( uiMergeIndex == m_ppcCU[uiDepth]->getUseDDDCandIdx() )465 {466 assert( pcCU->getSlice()->getViewIndex() != 0 );467 pcCU->setUseDDD( true, uiAbsPartIdx, 0, uiDepth );468 pcCU->setDDDepthSubParts( m_ppcCU[uiDepth]->getDDTmpDepth(),uiAbsPartIdx, 0, uiDepth );469 }470 #endif471 #endif472 449 473 450 TComMv cTmpMv( 0, 0 ); … … 744 721 //construction of depth candidates 745 722 Pel testDepth; 746 #if SINGLE_DEPTH_SIMP_J0115747 723 Pel DepthNeighbours[2]; 748 #else749 Pel DepthNeighbours[5];750 #endif751 724 Int index =0; 752 #if SINGLE_DEPTH_SIMP_J0115753 725 for( Int i = 0; (i < 2) && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ ) 754 #else755 for( Int i = 0; (i < 5) && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ )756 #endif757 726 { 758 727 if(!pcCU->getNeighDepth (0, uiAbsPartIdx, &testDepth, i)) … … 762 731 DepthNeighbours[index]=testDepth; 763 732 index++; 764 #if !SINGLE_DEPTH_SIMP_J0115765 for(Int j=0;j<index-1;j++)766 {767 if( (DepthNeighbours[index-1]==DepthNeighbours[j]) )768 {769 index--;770 break;771 }772 }773 #endif774 733 } 775 734 -
trunk/source/Lib/TLibDecoder/TDecEntropy.cpp
r1124 r1133 59 59 return; 60 60 } 61 #if ALIGN_J0060_J010762 #else63 if ( !pcCU->getSlice()->getIsDepth() )64 {65 return;66 }67 #if MTK_SINGLE_DEPTH_VPS_FLAG_J006068 if(!pcCU->getSlice()->getVPS()->getSingleDepthModeFlag(pcCU->getSlice()->getLayerIdInVps()))69 {70 return;71 }72 #else73 if(!pcCU->getSlice()->getApplySingleDepthMode())74 {75 return;76 }77 #endif78 #endif79 61 80 62 m_pcEntropyDecoderIf->parseSingleDepthMode( pcCU, uiAbsPartIdx, uiDepth ); … … 167 149 168 150 #if H_3D_DBBP 169 #if SEC_DBBP_VIEW_REF_CHECK_J0037170 #if HHI_TOOL_PARAMETERS_I2_J0107171 151 if( pcCU->getSlice()->getDepthBasedBlkPartFlag() && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 && pcCU->getSlice()->getDefaultRefViewIdxAvailableFlag() ) 172 #else173 if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 && pcCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )174 #endif175 #else176 if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 )177 #endif178 152 { 179 153 decodeDBBPFlag(pcCU, uiAbsPartIdx, uiDepth); … … 360 334 } 361 335 pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth ); 362 #if !LGE_DDD_REMOVAL_J0042_J0030363 #if H_3D_DDD364 if( uiMergeIndex == pcSubCU->getUseDDDCandIdx() )365 {366 assert( pcCU->getSlice()->getViewIndex() != 0 );367 pcCU->setUseDDD( true, uiSubPartIdx, uiPartIdx, uiDepth );368 pcCU->setDDDepthSubParts( pcSubCU->getDDTmpDepth(),uiSubPartIdx, uiPartIdx, uiDepth );369 }370 else371 {372 pcCU->setUseDDD( false, uiSubPartIdx, uiPartIdx, uiDepth );373 }374 #endif375 #endif376 336 377 337 TComMv cTmpMv( 0, 0 ); … … 852 812 pcCU->setSDCFlagSubParts( false, uiAbsPartIdx, uiDepth ); 853 813 854 #if HHI_TOOL_PARAMETERS_I2_J0107855 814 if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getInterSdcFlag() ) || 856 815 ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getIntraSdcWedgeFlag() ) ) 857 #else858 if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) ) ||859 ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getVpsDepthModesFlag( pcCU->getSlice()->getLayerIdInVps() ) ) )860 #endif861 816 { 862 817 return; -
trunk/source/Lib/TLibDecoder/TDecEntropy.h
r1124 r1133 66 66 67 67 virtual Void parseVPS ( TComVPS* pcVPS ) = 0; 68 #if HHI_TOOL_PARAMETERS_I2_J010769 68 virtual Void parseSPS ( TComSPS* pcSPS ) = 0; 70 #else71 #if H_3D72 virtual Void parseSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ) = 0;73 #else74 virtual Void parseSPS ( TComSPS* pcSPS ) = 0;75 #endif76 #endif77 69 #if H_3D 78 70 virtual Void parsePPS ( TComPPS* pcPPS, TComVPS* pcVPS ) = 0; … … 161 153 Void resetEntropy ( TComSlice* p) { m_pcEntropyDecoderIf->resetEntropy(p); } 162 154 Void decodeVPS ( TComVPS* pcVPS ) { m_pcEntropyDecoderIf->parseVPS(pcVPS); } 163 #if HHI_TOOL_PARAMETERS_I2_J0107164 155 Void decodeSPS ( TComSPS* pcSPS ) { m_pcEntropyDecoderIf->parseSPS(pcSPS); } 165 #else166 #if H_3D167 Void decodeSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ) { m_pcEntropyDecoderIf->parseSPS(pcSPS, viewIndex, depthFlag ); }168 #else169 Void decodeSPS ( TComSPS* pcSPS ) { m_pcEntropyDecoderIf->parseSPS(pcSPS); }170 #endif171 #endif172 156 #if H_3D 173 157 Void decodePPS ( TComPPS* pcPPS, TComVPS* pcVPS ) { m_pcEntropyDecoderIf->parsePPS(pcPPS, pcVPS); } -
trunk/source/Lib/TLibDecoder/TDecSbac.cpp
r1124 r1133 703 703 704 704 705 #if HHI_TOOL_PARAMETERS_I2_J0107706 705 Bool bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag(); 707 #else708 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS();709 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId());710 #endif711 706 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 712 707 Bool bDepthMapDetect = (pcTexture != NULL); … … 762 757 Bool bParsePartSize = true; 763 758 764 #if HHI_TOOL_PARAMETERS_I2_J0107765 759 Bool bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag(); 766 #else767 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS();768 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId());769 #endif770 760 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 771 761 Bool bDepthMapDetect = (pcTexture != NULL); … … 992 982 { 993 983 #if H_3D_DIM 994 #if HHI_TOOL_PARAMETERS_I2_J0107995 984 if( pcCU->getSlice()->getIntraSdcWedgeFlag() || pcCU->getSlice()->getIntraContourFlag() ) 996 #else997 if( pcCU->getSlice()->getVpsDepthModesFlag() || pcCU->getSlice()->getIVPFlag() )998 #endif999 985 { 1000 986 parseIntraDepth( pcCU, absPartIdx+partOffset*j, depth ); … … 1111 1097 xParseDmm1WedgeIdx( uiTabIdx, g_dmm1TabIdxBits[pcCU->getIntraSizeIdx(absPartIdx)] ); 1112 1098 1113 #if MTK_J00331114 1099 assert( uiTabIdx < g_dmmWedgeLists[ g_aucConvertToBit[ pcCU->getDMM1BasePatternWidth( pcCU->getWidth( absPartIdx ) )]].size()); 1115 #endif1116 1100 1117 1101 pcCU->setDmmWedgeTabIdxSubParts( uiTabIdx, dimType, absPartIdx, depth ); … … 1143 1127 if( uiIsDimMode ) 1144 1128 { 1145 #if HHI_TOOL_PARAMETERS_I2_J01071146 1129 if( pcCU->getSlice()->getIntraSdcWedgeFlag() && pcCU->getSlice()->getIntraContourFlag() ) 1147 #else1148 if( pcCU->getSlice()->getVpsDepthModesFlag() && pcCU->getSlice()->getIVPFlag() )1149 #endif1150 1130 { 1151 1131 m_pcTDecBinIf->decodeBin( uiSymbol, m_cDepthIntraModeSCModel.get( 0, 0, 0 ) ); … … 1159 1139 } 1160 1140 } 1161 #if HHI_TOOL_PARAMETERS_I2_J01071162 1141 else if ( pcCU->getSlice()->getIntraSdcWedgeFlag() ) 1163 #else1164 else if ( pcCU->getSlice()->getVpsDepthModesFlag() )1165 #endif1166 1142 { 1167 1143 pcCU->setLumaIntraDirSubParts( DIM_OFFSET, absPartIdx, depth ); 1168 1144 } 1169 #if HHI_TOOL_PARAMETERS_I2_J01071170 1145 else if( pcCU->getSlice()->getIntraContourFlag() ) 1171 #else1172 else if( pcCU->getSlice()->getIVPFlag() )1173 #endif1174 1146 { 1175 1147 pcCU->setLumaIntraDirSubParts( ( 1+ DIM_OFFSET ), absPartIdx, depth ); … … 2151 2123 Void TDecSbac::parseDBBPFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) 2152 2124 { 2153 #if HHI_TOOL_PARAMETERS_I2_J01072154 2125 AOF( pcCU->getSlice()->getDepthBasedBlkPartFlag() ); 2155 #else2156 AOF( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) );2157 #endif2158 2126 AOF( !pcCU->getSlice()->getIsDepth() ); 2159 2127 -
trunk/source/Lib/TLibDecoder/TDecSbac.h
r1124 r1133 76 76 Void setBitstream ( TComInputBitstream* p ) { m_pcBitstream = p; m_pcTDecBinIf->init( p ); } 77 77 Void parseVPS ( TComVPS* /*pcVPS*/ ) {} 78 #if HHI_TOOL_PARAMETERS_I2_J010779 78 Void parseSPS ( TComSPS* /*pcSPS*/ ) {} 80 #else81 #if H_3D82 Void parseSPS ( TComSPS* /*pcSPS*/ , Int /*viewIndex*/, Bool /*depthFlag*/ ) {}83 #else84 Void parseSPS ( TComSPS* /*pcSPS*/ ) {}85 #endif86 #endif87 79 #if H_3D 88 80 Void parsePPS ( TComPPS* /*pcPPS*/, TComVPS* /*pcVPS*/ ) {} -
trunk/source/Lib/TLibDecoder/TDecSlice.cpp
r1124 r1133 280 280 iNumSubstreamsPerTile = 1; 281 281 } 282 #if LGE_DEFAULT_DV_J0046 && !SEC_ARP_VIEW_REF_CHECK_J0037 && !SEC_DBBP_VIEW_REF_CHECK_J0037283 pcSlice->setDefaultRefViewIdx( -1 );284 pcSlice->setDefaultRefViewIdxAvailableFlag( false );285 286 Int valid = 0;287 Int viewIndex = 0;288 for( UInt uiBId = 0; uiBId < pcSlice->getViewIndex() && valid==0; uiBId++ )289 {290 UInt uiBaseId = uiBId;291 TComPic* pcBasePic = pcSlice->getIvPic( false, uiBaseId );292 for( Int iRefListId = 0; ( iRefListId < (pcSlice->isInterB()? 2:1) ) && !pcSlice->isIntra() && valid==0; iRefListId++ )293 {294 RefPicList eRefPicListTest = RefPicList( iRefListId );295 Int iNumRefPics = pcSlice->getNumRefIdx( eRefPicListTest ) ;296 for( Int iRefIndex = 0; iRefIndex < iNumRefPics; iRefIndex++ )297 {298 if(pcBasePic->getPOC() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getPOC()299 && pcBasePic->getViewIndex() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getViewIndex())300 {301 valid=1;302 viewIndex = uiBaseId;303 break;304 }305 }306 }307 }308 if( valid )309 {310 pcSlice->setDefaultRefViewIdx( viewIndex );311 pcSlice->setDefaultRefViewIdxAvailableFlag( true );312 }313 #endif314 282 315 283 if ( (iCUAddr == rpcPic->getPicSym()->getTComTile(rpcPic->getPicSym()->getTileIdxMap(iCUAddr))->getFirstCUAddr()) && // 1st in tile. -
trunk/source/Lib/TLibDecoder/TDecTop.cpp
r1124 r1133 726 726 727 727 #endif 728 #if HHI_TOOL_PARAMETERS_I2_J0107729 728 #if H_3D 730 729 m_apcSlicePilot->init3dToolParameters(); 731 #endif732 730 #endif 733 731 pps->setSPS(sps); … … 1087 1085 pcSlice->getTempRefPicLists( m_cListPic, m_refPicSetInterLayer0, m_refPicSetInterLayer1, tempRefPicLists, usedAsLongTerm, numPocTotalCurr); 1088 1086 pcSlice->setRefPicList ( tempRefPicLists, usedAsLongTerm, numPocTotalCurr, true ); 1089 1090 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037 1087 #if H_3D 1091 1088 pcSlice->setDefaultRefView(); 1092 1089 #endif 1093 1094 1090 #if H_3D_ARP 1095 1091 pcSlice->setARPStepNum(m_ivPicLists); … … 1244 1240 TComVPS* vps = m_parameterSetManagerDecoder.getPrefetchedVPS( 0 ); 1245 1241 assert( vps != 0 ); 1246 #if HHI_TOOL_PARAMETERS_I2_J01071247 1242 m_cEntropyDecoder.decodeSPS( sps ); 1248 #else1249 m_cEntropyDecoder.decodeSPS( sps, vps->getViewIndex( m_layerId ), ( vps->getDepthId( m_layerId ) == 1 ) );1250 #endif1251 1243 #else 1252 1244 m_cEntropyDecoder.decodeSPS( sps ); -
trunk/source/Lib/TLibDecoder/TDecTop.h
r1124 r1133 83 83 #endif 84 84 85 #if !LGE_DDD_REMOVAL_J0042_J003086 #if H_3D_DDD87 Int getCodedScale( Int iBaseView, Int iCureView){ return m_aaiCodedScale[ iBaseView ][ iCureView ];}88 Int getCodedOffset( Int iBaseView, Int iCureView){ return m_aaiCodedOffset[ iBaseView ][ iCureView ];}89 UInt getCamParsCodedPrecision(){ return m_vps->getCamParPrecision(); }90 #endif91 #endif92 85 93 86 private:
Note: See TracChangeset for help on using the changeset viewer.