Changeset 1106 in 3DVCSoftware for branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder
- Timestamp:
- 6 Nov 2014, 20:29:09 (10 years ago)
- Location:
- branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncCavlc.cpp
r1103 r1106 638 638 } 639 639 640 #if HHI_TOOL_PARAMETERS_I2_J0107 641 Void TEncCavlc::codeSPS( TComSPS* pcSPS ) 642 #else 640 643 #if H_3D 641 644 Void TEncCavlc::codeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ) 642 645 #else 643 646 Void TEncCavlc::codeSPS( TComSPS* pcSPS ) 647 #endif 644 648 #endif 645 649 { … … 842 846 if ( pcSPS->getSps3dExtensionFlag() ) 843 847 { 848 #if HHI_TOOL_PARAMETERS_I2_J0107 849 codeSPS3dExtension( pcSPS ); 850 #else 844 851 codeSPSExtension2( pcSPS, viewIndex, depthFlag ); 852 #endif 845 853 } 846 854 … … 868 876 869 877 #if H_3D 878 #if HHI_TOOL_PARAMETERS_I2_J0107 879 Void TEncCavlc::codeSPS3dExtension( TComSPS* pcSPS ) 880 { 881 TComSps3dExtension* sps3dExt = pcSPS->getSps3dExtension(); 882 for( Int d = 0; d <= 1; d++ ) 883 { 884 WRITE_FLAG( sps3dExt->getIvMvPredFlag( d ) ? 1 : 0 , "iv_mv_pred_flag" ); 885 WRITE_FLAG( sps3dExt->getIvMvScalingFlag( d ) ? 1 : 0 , "iv_mv_scaling_flag" ); 886 if( d == 0 ) 887 { 888 WRITE_UVLC( sps3dExt->getLog2SubPbSizeMinus3( d ), "log2_sub_pb_size_minus3" ); 889 WRITE_FLAG( sps3dExt->getIvResPredFlag( d ) ? 1 : 0 , "iv_res_pred_flag" ); 890 WRITE_FLAG( sps3dExt->getDepthRefinementFlag( d ) ? 1 : 0 , "depth_refinement_flag" ); 891 WRITE_FLAG( sps3dExt->getViewSynthesisPredFlag( d ) ? 1 : 0 , "view_synthesis_pred_flag" ); 892 WRITE_FLAG( sps3dExt->getDepthBasedBlkPartFlag( d ) ? 1 : 0 , "depth_based_blk_part_flag" ); 893 } 894 else 895 { 896 WRITE_FLAG( sps3dExt->getMpiFlag( d ) ? 1 : 0 , "mpi_flag" ); 897 WRITE_UVLC( sps3dExt->getLog2MpiSubPbSizeMinus3( d ), "log2_mpi_sub_pb_size_minus3" ); 898 WRITE_FLAG( sps3dExt->getIntraContourFlag( d ) ? 1 : 0 , "intra_contour_flag" ); 899 WRITE_FLAG( sps3dExt->getIntraSdcWedgeFlag( d ) ? 1 : 0 , "intra_sdc_wedge_flag" ); 900 WRITE_FLAG( sps3dExt->getQtPredFlag( d ) ? 1 : 0 , "qt_pred_flag" ); 901 WRITE_FLAG( sps3dExt->getInterSdcFlag( d ) ? 1 : 0 , "inter_sdc_flag" ); 902 WRITE_FLAG( sps3dExt->getIntraSingleFlag( d ) ? 1 : 0 , "intra_single_flag" ); 903 } 904 } 905 } 906 #else 870 907 Void TEncCavlc::codeSPSExtension2( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ) 871 908 { 872 909 873 910 } 911 #endif 874 912 #endif 875 913 … … 1577 1615 Void TEncCavlc::codeVPSExtension2( TComVPS* pcVPS ) 1578 1616 { 1617 #if !HHI_TOOL_PARAMETERS_I2_J0107 1579 1618 for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ ) 1580 1619 { … … 1622 1661 } 1623 1662 } 1663 #endif 1624 1664 WRITE_UVLC( pcVPS->getCamParPrecision(), "cp_precision" ); 1625 1665 for (UInt viewIndex=1; viewIndex<pcVPS->getNumViews(); viewIndex++) … … 2088 2128 { 2089 2129 #if H_3D_IV_MERGE 2130 #if HHI_TOOL_PARAMETERS_I2_J0107 2131 WRITE_UVLC( ( ( pcSlice->getMpiFlag( ) || pcSlice->getIvMvPredFlag( ) ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand"); 2132 #else 2090 2133 if(pcSlice->getIsDepth()) 2091 2134 { … … 2099 2142 WRITE_UVLC( ( ivMvPredFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand"); 2100 2143 } 2144 #endif 2101 2145 #else 2102 2146 WRITE_UVLC(MRG_MAX_NUM_CANDS - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand"); -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncCavlc.h
r1084 r1106 100 100 #if H_3D 101 101 Void codeVPSExtension2 ( TComVPS* pcVPS ); 102 #if HHI_TOOL_PARAMETERS_I2_J0107 103 Void codeSPS3dExtension ( TComSPS* pcSPS ); 104 Void codeSPS ( TComSPS* pcSPS ); 105 #else 102 106 Void codeSPSExtension2 ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ); 103 107 Void codeSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ); 108 #endif 104 109 #else 105 110 Void codeSPS ( TComSPS* pcSPS ); -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncCfg.h
r1084 r1106 392 392 Double m_dDispCoeff; 393 393 #endif 394 #if !HHI_TOOL_PARAMETERS_I2_J0107 394 395 #if H_3D_ARP 395 396 UInt m_uiUseAdvResPred; … … 400 401 Int m_iSubPUMPILog2Size; 401 402 #endif 403 #endif 402 404 #if H_3D_IC 403 405 Bool m_bUseIC; 404 406 Bool m_bUseICLowLatencyEnc; 405 407 #endif 408 #if !HHI_TOOL_PARAMETERS_I2_J0107 406 409 #if H_3D_INTER_SDC 407 410 bool m_bInterSDC; … … 409 412 #if H_3D_DBBP 410 413 Bool m_bUseDBBP; 414 #endif 411 415 #endif 412 416 //====== Depth Intra Modes ====== 413 417 #if H_3D_DIM 414 418 Bool m_useDMM; 419 #if !HHI_TOOL_PARAMETERS_I2_J0107 415 420 Bool m_useIVP; 421 #endif 416 422 Bool m_useSDC; 417 423 Bool m_useDLT; 418 424 #endif 425 #if !HHI_TOOL_PARAMETERS_I2_J0107 419 426 #if H_3D_SINGLE_DEPTH 420 427 Bool m_useSingleDepthMode; 421 428 #endif 429 422 430 #if H_3D_IV_MERGE 423 431 Bool m_useMPI; 432 #endif 424 433 #endif 425 434 #if H_3D_QTLPC … … 497 506 Void setMaxTempLayer ( Int maxTempLayer ) { m_maxTempLayer = maxTempLayer; } 498 507 508 #if !HHI_TOOL_PARAMETERS_I2_J0107 499 509 #if H_3D_ARP 500 510 UInt getUseAdvRP ( ) { return m_uiUseAdvResPred; } … … 510 520 Void setSubPUMPILog2Size (Int u) { m_iSubPUMPILog2Size = u; } 511 521 #endif 522 #endif 512 523 #if H_3D_IC 513 524 Void setUseIC ( Bool bVal ) { m_bUseIC = bVal; } … … 516 527 Bool getUseICLowLatencyEnc () { return m_bUseICLowLatencyEnc; } 517 528 #endif 529 #if !HHI_TOOL_PARAMETERS_I2_J0107 518 530 #if H_3D_INTER_SDC 519 531 Void setInterSDCEnable ( Bool bVal ) { m_bInterSDC = bVal; } … … 523 535 Void setUseDBBP ( Bool b ) { m_bUseDBBP = b; } 524 536 Bool getUseDBBP() { return m_bUseDBBP; } 537 #endif 525 538 #endif 526 539 //======== Transform ============= … … 932 945 Void setFrameOnlyConstraintFlag(Bool b) { m_frameOnlyConstraintFlag = b; } 933 946 #if H_3D 947 948 // Only flags that are not in the SPS3dExtension should go here. 934 949 /// 3D Tools 935 950 … … 976 991 Bool getUseDMM () { return m_useDMM; } 977 992 Void setUseDMM ( Bool b) { m_useDMM = b; } 993 #if !HHI_TOOL_PARAMETERS_I2_J0107 978 994 Bool getUseIVP () { return m_useIVP; } 979 995 Void setUseIVP ( Bool b) { m_useIVP = b; } 996 #endif 980 997 Bool getUseSDC () { return m_useSDC; } 981 998 Void setUseSDC ( Bool b) { m_useSDC = b; } 999 982 1000 Bool getUseDLT () { return m_useDLT; } 983 1001 Void setUseDLT ( Bool b) { m_useDLT = b; } 984 1002 #endif 1003 #if !HHI_TOOL_PARAMETERS_I2_J0107 985 1004 #if H_3D_SINGLE_DEPTH 986 1005 Void setUseSingleDepthMode ( Bool bVal ) { m_useSingleDepthMode = bVal; } 987 1006 Bool getUseSingleDepthMode () { return m_useSingleDepthMode; } 988 1007 #endif 1008 #endif 989 1009 #if H_3D_QTLPC 990 1010 Void setUseQTL ( Bool b ) { m_bUseQTL = b; } 991 1011 Bool getUseQTL () { return m_bUseQTL; } 992 1012 #endif 1013 #if !HHI_TOOL_PARAMETERS_I2_J0107 993 1014 #if H_3D_IV_MERGE 994 1015 Void setUseMPI ( Bool b ) { m_useMPI = b; } 995 1016 Bool getUseMPI () { return m_useMPI; } 996 1017 #endif 1018 #endif 997 1019 #endif // H_3D 998 1020 }; -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncCu.cpp
r1100 r1106 410 410 #if H_3D_QTLPC 411 411 TComVPS *vps = pcPic->getSlice(0)->getVPS(); 412 #if HHI_TOOL_PARAMETERS_I2_J0107 413 Bool bLimQtPredFalg = pcPic->getSlice(0)->getQtPredFlag(); 414 #else 412 415 Bool bLimQtPredFalg = vps->getLimQtPredFlag(pcPic->getSlice(0)->getLayerId()); 416 #endif 413 417 TComPic *pcTexture = rpcBestCU->getSlice()->getTexturePic(); 414 418 … … 566 570 { 567 571 #if H_3D_ARP && H_3D_IV_MERGE 572 #if HHI_TOOL_PARAMETERS_I2_J0107 573 if( rpcTempCU->getSlice()->getIvResPredFlag() || rpcTempCU->getSlice()->getIvMvPredFlag() ) 574 #else 568 575 if( rpcTempCU->getSlice()->getVPS()->getUseAdvRP(rpcTempCU->getSlice()->getLayerId()) || rpcTempCU->getSlice()->getVPS()->getIvMvPredFlag(rpcTempCU->getSlice()->getLayerId()) ) 576 #endif 569 577 #else 570 578 #if H_3D_ARP … … 590 598 #endif 591 599 #if H_3D_NBDV_REF 600 #if HHI_TOOL_PARAMETERS_I2_J0107 601 if( rpcTempCU->getSlice()->getDepthRefinementFlag() ) 602 #else 592 603 if(rpcTempCU->getSlice()->getVPS()->getDepthRefinementFlag( rpcTempCU->getSlice()->getLayerIdInVps())) 604 #endif 593 605 DvInfo.bDV = rpcTempCU->getDisMvpCandNBDV(&DvInfo, true); 594 606 else … … 673 685 #if H_3D_DBBP 674 686 #if SEC_DBBP_VIEW_REF_CHECK_J0037 687 #if HHI_TOOL_PARAMETERS_I2_J0107 688 if( rpcTempCU->getSlice()->getDepthBasedBlkPartFlag() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() ) 689 #else 675 690 if( m_pcEncCfg->getUseDBBP() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() ) 691 #endif 676 692 #else 677 693 if( m_pcEncCfg->getUseDBBP() ) … … 2032 2048 xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth); 2033 2049 #if H_3D_INTER_SDC 2050 #if HHI_TOOL_PARAMETERS_I2_J0107 2051 if( rpcTempCU->getSlice()->getInterSdcFlag() && !uiNoResidual ) 2052 #else 2034 2053 if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) && rpcTempCU->getSlice()->getIsDepth() && !uiNoResidual ) 2054 #endif 2035 2055 { 2036 2056 Double dOffsetCost[3] = {MAX_DOUBLE,MAX_DOUBLE,MAX_DOUBLE}; … … 2104 2124 { 2105 2125 #if H_3D_INTER_SDC 2126 #if HHI_TOOL_PARAMETERS_I2_J0107 2127 if( rpcTempCU->getSlice()->getInterSdcFlag() ) 2128 #else 2106 2129 if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) ) 2130 #endif 2107 2131 { 2108 2132 bestIsSkip = !rpcBestCU->getSDCFlag( 0 ) && ( rpcBestCU->getQtRootCbf(0) == 0 ); … … 2191 2215 for( Int nARPW = 0; nARPW <= nARPWMax; nARPW++ ) 2192 2216 { 2217 #if HHI_TOOL_PARAMETERS_I2_J0107 2218 if( !bFirstTime && rpcTempCU->getSlice()->getIvResPredFlag() ) 2219 #else 2193 2220 if( bFirstTime == false && rpcTempCU->getSlice()->getVPS()->getUseAdvRP( iLayerId ) ) 2221 #endif 2194 2222 { 2195 2223 rpcTempCU->initEstData( rpcTempCU->getDepth(0), rpcTempCU->getQP(0),bTransquantBypassFlag ); … … 2297 2325 xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth); 2298 2326 #if H_3D_INTER_SDC 2327 #if HHI_TOOL_PARAMETERS_I2_J0107 2328 if( rpcTempCU->getSlice()->getInterSdcFlag() && ePartSize == SIZE_2Nx2N) 2329 #else 2299 2330 if( rpcTempCU->getSlice()->getVPS()->getInterSDCFlag( rpcTempCU->getSlice()->getLayerIdInVps() ) && rpcTempCU->getSlice()->getIsDepth() && ePartSize == SIZE_2Nx2N) 2331 #endif 2300 2332 { 2301 2333 Double dOffsetCost[3] = {MAX_DOUBLE,MAX_DOUBLE,MAX_DOUBLE}; -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncEntropy.cpp
r1100 r1106 78 78 } 79 79 80 #if HHI_TOOL_PARAMETERS_I2_J0107 81 Void TEncEntropy::encodeSPS( TComSPS* pcSPS ) 82 { 83 m_pcEntropyCoderIf->codeSPS( pcSPS ); 84 return; 85 } 86 #else 80 87 #if H_3D 81 88 Void TEncEntropy::encodeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ) … … 90 97 return; 91 98 } 99 #endif 92 100 #endif 93 101 … … 269 277 #if H_3D_DBBP 270 278 #if SEC_DBBP_VIEW_REF_CHECK_J0037 279 #if HHI_TOOL_PARAMETERS_I2_J0107 280 if( pcCU->getSlice()->getDepthBasedBlkPartFlag() && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 && pcCU->getSlice()->getDefaultRefViewIdxAvailableFlag() ) 281 #else 271 282 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() ) 283 #endif 272 284 #else 273 285 if( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) && (pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2NxN || pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_Nx2N) && pcCU->getWidth(uiAbsPartIdx) > 8 ) … … 784 796 Void TEncEntropy::encodeSDCFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) 785 797 { 798 #if HHI_TOOL_PARAMETERS_I2_J0107 799 if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getInterSdcFlag() ) || 800 ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getIntraSdcWedgeFlag() ) ) 801 #else 786 802 if( ( !pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) ) || 787 803 ( pcCU->isIntra( uiAbsPartIdx ) && !pcCU->getSlice()->getVPS()->getVpsDepthModesFlag( pcCU->getSlice()->getLayerIdInVps() ) ) ) 804 #endif 788 805 { 789 806 return; -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncEntropy.h
r1084 r1106 69 69 70 70 virtual Void codeVPS ( TComVPS* pcVPS ) = 0; 71 #if HHI_TOOL_PARAMETERS_I2_J0107 72 virtual Void codeSPS ( TComSPS* pcSPS ) = 0; 73 #else 71 74 #if !H_3D 72 75 virtual Void codeSPS ( TComSPS* pcSPS ) = 0; 73 76 #else 74 77 virtual Void codeSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ) = 0; 78 #endif 75 79 #endif 76 80 virtual Void codePPS ( TComPPS* pcPPS ) = 0; … … 165 169 Void encodeVPS ( TComVPS* pcVPS); 166 170 // SPS 171 #if HHI_TOOL_PARAMETERS_I2_J0107 172 Void encodeSPS ( TComSPS* pcSPS ); 173 #else 167 174 #if H_3D 168 175 Void encodeSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ); 169 176 #else 170 177 Void encodeSPS ( TComSPS* pcSPS ); 178 #endif 171 179 #endif 172 180 Void encodePPS ( TComPPS* pcPPS ); -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncGOP.cpp
r1103 r1106 958 958 #endif 959 959 #if H_3D_SINGLE_DEPTH 960 #if HHI_TOOL_PARAMETERS_I2_J0107 961 pcSlice->setApplySingleDepthMode( pcSlice->getIntraSingleFlag() ); 962 #else 960 963 TEncTop* pcEncTop = (TEncTop*) m_pcCfg; 961 964 bool enableSingleDepthMode=false; … … 968 971 } 969 972 pcSlice->setApplySingleDepthMode(enableSingleDepthMode); 973 #endif 970 974 #endif 971 975 #if SEC_ARP_VIEW_REF_CHECK_J0037 || SEC_DBBP_VIEW_REF_CHECK_J0037 … … 1433 1437 pcSlice->getSPS()->getVuiParameters()->setHrdParametersPresentFlag( true ); 1434 1438 } 1439 #if HHI_TOOL_PARAMETERS_I2_J0107 1440 m_pcEntropyCoder->encodeSPS(pcSlice->getSPS()); 1441 #else 1435 1442 #if !H_3D 1436 1443 m_pcEntropyCoder->encodeSPS(pcSlice->getSPS()); 1437 1444 #else 1438 1445 m_pcEntropyCoder->encodeSPS(pcSlice->getSPS(), pcSlice->getViewIndex(), pcSlice->getIsDepth() ); 1446 #endif 1439 1447 #endif 1440 1448 writeRBSPTrailingBits(nalu.m_Bitstream); -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncSbac.cpp
r1084 r1106 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_J0107 258 if( m_pcSlice->getIntraSdcWedgeFlag() || m_pcSlice->getIntraContourFlag() ) 259 #else 257 260 if( m_pcSlice->getVpsDepthModesFlag() || m_pcSlice->getIVPFlag() ) 261 #endif 258 262 { 259 263 curCost += m_cDepthIntraModeSCModel.calcCost ( curSliceType, qp, (UChar*)INIT_DEPTH_INTRA_MODE ); … … 346 350 } 347 351 352 #if HHI_TOOL_PARAMETERS_I2_J0107 353 Void TEncSbac::codeSPS( TComSPS* pcSPS ) 354 #else 348 355 #if H_3D 349 356 Void TEncSbac::codeSPS( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ) 350 357 #else 351 358 Void TEncSbac::codeSPS( TComSPS* pcSPS ) 359 #endif 352 360 #endif 353 361 { … … 626 634 #if H_3D_QTLPC 627 635 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS(); 636 #if HHI_TOOL_PARAMETERS_I2_J0107 637 Bool bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag(); 638 #else 628 639 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId()); 640 #endif 629 641 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 630 642 Bool bDepthMapDetect = (pcTexture != NULL); … … 999 1011 1000 1012 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS(); 1013 #if HHI_TOOL_PARAMETERS_I2_J0107 1014 Bool bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag(); 1015 #else 1001 1016 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId()); 1017 #endif 1002 1018 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 1003 1019 Bool bDepthMapDetect = (pcTexture != NULL); … … 1060 1076 dir[j] = pcCU->getLumaIntraDir( absPartIdx+partOffset*j ); 1061 1077 #if H_3D_DIM 1078 #if HHI_TOOL_PARAMETERS_I2_J0107 1079 if( pcCU->getSlice()->getIntraSdcWedgeFlag() || pcCU->getSlice()->getIntraContourFlag() ) 1080 #else 1062 1081 if( pcCU->getSlice()->getVpsDepthModesFlag() || pcCU->getSlice()->getIVPFlag() ) 1082 #endif 1063 1083 { 1064 1084 codeIntraDepth( pcCU, absPartIdx+partOffset*j ); … … 1206 1226 } 1207 1227 //mode coding 1228 #if HHI_TOOL_PARAMETERS_I2_J0107 1229 if( pcCU->getSlice()->getIntraSdcWedgeFlag() && pcCU->getSlice()->getIntraContourFlag()) 1230 #else 1208 1231 if( pcCU->getSlice()->getVpsDepthModesFlag() && pcCU->getSlice()->getIVPFlag()) 1232 #endif 1209 1233 { 1210 1234 m_pcBinIf->encodeBin( uiCodeIdx == 0 ? 0 : 1, m_cDepthIntraModeSCModel.get( 0, 0, 0 ) ); … … 2305 2329 PartSize ePartSize = pcCU->getPartitionSize( uiAbsPartIdx ); 2306 2330 AOF( ePartSize == SIZE_2NxN || ePartSize == SIZE_Nx2N ); 2331 #if HHI_TOOL_PARAMETERS_I2_J0107 2332 AOF( pcCU->getSlice()->getDepthBasedBlkPartFlag() ); 2333 #else 2307 2334 AOF( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) ); 2335 #endif 2308 2336 AOF( !pcCU->getSlice()->getIsDepth() ); 2309 2337 -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncSbac.h
r1084 r1106 94 94 95 95 Void codeVPS ( TComVPS* pcVPS ); 96 #if HHI_TOOL_PARAMETERS_I2_J0107 97 Void codeSPS ( TComSPS* pcSPS ); 98 #else 96 99 #if !H_3D 97 100 Void codeSPS ( TComSPS* pcSPS ); 98 101 #else 99 102 Void codeSPS ( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ); 103 #endif 100 104 #endif 101 105 Void codePPS ( TComPPS* pcPPS ); -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncSearch.cpp
r1094 r1106 3117 3117 } 3118 3118 #endif 3119 3119 3120 3120 #if H_3D_DIM 3121 3121 //===== determine set of depth intra modes to be tested ===== 3122 3122 if( m_pcEncCfg->getIsDepth() && uiWidth >= DIM_MIN_SIZE && uiWidth <= DIM_MAX_SIZE && uiWidth == uiHeight ) 3123 3123 { 3124 #if HHI_TOOL_PARAMETERS_I2_J0107 3125 if( bOnlyIVP && pcCU->getSlice()->getIntraContourFlag() ) 3126 #else 3124 3127 if( bOnlyIVP && m_pcEncCfg->getUseIVP() ) 3128 #endif 3125 3129 { 3126 3130 TComWedgelet* dmm4Segmentation = new TComWedgelet( uiWidth, uiHeight ); … … 3144 3148 3145 3149 #if H_3D_DIM_DMM 3150 #if HHI_TOOL_PARAMETERS_I2_J0107 3151 if( ( ( m_pcEncCfg->getUseDMM() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) || pcCU->getSlice()->getIntraContourFlag() ) 3152 #else 3146 3153 if( ( m_pcEncCfg->getUseDMM() || m_pcEncCfg->getUseIVP() ) 3154 #endif 3147 3155 #if H_3D_FAST_DEPTH_INTRA 3148 3156 && (uiRdModeList[0] != PLANAR_IDX || varCU >= varThreshold) … … 3151 3159 { 3152 3160 UInt uiStart, uiEnd; 3161 #if HHI_TOOL_PARAMETERS_I2_J0107 3162 if( ( m_pcEncCfg->getUseDMM() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSlice()->getIntraContourFlag() ) 3163 #else 3153 3164 if( m_pcEncCfg->getUseDMM() && m_pcEncCfg->getUseIVP() ) 3165 #endif 3154 3166 { 3155 3167 uiStart = 0; 3156 3168 uiEnd = 2; 3157 3169 } 3170 #if HHI_TOOL_PARAMETERS_I2_J0107 3171 else if( ( m_pcEncCfg->getUseDMM() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) ) 3172 #else 3158 3173 else if( m_pcEncCfg->getUseDMM() ) 3174 #endif 3159 3175 { 3160 3176 uiStart = 0; 3161 3177 uiEnd = 1; 3162 3178 } 3179 #if HHI_TOOL_PARAMETERS_I2_J0107 3180 else if( pcCU->getSlice()->getIntraContourFlag() ) 3181 #else 3163 3182 else if( m_pcEncCfg->getUseIVP() ) 3183 #endif 3164 3184 { 3165 3185 uiStart = 1; … … 3299 3319 #if H_3D_DIM_SDC 3300 3320 #if H_3D_FAST_INTRA_SDC 3301 Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD);3321 Bool bTestSDC = ( ( m_pcEncCfg->getUseSDC() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD); 3302 3322 #else 3303 3323 Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) ); … … 5319 5339 #endif 5320 5340 #if H_3D_INTER_SDC 5341 #if HHI_TOOL_PARAMETERS_I2_J0107 5342 pcPatternKey->setSDCMRSADFlag( pcCU->getSlice()->getInterSdcFlag() ); 5343 #else 5321 5344 if ( pcCU->getSlice()->getIsDepth() && pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) ) 5322 5345 { … … 5327 5350 pcPatternKey->setSDCMRSADFlag( false ); 5328 5351 } 5352 #endif 5329 5353 #endif 5330 5354 -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncSlice.cpp
r1100 r1106 215 215 rpcSlice->setPicOutputFlag( true ); 216 216 rpcSlice->setPOC( pocCurr ); 217 #if HHI_TOOL_PARAMETERS_I2_J0107 218 #if H_3D 219 rpcSlice->init3dToolParameters(); 220 #endif 221 #endif 217 222 #if H_3D_IC 218 223 rpcSlice->setApplyIC( false ); … … 608 613 rpcSlice->setSliceSegmentArgument ( m_pcCfg->getSliceSegmentArgument() ); 609 614 #if H_3D_IV_MERGE 615 #if HHI_TOOL_PARAMETERS_I2_J0107 616 rpcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() + ( ( rpcSlice->getMpiFlag( ) || rpcSlice->getIvMvPredFlag( ) ) ? 1 : 0 )); 617 #else 610 618 if(rpcSlice->getIsDepth()) 611 619 { … … 616 624 rpcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() + ( rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ? 1 : 0 ) ); 617 625 } 626 #endif 618 627 #else 619 628 rpcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() ); -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncTop.cpp
r1103 r1106 534 534 Void TEncTop::encode(Bool flush, TComPicYuv* pcPicYuvOrg, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsOut, Int& iNumEncoded, bool isTff, Int gopId ) 535 535 { 536 assert( 0 ); // Field coding and multiview need to be fur hter harmonized.536 assert( 0 ); // Field coding and multiview need to be further harmonized. 537 537 } 538 538 #else -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncTop.h
r1084 r1106 270 270 Void setIvPicLists ( TComPicLists* picLists) { m_ivPicLists = picLists; } 271 271 #endif 272 #if HHI_TOOL_PARAMETERS_I2_J0107 273 #if H_3D 274 Void setSps3dExtension ( TComSps3dExtension sps3dExtension ) { m_cSPS.setSps3dExtension( sps3dExtension ); }; 275 #endif 276 #endif 272 277 #if H_3D_IC 273 278 Void setICEnableCandidate ( Int* ICEnableCandidate) { m_aICEnableCandidate = ICEnableCandidate; }
Note: See TracChangeset for help on using the changeset viewer.