Changeset 1133 in 3DVCSoftware for trunk/source/Lib/TLibEncoder
- Timestamp:
- 21 Feb 2015, 22:47:16 (10 years ago)
- Location:
- trunk/source/Lib/TLibEncoder
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibEncoder/TEncCavlc.cpp
r1124 r1133 638 638 } 639 639 640 #if HHI_TOOL_PARAMETERS_I2_J0107641 640 Void TEncCavlc::codeSPS( TComSPS* pcSPS ) 642 #else643 #if H_3D644 Void TEncCavlc::codeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )645 #else646 Void TEncCavlc::codeSPS( TComSPS* pcSPS )647 #endif648 #endif649 641 { 650 642 #if ENC_DEC_TRACE … … 846 838 if ( pcSPS->getSps3dExtensionFlag() ) 847 839 { 848 #if HHI_TOOL_PARAMETERS_I2_J0107849 840 codeSPS3dExtension( pcSPS ); 850 #else851 codeSPSExtension2( pcSPS, viewIndex, depthFlag );852 #endif853 841 } 854 842 … … 871 859 WRITE_CODE( pcPPS->getPpsScalingListRefLayerId( ), 6, "pps_scaling_list_ref_layer_id" ); 872 860 WRITE_UVLC( 0, "num_ref_loc_offsets" ); 873 #if H_MV_HLS_FIX874 861 WRITE_FLAG( 0 , "colour_mapping_enabled_flag" ); 875 #endif876 862 877 863 } … … 880 866 881 867 #if H_3D 882 #if HHI_TOOL_PARAMETERS_I2_J0107883 868 Void TEncCavlc::codeSPS3dExtension( TComSPS* pcSPS ) 884 869 { … … 908 893 } 909 894 } 910 #else911 Void TEncCavlc::codeSPSExtension2( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )912 {913 914 }915 #endif916 895 #endif 917 896 … … 1012 991 #if H_3D 1013 992 WRITE_FLAG( 1, "vps_extension2_flag" ); 1014 #if HHI_VPS_3D_EXTENSION_I3_J01071015 993 WRITE_FLAG( 1, "vps_3d_extension_flag" ); 1016 994 m_pcBitIf->writeAlignOne(); 1017 995 codeVPS3dExtension( pcVPS ); 1018 #else1019 m_pcBitIf->writeAlignOne();1020 codeVPSExtension2( pcVPS );1021 #endif1022 996 WRITE_FLAG( 0, "vps_extension3_flag" ); 1023 997 #else … … 1189 1163 for( Int i = 1; i < pcVPS->getNumOutputLayerSets( ); i++ ) 1190 1164 { 1191 #if H_MV_HLS_FIX1192 1165 if( pcVPS->getNumLayerSets() > 2 && i >= pcVPS->getNumLayerSets( ) ) 1193 #else1194 if( i >= pcVPS->getNumLayerSets( ) )1195 #endif1196 1166 { 1197 1167 WRITE_CODE( pcVPS->getLayerSetIdxForOlsMinus1( i ), pcVPS->getLayerSetIdxForOlsMinus1Len( i ) , "layer_set_idx_for_ols_minus1[i]" ); … … 1263 1233 1264 1234 WRITE_FLAG( pcVPS->getMaxOneActiveRefLayerFlag( ) ? 1 : 0, "max_one_active_ref_layer_flag" ); 1265 #if H_MV_HLS7_GEN || H_MV_HLS_FIX1266 1235 WRITE_FLAG( pcVPS->getVpsPocLsbAlignedFlag( ) ? 1 : 0 , "vps_poc_lsb_aligned_flag" ); 1267 #endif1268 1236 for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ ) 1269 1237 { … … 1313 1281 codeVPSVUI( pcVPS ); 1314 1282 } 1315 #if H_MV_HLS_FIX1316 1283 else 1317 #endif1318 1284 { 1319 1285 TComVPSVUI* pcVPSVUI = pcVPS->getVPSVUI( ); … … 1630 1596 1631 1597 #if H_3D 1632 #if HHI_VPS_3D_EXTENSION_I3_J01071633 1598 Void TEncCavlc::codeVPS3dExtension( TComVPS* pcVPS ) 1634 #else1635 Void TEncCavlc::codeVPSExtension2( TComVPS* pcVPS )1636 #endif1637 1599 { 1638 #if !HHI_TOOL_PARAMETERS_I2_J01071639 for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ )1640 {1641 {1642 WRITE_FLAG( pcVPS->getIvMvPredFlag ( i ) ? 1 : 0 , "iv_mv_pred_flag[i]");1643 WRITE_FLAG( pcVPS->getIvMvScalingFlag( i ) ? 1 : 0 , "iv_mv_scaling_flag[i]" );1644 1645 if ( !( pcVPS->getDepthId( i ) == 1 ) )1646 {1647 #if H_3D_IV_MERGE1648 #if H_3D_SPIVMP1649 WRITE_UVLC( pcVPS->getSubPULog2Size(i)-3, "log2_sub_PU_size_minus3[i]");1650 #endif1651 #endif1652 #if H_3D_ARP1653 WRITE_FLAG( pcVPS->getUseAdvRP ( i ) ? 1 : 0, "iv_res_pred_flag[i]" );1654 #endif1655 #if H_3D_NBDV_REF1656 WRITE_FLAG( pcVPS->getDepthRefinementFlag ( i ) ? 1 : 0 , "depth_refinement_flag[i]");1657 #endif1658 #if H_3D_VSP1659 WRITE_FLAG( pcVPS->getViewSynthesisPredFlag( i ) ? 1 : 0 , "view_synthesis_pred_flag[i]");1660 #endif1661 #if H_3D_DBBP1662 WRITE_FLAG( pcVPS->getUseDBBP( i ) ? 1 : 0, "use_dbbp_flag[i]" );1663 #endif1664 }1665 else1666 {1667 #if H_3D_IV_MERGE1668 WRITE_FLAG( pcVPS->getMPIFlag( i ) ? 1 : 0 , "mpi_flag[i]" );1669 #endif1670 WRITE_UVLC( pcVPS->getSubPUMPILog2Size(i)-3, "log2_mpi_sub_PU_size_minus3[i]");1671 1672 WRITE_FLAG( pcVPS->getVpsDepthModesFlag( i ) ? 1 : 0 , "vps_depth_modes_flag[i]" );1673 #if H_3D1674 WRITE_FLAG( pcVPS->getIVPFlag( i ) ? 1 : 0 , "IVP_flag[i]" );1675 #endif1676 WRITE_FLAG( pcVPS->getLimQtPredFlag ( i ) ? 1 : 0 , "lim_qt_pred_flag[i]" );1677 1678 #if H_3D_INTER_SDC1679 WRITE_FLAG( pcVPS->getInterSDCFlag( i ) ? 1 : 0, "depth_inter_SDC_flag" );1680 #endif1681 #if MTK_SINGLE_DEPTH_VPS_FLAG_J00601682 WRITE_FLAG( pcVPS->getSingleDepthModeFlag( i ) ? 1 : 0, "single_depth_mode_flag" );1683 #endif1684 }1685 }1686 }1687 #endif1688 1600 WRITE_UVLC( pcVPS->getCamParPrecision(), "cp_precision" ); 1689 1601 for (UInt viewIndex=1; viewIndex<pcVPS->getNumViews(); viewIndex++) … … 1789 1701 } 1790 1702 pcSlice->checkCrossLayerBlaFlag( ); 1791 #if !H_MV_HLS7_GEN && !H_MV_HLS_FIX1792 if ( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > esb )1793 {1794 esb++;1795 WRITE_FLAG( pcSlice->getPocResetFlag( ) ? 1 : 0 , "poc_reset_flag" );1796 }1797 #endif1798 1703 1799 1704 … … 1951 1856 Bool interLayerPredLayerIdcPresentFlag = false; 1952 1857 Int layerId = pcSlice->getLayerId(); 1953 #if HHI_DEPENDENCY_SIGNALLING_I1_J01071954 1858 #if H_3D 1955 1859 if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumRefListLayers( layerId ) > 0 ) … … 1957 1861 if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 ) 1958 1862 #endif 1959 #else1960 if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 )1961 #endif1962 1863 { 1963 1864 WRITE_FLAG( pcSlice->getInterLayerPredEnabledFlag( ) ? 1 : 0 , "inter_layer_pred_enabled_flag" ); 1964 #if HHI_DEPENDENCY_SIGNALLING_I1_J01071965 1865 #if H_3D 1966 1866 if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumRefListLayers( layerId ) > 1 ) … … 1968 1868 if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 ) 1969 1869 #endif 1970 #else1971 if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 )1972 #endif1973 1870 { 1974 1871 if( !vps->getMaxOneActiveRefLayerFlag()) … … 1976 1873 WRITE_CODE( pcSlice->getNumInterLayerRefPicsMinus1( ), pcSlice->getNumInterLayerRefPicsMinus1Len( ), "num_inter_layer_ref_pics_minus1" ); 1977 1874 } 1978 #if HHI_DEPENDENCY_SIGNALLING_I1_J01071979 1875 #if H_3D 1980 1876 if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumRefListLayers( layerId ) ) 1981 #else1982 if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) )1983 #endif1984 1877 #else 1985 1878 if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) ) … … 2125 2018 } 2126 2019 #if H_3D_IC 2127 #if HHI_DEPENDENCY_SIGNALLING_I1_J01072128 2020 else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 ) 2129 #else2130 else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumDirectRefLayers( layerId ) > 0 )2131 #endif2132 2021 { 2133 2022 WRITE_FLAG( pcSlice->getApplyIC() ? 1 : 0, "slice_ic_enable_flag" ); … … 2137 2026 } 2138 2027 } 2139 #endif2140 #if !MTK_SINGLE_DEPTH_VPS_FLAG_J00602141 #if H_3D_SINGLE_DEPTH2142 if(pcSlice->getIsDepth())2143 {2144 WRITE_FLAG( pcSlice->getApplySingleDepthMode() ? 1 : 0, "slice_enable_single_depth_mode" );2145 }2146 #endif2147 2028 #endif 2148 2029 #if H_3D_IV_MERGE … … 2154 2035 { 2155 2036 #if H_3D_IV_MERGE 2156 #if HHI_TOOL_PARAMETERS_I2_J01072157 #if ALGIN_J0107_J00592158 2037 WRITE_UVLC( ( ( pcSlice->getMpiFlag( ) || pcSlice->getIvMvPredFlag( ) || pcSlice->getViewSynthesisPredFlag( ) ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand"); 2159 #else2160 WRITE_UVLC( ( ( pcSlice->getMpiFlag( ) || pcSlice->getIvMvPredFlag( ) ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");2161 #endif2162 #else2163 if(pcSlice->getIsDepth())2164 {2165 Bool bMPIFlag = pcSlice->getVPS()->getMPIFlag( pcSlice->getLayerIdInVps() ) ;2166 Bool ivMvPredFlag = pcSlice->getVPS()->getIvMvPredFlag( pcSlice->getLayerIdInVps() ) ;2167 WRITE_UVLC( ( ( bMPIFlag || ivMvPredFlag ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");2168 }2169 else2170 {2171 Bool ivMvPredFlag = pcSlice->getVPS()->getIvMvPredFlag( pcSlice->getLayerIdInVps() ) ;2172 #if MTK_MRG_LIST_SIZE_CLEANUP_J00592173 Bool vspFlag = pcSlice->getVPS()->getViewSynthesisPredFlag( pcSlice->getLayerIdInVps() ) ;2174 WRITE_UVLC( ( ivMvPredFlag || vspFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");2175 #else2176 WRITE_UVLC( ( ivMvPredFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand");2177 #endif2178 }2179 #endif2180 2038 #else 2181 2039 WRITE_UVLC(MRG_MAX_NUM_CANDS - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand"); … … 2243 2101 { 2244 2102 // Derive the value of PocMsbValRequiredFlag 2245 #if !H_MV_HLS_FIX2246 pcSlice->setPocMsbValRequiredFlag( pcSlice->getCraPicFlag() || pcSlice->getBlaPicFlag()2247 /* || related to vps_poc_lsb_aligned_flag */2248 );2249 #endif2250 2103 2251 2104 // Determine value of SH extension length. … … 2265 2118 2266 2119 2267 #if H_MV_HLS_FIX2268 2120 if( !pcSlice->getPocMsbValRequiredFlag() && pcSlice->getVPS()->getVpsPocLsbAlignedFlag() ) 2269 #else2270 if( !pcSlice->getPocMsbValRequiredFlag() /* TODO && pcSlice->getVPS()->getVpsPocLsbAlignedFlag() */ )2271 #endif2272 2121 { 2273 2122 shExtnLengthInBit++; // For poc_msb_val_present_flag … … 2332 2181 pcSlice->checkPocLsbVal(); 2333 2182 2334 #if H_MV_HLS_FIX2335 2183 if( !pcSlice->getPocMsbValRequiredFlag() && pcSlice->getVPS()->getVpsPocLsbAlignedFlag() ) 2336 #else2337 if( !pcSlice->getPocMsbValRequiredFlag() /* TODO && pcSlice->getVPS()->getVpsPocLsbAlignedFlag() */ )2338 #endif2339 2184 { 2340 2185 WRITE_FLAG( pcSlice->getPocMsbValPresentFlag( ) ? 1 : 0 , "poc_msb_val_present_flag" ); -
trunk/source/Lib/TLibEncoder/TEncCavlc.h
r1124 r1133 99 99 #endif 100 100 #if H_3D 101 #if HHI_VPS_3D_EXTENSION_I3_J0107102 101 Void codeVPS3dExtension ( TComVPS* pcVPS ); 103 #else104 Void codeVPSExtension2 ( TComVPS* pcVPS );105 #endif106 #if HHI_TOOL_PARAMETERS_I2_J0107107 102 Void codeSPS3dExtension ( TComSPS* pcSPS ); 108 103 Void codeSPS ( TComSPS* pcSPS ); 109 #else110 Void codeSPSExtension2 ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );111 Void codeSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );112 #endif113 104 #else 114 105 Void codeSPS ( TComSPS* pcSPS ); -
trunk/source/Lib/TLibEncoder/TEncCfg.h
r1124 r1133 392 392 Double m_dDispCoeff; 393 393 #endif 394 #if !HHI_TOOL_PARAMETERS_I2_J0107395 #if H_3D_ARP396 UInt m_uiUseAdvResPred;397 UInt m_uiARPStepNum;398 #endif399 #if H_3D_SPIVMP400 Int m_iSubPULog2Size;401 Int m_iSubPUMPILog2Size;402 #endif403 #endif404 394 #if H_3D_IC 405 395 Bool m_bUseIC; 406 396 Bool m_bUseICLowLatencyEnc; 407 397 #endif 408 #if !HHI_TOOL_PARAMETERS_I2_J0107409 #if H_3D_INTER_SDC410 bool m_bInterSDC;411 #endif412 #if H_3D_DBBP413 Bool m_bUseDBBP;414 #endif415 #endif416 398 //====== Depth Intra Modes ====== 417 399 #if H_3D_DIM 418 400 Bool m_useDMM; 419 #if !HHI_TOOL_PARAMETERS_I2_J0107420 Bool m_useIVP;421 #endif422 401 Bool m_useSDC; 423 402 Bool m_useDLT; 424 #endif425 #if !HHI_TOOL_PARAMETERS_I2_J0107426 #if H_3D_SINGLE_DEPTH427 Bool m_useSingleDepthMode;428 #endif429 430 #if H_3D_IV_MERGE431 Bool m_useMPI;432 #endif433 403 #endif 434 404 #if H_3D_QTLPC … … 506 476 Void setMaxTempLayer ( Int maxTempLayer ) { m_maxTempLayer = maxTempLayer; } 507 477 508 #if !HHI_TOOL_PARAMETERS_I2_J0107509 #if H_3D_ARP510 UInt getUseAdvRP ( ) { return m_uiUseAdvResPred; }511 Void setUseAdvRP ( UInt u ) { m_uiUseAdvResPred = u; }512 513 UInt getARPStepNum () { return m_uiARPStepNum; }514 Void setARPStepNum ( UInt u ) { m_uiARPStepNum = u; }515 #endif516 #if H_3D_SPIVMP517 Int getSubPULog2Size () { return m_iSubPULog2Size;}518 Void setSubPULog2Size (Int u) { m_iSubPULog2Size = u; }519 Int getSubPUMPILog2Size () { return m_iSubPUMPILog2Size;}520 Void setSubPUMPILog2Size (Int u) { m_iSubPUMPILog2Size = u; }521 #endif522 #endif523 478 #if H_3D_IC 524 479 Void setUseIC ( Bool bVal ) { m_bUseIC = bVal; } … … 526 481 Void setUseICLowLatencyEnc ( Bool bVal ) { m_bUseICLowLatencyEnc = bVal; } 527 482 Bool getUseICLowLatencyEnc () { return m_bUseICLowLatencyEnc; } 528 #endif529 #if !HHI_TOOL_PARAMETERS_I2_J0107530 #if H_3D_INTER_SDC531 Void setInterSDCEnable ( Bool bVal ) { m_bInterSDC = bVal; }532 Bool getInterSDCEnable () { return m_bInterSDC; }533 #endif534 #if H_3D_DBBP535 Void setUseDBBP ( Bool b ) { m_bUseDBBP = b; }536 Bool getUseDBBP() { return m_bUseDBBP; }537 #endif538 483 #endif 539 484 //======== Transform ============= … … 991 936 Bool getUseDMM () { return m_useDMM; } 992 937 Void setUseDMM ( Bool b) { m_useDMM = b; } 993 #if !HHI_TOOL_PARAMETERS_I2_J0107994 Bool getUseIVP () { return m_useIVP; }995 Void setUseIVP ( Bool b) { m_useIVP = b; }996 #endif997 938 Bool getUseSDC () { return m_useSDC; } 998 939 Void setUseSDC ( Bool b) { m_useSDC = b; } … … 1000 941 Bool getUseDLT () { return m_useDLT; } 1001 942 Void setUseDLT ( Bool b) { m_useDLT = b; } 1002 #endif1003 #if !HHI_TOOL_PARAMETERS_I2_J01071004 #if H_3D_SINGLE_DEPTH1005 Void setUseSingleDepthMode ( Bool bVal ) { m_useSingleDepthMode = bVal; }1006 Bool getUseSingleDepthMode () { return m_useSingleDepthMode; }1007 #endif1008 943 #endif 1009 944 #if H_3D_QTLPC … … 1011 946 Bool getUseQTL () { return m_bUseQTL; } 1012 947 #endif 1013 #if !HHI_TOOL_PARAMETERS_I2_J01071014 #if H_3D_IV_MERGE1015 Void setUseMPI ( Bool b ) { m_useMPI = b; }1016 Bool getUseMPI () { return m_useMPI; }1017 #endif1018 #endif1019 948 #endif // H_3D 1020 949 }; -
trunk/source/Lib/TLibEncoder/TEncCu.cpp
r1124 r1133 409 409 410 410 #if H_3D_QTLPC 411 #if HHI_TOOL_PARAMETERS_I2_J0107412 411 Bool bLimQtPredFalg = pcPic->getSlice(0)->getQtPredFlag(); 413 #else414 TComVPS *vps = pcPic->getSlice(0)->getVPS();415 Bool bLimQtPredFalg = vps->getLimQtPredFlag(pcPic->getSlice(0)->getLayerId());416 #endif417 412 TComPic *pcTexture = rpcBestCU->getSlice()->getTexturePic(); 418 413 … … 570 565 { 571 566 #if H_3D_ARP && H_3D_IV_MERGE 572 #if HHI_TOOL_PARAMETERS_I2_J0107573 567 if( rpcTempCU->getSlice()->getIvResPredFlag() || rpcTempCU->getSlice()->getIvMvPredFlag() ) 574 #else575 if( rpcTempCU->getSlice()->getVPS()->getUseAdvRP(rpcTempCU->getSlice()->getLayerId()) || rpcTempCU->getSlice()->getVPS()->getIvMvPredFlag(rpcTempCU->getSlice()->getLayerId()) )576 #endif577 568 #else 578 569 #if H_3D_ARP … … 598 589 #endif 599 590 #if H_3D_NBDV_REF 600 #if HHI_TOOL_PARAMETERS_I2_J0107601 591 if( rpcTempCU->getSlice()->getDepthRefinementFlag() ) 602 #else603 if(rpcTempCU->getSlice()->getVPS()->getDepthRefinementFlag( rpcTempCU->getSlice()->getLayerIdInVps()))604 #endif605 592 DvInfo.bDV = rpcTempCU->getDisMvpCandNBDV(&DvInfo, true); 606 593 else … … 617 604 } 618 605 #if H_3D_FAST_TEXTURE_ENCODING 619 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037620 606 if(rpcTempCU->getSlice()->getViewIndex() && !rpcTempCU->getSlice()->getIsDepth() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() ) 621 #else622 if(rpcTempCU->getSlice()->getViewIndex() && !rpcTempCU->getSlice()->getIsDepth())623 #endif624 607 { 625 608 PartSize ePartTemp = rpcTempCU->getPartitionSize(0); … … 684 667 685 668 #if H_3D_DBBP 686 #if SEC_DBBP_VIEW_REF_CHECK_J0037687 #if HHI_TOOL_PARAMETERS_I2_J0107688 669 if( rpcTempCU->getSlice()->getDepthBasedBlkPartFlag() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() ) 689 #else690 if( m_pcEncCfg->getUseDBBP() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() )691 #endif692 #else693 if( m_pcEncCfg->getUseDBBP() )694 #endif695 670 { 696 671 xCheckRDCostInterDBBP( rpcBestCU, rpcTempCU, false ); … … 739 714 #if H_3D_SINGLE_DEPTH 740 715 rpcTempCU->initEstData( uiDepth, iMinQP, isAddLowestQP ); 741 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060742 #if ALIGN_J0060_J0107743 716 if( rpcBestCU->getSlice()->getIntraSingleFlag() ) 744 #else745 if(rpcBestCU->getSlice()->getVPS()->getSingleDepthModeFlag(rpcBestCU->getSlice()->getLayerIdInVps()))746 #endif747 #else748 if(rpcBestCU->getSlice()->getApplySingleDepthMode())749 #endif750 717 { 751 718 xCheckRDCostSingleDepth( rpcBestCU, rpcTempCU, SIZE_2Nx2N ); … … 1074 1041 #if H_3D_DIM 1075 1042 Bool bOnlyIVP = false; 1043 #if TICKET083_IVPFLAG_FIX 1044 Bool bUseIVP = true; 1045 #endif 1076 1046 if( rpcBestCU->getSlice()->getIsDepth() && !(rpcBestCU->getSlice()->isIRAP()) && 1077 1047 rpcBestCU->getSlice()->getSliceType() != I_SLICE && … … 1082 1052 { 1083 1053 bOnlyIVP = true; 1054 #if TICKET083_IVPFLAG_FIX 1055 bUseIVP = rpcBestCU->getSlice()->getIntraContourFlag(); 1056 #endif 1084 1057 } 1058 #if TICKET083_IVPFLAG_FIX 1059 if( bUseIVP ) 1060 { 1061 #endif 1085 1062 xCheckRDCostIntra( rpcBestCU, rpcTempCU, SIZE_2Nx2N, bOnlyIVP ); 1086 1063 #else … … 1116 1093 #endif 1117 1094 } 1095 #if TICKET083_IVPFLAG_FIX 1096 } 1097 #endif 1118 1098 } 1119 1099 // test PCM … … 1901 1881 1902 1882 #endif 1903 #if !LGE_DDD_REMOVAL_J0042_J00301904 #if H_3D_DDD1905 Int iDDDCand = rpcTempCU->getUseDDDCandIdx();1906 UChar ucDDDepth = rpcTempCU->getDDTmpDepth();1907 rpcTempCU->setUseDDD( false, 0, uhDepth );1908 #endif1909 #endif1910 1883 1911 1884 for( UInt uiNoResidual = 0; uiNoResidual < iteration; ++uiNoResidual ) … … 1940 1913 #if H_3D_VSP 1941 1914 rpcTempCU->setVSPFlagSubParts( vspFlag[uiMergeCand], 0, 0, uhDepth ); 1942 #endif1943 #if !LGE_DDD_REMOVAL_J0042_J00301944 #if H_3D_DDD1945 if( rpcTempCU->getSlice()->getIsDepth() && rpcTempCU->getSlice()->getViewIndex() != 0 && iDDDCand == uiMergeCand )1946 {1947 rpcTempCU->setUseDDD( true, 0, 0, uhDepth );1948 rpcTempCU->setDDDepthSubParts( ucDDDepth, 0, 0, uhDepth );1949 }1950 else1951 {1952 rpcTempCU->setUseDDD( false, 0, 0, uhDepth );1953 }1954 #endif1955 1915 #endif 1956 1916 #if H_3D_SPIVMP … … 2056 2016 xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth); 2057 2017 #if H_3D_INTER_SDC 2058 #if HHI_TOOL_PARAMETERS_I2_J01072059 2018 if( rpcTempCU->getSlice()->getInterSdcFlag() && !uiNoResidual ) 2060 #else2061 if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) && rpcTempCU->getSlice()->getIsDepth() && !uiNoResidual )2062 #endif2063 2019 { 2064 2020 Double dOffsetCost[3] = {MAX_DOUBLE,MAX_DOUBLE,MAX_DOUBLE}; … … 2132 2088 { 2133 2089 #if H_3D_INTER_SDC 2134 #if HHI_TOOL_PARAMETERS_I2_J01072135 2090 if( rpcTempCU->getSlice()->getInterSdcFlag() ) 2136 #else2137 if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) )2138 #endif2139 2091 { 2140 2092 bestIsSkip = !rpcBestCU->getSDCFlag( 0 ) && ( rpcBestCU->getQtRootCbf(0) == 0 ); … … 2212 2164 UChar uhDepth = rpcTempCU->getDepth( 0 ); 2213 2165 #if H_3D_ARP 2214 #if !HHI_TOOL_PARAMETERS_I2_J01072215 Int iLayerId = rpcTempCU->getSlice()->getLayerId();2216 #endif2217 2166 Bool bFirstTime = true; 2218 2167 Int nARPWMax = rpcTempCU->getSlice()->getARPStepNum() - 1; … … 2225 2174 for( Int nARPW = 0; nARPW <= nARPWMax; nARPW++ ) 2226 2175 { 2227 #if HHI_TOOL_PARAMETERS_I2_J01072228 2176 if( !bFirstTime && rpcTempCU->getSlice()->getIvResPredFlag() ) 2229 #else2230 if( bFirstTime == false && rpcTempCU->getSlice()->getVPS()->getUseAdvRP( iLayerId ) )2231 #endif2232 2177 { 2233 2178 rpcTempCU->initEstData( rpcTempCU->getDepth(0), rpcTempCU->getQP(0),bTransquantBypassFlag ); … … 2253 2198 rpcTempCU->setPartSizeSubParts ( ePartSize, 0, uhDepth ); 2254 2199 rpcTempCU->setPredModeSubParts ( MODE_INTER, 0, uhDepth ); 2255 #if !LGE_DDD_REMOVAL_J0042_J00302256 #if H_3D_DDD2257 rpcTempCU->setUseDDD( false, 0, uhDepth );2258 #endif2259 #endif2260 2200 2261 2201 #if H_3D_ARP … … 2335 2275 xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth); 2336 2276 #if H_3D_INTER_SDC 2337 #if HHI_TOOL_PARAMETERS_I2_J01072338 2277 if( rpcTempCU->getSlice()->getInterSdcFlag() && ePartSize == SIZE_2Nx2N) 2339 #else2340 if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) && rpcTempCU->getSlice()->getIsDepth() && ePartSize == SIZE_2Nx2N)2341 #endif2342 2278 { 2343 2279 Double dOffsetCost[3] = {MAX_DOUBLE,MAX_DOUBLE,MAX_DOUBLE}; -
trunk/source/Lib/TLibEncoder/TEncEntropy.cpp
r1124 r1133 78 78 } 79 79 80 #if HHI_TOOL_PARAMETERS_I2_J010781 80 Void TEncEntropy::encodeSPS( TComSPS* pcSPS ) 82 81 { … … 84 83 return; 85 84 } 86 #else87 #if H_3D88 Void TEncEntropy::encodeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )89 {90 m_pcEntropyCoderIf->codeSPS( pcSPS, viewIndex, depthFlag );91 return;92 }93 #else94 Void TEncEntropy::encodeSPS( TComSPS* pcSPS )95 {96 m_pcEntropyCoderIf->codeSPS( pcSPS );97 return;98 }99 #endif100 #endif101 85 102 86 Void TEncEntropy::encodeCUTransquantBypassFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) … … 130 114 Void TEncEntropy::encodeSingleDepthMode( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) 131 115 { 132 #if ALIGN_J0060_J0107133 116 if(!pcCU->getSlice()->getIntraSingleFlag() ) 134 117 { 135 118 return; 136 119 } 137 #else138 if ( !pcCU->getSlice()->getIsDepth() )139 {140 return;141 }142 #if MTK_SINGLE_DEPTH_VPS_FLAG_J0060143 if(!pcCU->getSlice()->getVPS()->getSingleDepthModeFlag(pcCU->getSlice()->getLayerIdInVps()))144 {145 return;146 }147 #else148 if(!pcCU->getSlice()->getApplySingleDepthMode())149 {150 return;151 }152 #endif153 #endif154 120 if( bRD ) 155 121 { … … 289 255 290 256 #if H_3D_DBBP 291 #if SEC_DBBP_VIEW_REF_CHECK_J0037292 #if HHI_TOOL_PARAMETERS_I2_J0107293 257 if( pcCU->getSlice()->getDepthBasedBlkPartFlag() && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 && pcCU->getSlice()->getDefaultRefViewIdxAvailableFlag() ) 294 #else295 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() )296 #endif297 #else298 if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 )299 #endif300 258 { 301 259 encodeDBBPFlag(pcCU, uiAbsPartIdx, bRD); … … 809 767 Void TEncEntropy::encodeSDCFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) 810 768 { 811 #if HHI_TOOL_PARAMETERS_I2_J0107812 769 if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getInterSdcFlag() ) || 813 770 ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getIntraSdcWedgeFlag() ) ) 814 #else815 if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) ) ||816 ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getVpsDepthModesFlag( pcCU->getSlice()->getLayerIdInVps() ) ) )817 #endif818 771 { 819 772 return; -
trunk/source/Lib/TLibEncoder/TEncEntropy.h
r1124 r1133 69 69 70 70 virtual Void codeVPS ( TComVPS* pcVPS ) = 0; 71 #if HHI_TOOL_PARAMETERS_I2_J010772 71 virtual Void codeSPS ( TComSPS* pcSPS ) = 0; 73 #else74 #if !H_3D75 virtual Void codeSPS ( TComSPS* pcSPS ) = 0;76 #else77 virtual Void codeSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ) = 0;78 #endif79 #endif80 72 virtual Void codePPS ( TComPPS* pcPPS ) = 0; 81 73 virtual Void codeSliceHeader ( TComSlice* pcSlice ) = 0; … … 169 161 Void encodeVPS ( TComVPS* pcVPS); 170 162 // SPS 171 #if HHI_TOOL_PARAMETERS_I2_J0107172 163 Void encodeSPS ( TComSPS* pcSPS ); 173 #else174 #if H_3D175 Void encodeSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );176 #else177 Void encodeSPS ( TComSPS* pcSPS );178 #endif179 #endif180 164 Void encodePPS ( TComPPS* pcPPS ); 181 165 Void encodeSplitFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool bRD = false ); -
trunk/source/Lib/TLibEncoder/TEncGOP.cpp
r1124 r1133 880 880 881 881 TComVPS* vps = pcSlice->getVPS(); 882 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107883 882 #if H_3D 884 883 Int numDirectRefLayers = vps ->getNumRefListLayers( getLayerId() ); 885 #else886 Int numDirectRefLayers = vps ->getNumDirectRefLayers( getLayerId() );887 #endif888 884 #else 889 885 Int numDirectRefLayers = vps ->getNumDirectRefLayers( getLayerId() ); … … 901 897 pcSlice->setNumInterLayerRefPicsMinus1( gopEntry.m_numActiveRefLayerPics - 1 ); 902 898 } 903 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107904 899 #if H_3D 905 900 if ( gopEntry.m_numActiveRefLayerPics != vps->getNumRefListLayers( getLayerId() ) ) 906 #else907 if ( gopEntry.m_numActiveRefLayerPics != vps->getNumDirectRefLayers( getLayerId() ) )908 #endif909 901 #else 910 902 if ( gopEntry.m_numActiveRefLayerPics != vps->getNumDirectRefLayers( getLayerId() ) ) … … 957 949 pcSlice->setRefPicList ( rcListPic ); 958 950 #endif 959 #if !MTK_SINGLE_DEPTH_VPS_FLAG_J0060 960 #if H_3D_SINGLE_DEPTH 961 #if HHI_TOOL_PARAMETERS_I2_J0107 962 pcSlice->setApplySingleDepthMode( pcSlice->getIntraSingleFlag() ); 963 #else 964 TEncTop* pcEncTop = (TEncTop*) m_pcCfg; 965 bool enableSingleDepthMode=false; 966 if(pcEncTop->getUseSingleDepthMode()) 967 { 968 if(pcSlice->getIsDepth()) 969 { 970 enableSingleDepthMode=true; 971 } 972 } 973 pcSlice->setApplySingleDepthMode(enableSingleDepthMode); 974 #endif 975 #endif 976 #endif 977 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037 951 #if H_3D 978 952 pcSlice->setDefaultRefView(); 979 953 #endif … … 1439 1413 pcSlice->getSPS()->getVuiParameters()->setHrdParametersPresentFlag( true ); 1440 1414 } 1441 #if HHI_TOOL_PARAMETERS_I2_J01071442 1415 m_pcEntropyCoder->encodeSPS(pcSlice->getSPS()); 1443 #else1444 #if !H_3D1445 m_pcEntropyCoder->encodeSPS(pcSlice->getSPS());1446 #else1447 m_pcEntropyCoder->encodeSPS(pcSlice->getSPS(), pcSlice->getViewIndex(), pcSlice->getIsDepth() );1448 #endif1449 #endif1450 1416 writeRBSPTrailingBits(nalu.m_Bitstream); 1451 1417 accessUnit.push_back(new NALUnitEBSP(nalu)); -
trunk/source/Lib/TLibEncoder/TEncSbac.cpp
r1124 r1133 255 255 curCost += m_CUTransquantBypassFlagSCModel.calcCost( curSliceType, qp, (UChar*)INIT_CU_TRANSQUANT_BYPASS_FLAG ); 256 256 #if H_3D_DIM 257 #if HHI_TOOL_PARAMETERS_I2_J0107258 257 if( m_pcSlice->getIntraSdcWedgeFlag() || m_pcSlice->getIntraContourFlag() ) 259 #else260 if( m_pcSlice->getVpsDepthModesFlag() || m_pcSlice->getIVPFlag() )261 #endif262 258 { 263 259 curCost += m_cDepthIntraModeSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_DEPTH_INTRA_MODE ); … … 350 346 } 351 347 352 #if HHI_TOOL_PARAMETERS_I2_J0107353 348 Void TEncSbac::codeSPS( TComSPS* pcSPS ) 354 #else355 #if H_3D356 Void TEncSbac::codeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag )357 #else358 Void TEncSbac::codeSPS( TComSPS* pcSPS )359 #endif360 #endif361 349 { 362 350 assert (0); … … 633 621 PartSize eSize = pcCU->getPartitionSize( uiAbsPartIdx ); 634 622 #if H_3D_QTLPC 635 #if HHI_TOOL_PARAMETERS_I2_J0107636 623 Bool bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag(); 637 #else638 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS();639 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId());640 #endif641 624 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 642 625 Bool bDepthMapDetect = (pcTexture != NULL); … … 1011 994 1012 995 1013 #if HHI_TOOL_PARAMETERS_I2_J01071014 996 Bool bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag(); 1015 #else1016 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS();1017 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId());1018 #endif1019 997 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 1020 998 Bool bDepthMapDetect = (pcTexture != NULL); … … 1077 1055 dir[j] = pcCU->getLumaIntraDir( absPartIdx+partOffset*j ); 1078 1056 #if H_3D_DIM 1079 #if HHI_TOOL_PARAMETERS_I2_J01071080 1057 if( pcCU->getSlice()->getIntraSdcWedgeFlag() || pcCU->getSlice()->getIntraContourFlag() ) 1081 #else1082 if( pcCU->getSlice()->getVpsDepthModesFlag() || pcCU->getSlice()->getIVPFlag() )1083 #endif1084 1058 { 1085 1059 codeIntraDepth( pcCU, absPartIdx+partOffset*j ); … … 1227 1201 } 1228 1202 //mode coding 1229 #if HHI_TOOL_PARAMETERS_I2_J01071230 1203 if( pcCU->getSlice()->getIntraSdcWedgeFlag() && pcCU->getSlice()->getIntraContourFlag()) 1231 #else1232 if( pcCU->getSlice()->getVpsDepthModesFlag() && pcCU->getSlice()->getIVPFlag())1233 #endif1234 1204 { 1235 1205 m_pcBinIf->encodeBin( uiCodeIdx == 0 ? 0 : 1, m_cDepthIntraModeSCModel.get( 0, 0, 0 ) ); … … 2330 2300 PartSize ePartSize = pcCU->getPartitionSize( uiAbsPartIdx ); 2331 2301 AOF( ePartSize == SIZE_2NxN || ePartSize == SIZE_Nx2N ); 2332 #if HHI_TOOL_PARAMETERS_I2_J01072333 2302 AOF( pcCU->getSlice()->getDepthBasedBlkPartFlag() ); 2334 #else2335 AOF( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) );2336 #endif2337 2303 AOF( !pcCU->getSlice()->getIsDepth() ); 2338 2304 -
trunk/source/Lib/TLibEncoder/TEncSbac.h
r1124 r1133 94 94 95 95 Void codeVPS ( TComVPS* pcVPS ); 96 #if HHI_TOOL_PARAMETERS_I2_J010797 96 Void codeSPS ( TComSPS* pcSPS ); 98 #else99 #if !H_3D100 Void codeSPS ( TComSPS* pcSPS );101 #else102 Void codeSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag );103 #endif104 #endif105 97 Void codePPS ( TComPPS* pcPPS ); 106 98 Void codeSliceHeader ( TComSlice* pcSlice ); -
trunk/source/Lib/TLibEncoder/TEncSearch.cpp
r1124 r1133 2881 2881 Int index=0; 2882 2882 Pel testDepth; 2883 #if SINGLE_DEPTH_SIMP_J01152884 2883 Pel DepthNeighbours[2]; 2885 #else2886 Pel DepthNeighbours[5];2887 #endif2888 2884 //construction of depth candidates 2889 #if SINGLE_DEPTH_SIMP_J01152890 2885 for( Int i = 0; (i < 2) && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ ) 2891 #else2892 for( Int i = 0; (i < 5) && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ )2893 #endif2894 2886 { 2895 2887 if(!pcCU->getNeighDepth (0, 0, &testDepth, i)) … … 2899 2891 DepthNeighbours[index]=testDepth; 2900 2892 index++; 2901 #if !SINGLE_DEPTH_SIMP_J01152902 for(Int j=0;j<index-1;j++)2903 {2904 if( (DepthNeighbours[index-1]==DepthNeighbours[j]))2905 {2906 index--;2907 break;2908 }2909 }2910 #endif2911 2893 } 2912 2894 … … 3132 3114 if( m_pcEncCfg->getIsDepth() && uiWidth >= DIM_MIN_SIZE && uiWidth <= DIM_MAX_SIZE && uiWidth == uiHeight ) 3133 3115 { 3134 #if HHI_TOOL_PARAMETERS_I2_J0107 3116 #if TICKET083_IVPFLAG_FIX 3117 if( bOnlyIVP ) 3118 #else 3135 3119 if( bOnlyIVP && pcCU->getSlice()->getIntraContourFlag() ) 3136 #else3137 if( bOnlyIVP && m_pcEncCfg->getUseIVP() )3138 3120 #endif 3139 3121 { … … 3158 3140 3159 3141 #if H_3D_DIM_DMM 3160 #if HHI_TOOL_PARAMETERS_I2_J01073161 3142 if( ( ( m_pcEncCfg->getUseDMM() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) || pcCU->getSlice()->getIntraContourFlag() ) 3162 #else3163 if( ( m_pcEncCfg->getUseDMM() || m_pcEncCfg->getUseIVP() )3164 #endif3165 3143 #if H_3D_FAST_DEPTH_INTRA 3166 3144 && (uiRdModeList[0] != PLANAR_IDX || varCU >= varThreshold) … … 3169 3147 { 3170 3148 UInt uiStart, uiEnd; 3171 #if HHI_TOOL_PARAMETERS_I2_J01073172 3149 if( ( m_pcEncCfg->getUseDMM() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSlice()->getIntraContourFlag() ) 3173 #else3174 if( m_pcEncCfg->getUseDMM() && m_pcEncCfg->getUseIVP() )3175 #endif3176 3150 { 3177 3151 uiStart = 0; 3178 3152 uiEnd = 2; 3179 3153 } 3180 #if HHI_TOOL_PARAMETERS_I2_J01073181 3154 else if( ( m_pcEncCfg->getUseDMM() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) ) 3182 #else3183 else if( m_pcEncCfg->getUseDMM() )3184 #endif3185 3155 { 3186 3156 uiStart = 0; 3187 3157 uiEnd = 1; 3188 3158 } 3189 #if HHI_TOOL_PARAMETERS_I2_J01073190 3159 else if( pcCU->getSlice()->getIntraContourFlag() ) 3191 #else3192 else if( m_pcEncCfg->getUseIVP() )3193 #endif3194 3160 { 3195 3161 uiStart = 1; … … 3329 3295 #if H_3D_DIM_SDC 3330 3296 #if H_3D_FAST_INTRA_SDC 3331 #if HHI_TOOL_PARAMETERS_I2_J01073332 3297 Bool bTestSDC = ( ( m_pcEncCfg->getUseSDC() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD); 3333 #else3334 Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD);3335 #endif3336 3298 #else 3337 3299 Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) ); … … 4177 4139 } 4178 4140 #endif 4179 #if !LGE_DDD_REMOVAL_J0042_J00304180 #if H_3D_DDD4181 if( uiMergeCand == pcCU->getUseDDDCandIdx() )4182 {4183 pcCU->setUseDDD( true, uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );4184 pcCU->setDDDepthSubParts( pcCU->getDDTmpDepth(), uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );4185 }4186 else4187 {4188 pcCU->setUseDDD( false, uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );4189 }4190 #endif4191 #endif4192 4141 4193 4142 xGetInterPredictionError( pcCU, pcYuvOrg, iPUIdx, uiCostCand, m_pcEncCfg->getUseHADME() ); … … 4875 4824 #if H_3D_VSP 4876 4825 pcCU->setVSPFlagSubParts( vspFlag[uiMRGIndex], uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4877 #endif4878 #if !LGE_DDD_REMOVAL_J0042_J00304879 #if H_3D_DDD4880 if( uiMRGIndex == pcCU->getUseDDDCandIdx() )4881 {4882 assert( vspFlag[uiMRGIndex] == 0 );4883 assert( bSPIVMPFlag[uiMRGIndex] == 0 );4884 pcCU->setUseDDD( true, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );4885 pcCU->setDDDepthSubParts( pcCU->getDDTmpDepth(), uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );4886 }4887 else4888 {4889 pcCU->setUseDDD( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );4890 }4891 #endif4892 4826 #endif 4893 4827 #if H_3D_SPIVMP … … 4967 4901 pcCU->setSPIVMPFlagSubParts(0, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4968 4902 #endif 4969 #if !LGE_DDD_REMOVAL_J0042_J00304970 #if H_3D_DDD4971 pcCU->setUseDDD( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );4972 #endif4973 #endif4974 4903 // set ME result 4975 4904 pcCU->setMergeFlagSubParts( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); … … 5353 5282 #endif 5354 5283 #if H_3D_INTER_SDC 5355 #if HHI_TOOL_PARAMETERS_I2_J01075356 5284 pcPatternKey->setSDCMRSADFlag( pcCU->getSlice()->getInterSdcFlag() ); 5357 #else5358 if ( pcCU->getSlice()->getIsDepth() && pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) )5359 {5360 pcPatternKey->setSDCMRSADFlag( true );5361 }5362 else5363 {5364 pcPatternKey->setSDCMRSADFlag( false );5365 }5366 #endif5367 5285 #endif 5368 5286 -
trunk/source/Lib/TLibEncoder/TEncSlice.cpp
r1124 r1133 215 215 rpcSlice->setPicOutputFlag( true ); 216 216 rpcSlice->setPOC( pocCurr ); 217 #if HHI_TOOL_PARAMETERS_I2_J0107218 217 #if H_3D 219 218 rpcSlice->init3dToolParameters(); 220 #endif221 219 #endif 222 220 #if H_3D_IC … … 613 611 rpcSlice->setSliceSegmentArgument ( m_pcCfg->getSliceSegmentArgument() ); 614 612 #if H_3D_IV_MERGE 615 #if HHI_TOOL_PARAMETERS_I2_J0107616 #if ALGIN_J0107_J0059617 613 rpcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() + ( ( rpcSlice->getMpiFlag( ) || rpcSlice->getIvMvPredFlag( ) || rpcSlice->getViewSynthesisPredFlag( ) ) ? 1 : 0 )); 618 #else619 rpcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() + ( ( rpcSlice->getMpiFlag( ) || rpcSlice->getIvMvPredFlag( ) ) ? 1 : 0 ));620 #endif621 #else622 if(rpcSlice->getIsDepth())623 {624 rpcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() + ( ( rpcSlice->getVPS()->getMPIFlag( rpcSlice->getLayerIdInVps() ) || rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ) ? 1 : 0 ) );625 }626 else627 {628 #if MTK_MRG_LIST_SIZE_CLEANUP_J0059629 rpcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() + ( rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) || rpcSlice->getVPS()->getViewSynthesisPredFlag( rpcSlice->getLayerIdInVps() ) ? 1 : 0 ) );630 #else631 rpcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() + ( rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ? 1 : 0 ) );632 #endif633 }634 #endif635 614 #else 636 615 rpcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() ); … … 1028 1007 } 1029 1008 } 1030 #if LGE_DEFAULT_DV_J0046 && !SEC_ARP_VIEW_REF_CHECK_J0037 && !SEC_DBBP_VIEW_REF_CHECK_J00371031 pcSlice->setDefaultRefViewIdx( -1 );1032 pcSlice->setDefaultRefViewIdxAvailableFlag( false );1033 1034 Int valid = 0;1035 Int viewIndex = 0;1036 for( UInt uiBId = 0; uiBId < pcSlice->getViewIndex() && valid==0; uiBId++ )1037 {1038 UInt uiBaseId = uiBId;1039 TComPic* pcBasePic = pcSlice->getIvPic( false, uiBaseId );1040 for( Int iRefListId = 0; ( iRefListId < (pcSlice->isInterB()? 2:1) ) && !pcSlice->isIntra() && valid==0; iRefListId++ )1041 {1042 RefPicList eRefPicListTest = RefPicList( iRefListId );1043 Int iNumRefPics = pcSlice->getNumRefIdx( eRefPicListTest ) ;1044 for( Int iRefIndex = 0; iRefIndex < iNumRefPics; iRefIndex++ )1045 {1046 if(pcBasePic->getPOC() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getPOC()1047 && pcBasePic->getViewIndex() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getViewIndex())1048 {1049 valid=1;1050 viewIndex = uiBaseId;1051 break;1052 }1053 }1054 }1055 }1056 if( valid )1057 {1058 pcSlice->setDefaultRefViewIdx( viewIndex );1059 pcSlice->setDefaultRefViewIdxAvailableFlag( true );1060 }1061 #endif1062 1009 1063 1010 // for every CU in slice -
trunk/source/Lib/TLibEncoder/TEncSlice.h
r1124 r1133 107 107 UInt m_uiSliceIdx; 108 108 std::vector<TEncSbac*> CTXMem; 109 #if !LGE_DDD_REMOVAL_J0042_J0030110 #if H_3D_DDD111 Int m_iDDDScale;112 Int m_iDDDOffset;113 UInt m_uiDDDPrecision;114 #endif115 #endif116 109 public: 117 110 TEncSlice(); … … 147 140 Void initCtxMem( UInt i ); 148 141 Void setCtxMem( TEncSbac* sb, Int b ) { CTXMem[b] = sb; } 149 #if !LGE_DDD_REMOVAL_J0042_J0030150 #if H_3D_DDD151 Void setDDDPar( Int iScale, Int iOffset, UInt uiPrecision ){ m_iDDDScale = iScale; m_iDDDOffset = iOffset; m_uiDDDPrecision = uiPrecision; }152 #endif153 #endif154 142 155 143 private: -
trunk/source/Lib/TLibEncoder/TEncTop.cpp
r1124 r1133 896 896 #if H_MV 897 897 m_cPPS.setLayerId( getLayerId() ); 898 #if HHI_DEPENDENCY_SIGNALLING_I1_J0107899 898 #if H_3D 900 899 // Check if this condition is still correct 901 900 if( getVPS()->getNumRefListLayers( getLayerId() ) > 0 ) 902 #else903 if( getVPS()->getNumDirectRefLayers( getLayerId() ) > 0 )904 #endif905 901 #else 906 902 if( getVPS()->getNumDirectRefLayers( getLayerId() ) > 0 ) -
trunk/source/Lib/TLibEncoder/TEncTop.h
r1124 r1133 270 270 Void setIvPicLists ( TComPicLists* picLists) { m_ivPicLists = picLists; } 271 271 #endif 272 #if HHI_TOOL_PARAMETERS_I2_J0107273 272 #if H_3D 274 273 Void setSps3dExtension ( TComSps3dExtension sps3dExtension ) { m_cSPS.setSps3dExtension( sps3dExtension ); }; 275 #endif276 274 #endif 277 275 #if H_3D_IC
Note: See TracChangeset for help on using the changeset viewer.