Changeset 724 in 3DVCSoftware for trunk/source/App/TAppEncoder
- Timestamp:
- 30 Nov 2013, 12:29:49 (11 years ago)
- Location:
- trunk/source/App/TAppEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/TAppEncoder/TAppEncCfg.cpp
r655 r724 378 378 #if H_3D_DIM 379 379 ("DMM", m_useDMM, true, "Depth intra model modes") 380 #if !SEC_DMM3_RBC_F0147 380 381 ("RBC", m_useRBC, true, "Region boundary chain mode") 382 #endif 381 383 ("SDC", m_useSDC, true, "Simplified depth coding") 382 384 ("DLT", m_useDLT, true, "Depth lookup table") … … 508 510 ("AdvMultiviewResPred", m_uiUseAdvResPred, (UInt)1, "Usage of Advanced Residual Prediction" ) 509 511 #endif 512 #if MTK_SPIVMP_F0110 513 ("SubPULog2Size", m_iSubPULog2Size, (Int)3, "Sub-PU size index: 2^n") 514 #endif 515 510 516 #if H_3D_IC 517 #if SEC_ONLY_TEXTURE_IC_F0151 518 ("IlluCompEnable", m_abUseIC, true, "Enable illumination compensation") 519 #else 511 520 ("IlluCompEnable", m_abUseIC, std::vector<Bool>(2, true), "Enable illumination compensation") 521 #endif 512 522 #endif 513 523 #if H_3D_INTER_SDC 514 524 ("InterSDC", m_bDepthInterSDCFlag, true, "Enable depth inter SDC") 525 #endif 526 #if SEC_MPI_ENABLING_MERGE_F0150 527 ("MPI", m_bMPIFlag, true, "Enable MPI") 515 528 #endif 516 529 // Coding tools … … 750 763 #endif 751 764 #if H_3D_IV_MERGE 765 #if QC_DEPTH_IV_MRG_F0125 766 ("IvMvPred", m_ivMvPredFlag , std::vector<Bool>(2, true) , "inter view motion prediction " ) 767 #else 752 768 ("IvMvPred", m_ivMvPredFlag, true , "inter view motion prediction " ) 769 #endif 753 770 #endif 754 771 #if H_3D_NBDV_REF … … 1473 1490 #if H_3D_ARP 1474 1491 xConfirmPara( ( 0 != m_uiUseAdvResPred ) && ( 1 != m_uiUseAdvResPred ), "UseAdvResPred must be 0 or 1." ); 1492 #endif 1493 #if MTK_SPIVMP_F0110 1494 xConfirmPara( m_iSubPULog2Size < 2, "SubPULog2Size must be 2 or greater."); 1495 xConfirmPara( m_iSubPULog2Size > 6, "SubPULog2Size must be 6 or smaller."); 1496 xConfirmPara( (1<<m_iSubPULog2Size) > m_uiMaxCUWidth, "SubPULog2Size must be log2(maxCUSize) or smaller."); 1475 1497 #endif 1476 1498 #if ADAPTIVE_QP_SELECTION … … 2414 2436 #endif 2415 2437 #if H_3D_IV_MERGE 2438 #if QC_DEPTH_IV_MRG_F0125 2439 printf("IvMvPred:%d %d", m_ivMvPredFlag[0] ? 1 : 0, m_ivMvPredFlag[1] ? 1 : 0); 2440 #else 2416 2441 printf("IvMvPred:%d ", m_ivMvPredFlag ); 2442 #endif 2443 #if MTK_SPIVMP_F0110 2444 printf(" SubPULog2Size:%d " , m_iSubPULog2Size ); 2445 #endif 2417 2446 #endif 2418 2447 #if H_3D_ARP … … 2420 2449 #endif 2421 2450 #if H_3D_IC 2451 #if SEC_ONLY_TEXTURE_IC_F0151 2452 printf( "IlluCompEnable: %d ", m_abUseIC); 2453 #else 2422 2454 printf( "IlluCompEnable: %d %d ", m_abUseIC[0] ? 1 : 0, m_abUseIC[1] ? 1 : 0 ); 2455 #endif 2423 2456 #endif 2424 2457 #if H_3D_NBDV_REF … … 2433 2466 #if H_3D_DIM 2434 2467 printf("DMM:%d ", m_useDMM ); 2468 #if !SEC_DMM3_RBC_F0147 2435 2469 printf("RBC:%d ", m_useRBC ); 2470 #endif 2436 2471 printf("SDC:%d ", m_useSDC ); 2437 2472 printf("DLT:%d ", m_useDLT ); … … 2439 2474 #if H_3D_INTER_SDC 2440 2475 printf( "interSDC: %d ", m_bDepthInterSDCFlag ? 1 : 0 ); 2476 #endif 2477 #if SEC_MPI_ENABLING_MERGE_F0150 2478 printf( "MPI: %d ", m_bMPIFlag ? 1 : 0 ); 2441 2479 #endif 2442 2480 printf("\n\n"); -
trunk/source/App/TAppEncoder/TAppEncCfg.h
r655 r724 115 115 116 116 #if H_3D_IV_MERGE 117 #if QC_DEPTH_IV_MRG_F0125 118 vector<Bool> m_ivMvPredFlag; ///< Interview motion vector prediction 119 #else 117 120 Bool m_ivMvPredFlag; ///< Interview motion vector prediction 121 #endif 122 #if MTK_SPIVMP_F0110 123 Int m_iSubPULog2Size; 124 #endif 118 125 #endif 119 126 #if H_3D_ARP /// < flag and number of weighting factors in ARP … … 122 129 #endif 123 130 #if H_3D_IC 131 #if SEC_ONLY_TEXTURE_IC_F0151 132 Bool m_abUseIC; 133 #else 124 134 vector<Bool> m_abUseIC; ///< flag for using illumination compensation for inter-view prediction 135 #endif 125 136 #endif 126 137 #if H_3D_NBDV_REF … … 461 472 #if H_3D_DIM 462 473 Bool m_useDMM; ///< flag for using DMM 474 #if !SEC_DMM3_RBC_F0147 463 475 Bool m_useRBC; ///< flag for using RBC 476 #endif 464 477 Bool m_useSDC; ///< flag for using SDC 465 478 Bool m_useDLT; ///< flag for using DLT … … 471 484 #if H_3D_INTER_SDC 472 485 Bool m_bDepthInterSDCFlag; ///< flag for inter SDC of depth map coding 486 #endif 487 #if SEC_MPI_ENABLING_MERGE_F0150 488 Bool m_bMPIFlag; ///< flag for MPI of depth map coding 473 489 #endif 474 490 #endif -
trunk/source/App/TAppEncoder/TAppEncTop.cpp
r655 r724 149 149 //====== Camera Parameters ========= 150 150 m_cTEncTop.setCameraParameters ( &m_cCameraData ); 151 #if QC_DEPTH_IV_MRG_F0125 152 m_cTEncTop.setCamParPrecision ( m_cCameraData.getCamParsCodedPrecision () ); 153 m_cTEncTop.setCamParInSliceHeader ( m_cCameraData.getVaryingCameraParameters() ); 154 m_cTEncTop.setCodedScale ( m_cCameraData.getCodedScale () ); 155 m_cTEncTop.setCodedOffset ( m_cCameraData.getCodedOffset () ); 156 #else 151 157 m_cTEncTop.setCamParPrecision ( isDepth ? false : m_cCameraData.getCamParsCodedPrecision () ); 152 158 m_cTEncTop.setCamParInSliceHeader ( isDepth ? 0 : m_cCameraData.getVaryingCameraParameters() ); 153 159 m_cTEncTop.setCodedScale ( isDepth ? 0 : m_cCameraData.getCodedScale () ); 154 160 m_cTEncTop.setCodedOffset ( isDepth ? 0 : m_cCameraData.getCodedOffset () ); 161 #endif 155 162 #if H_3D_VSO 156 163 //====== VSO ========= … … 176 183 m_cTEncTop.setARPStepNum ( ( isDepth || 0==layerIdInVps ) ? 1 : H_3D_ARP_WFNR ); 177 184 #endif 185 #if MTK_SPIVMP_F0110 186 m_cTEncTop.setSubPULog2Size (( isDepth || 0==layerIdInVps ) ? 0 : m_iSubPULog2Size ); 187 #endif 178 188 #if H_3D_IC 189 #if SEC_ONLY_TEXTURE_IC_F0151 190 m_cTEncTop.setUseIC ( vps.getViewIndex( layerId ) == 0 || isDepth ? false : m_abUseIC ); 191 #else 179 192 m_cTEncTop.setUseIC ( vps.getViewIndex( layerId ) == 0 ? false : m_abUseIC[isDepth ? 1 : 0] ); 193 #endif 180 194 #endif 181 195 //========== Depth intra modes ========== 182 196 #if H_3D_DIM 183 197 m_cTEncTop.setUseDMM ( isDepth ? m_useDMM : false ); 198 #if !SEC_DMM3_RBC_F0147 184 199 m_cTEncTop.setUseRBC ( isDepth ? m_useRBC : false ); 200 #endif 185 201 m_cTEncTop.setUseSDC ( isDepth ? m_useSDC : false ); 186 202 m_cTEncTop.setUseDLT ( isDepth ? m_useDLT : false ); … … 193 209 #if H_3D_INTER_SDC 194 210 m_cTEncTop.setInterSDCEnable ( isDepth ? m_bDepthInterSDCFlag : false ); 211 #endif 212 #if SEC_MPI_ENABLING_MERGE_F0150 213 m_cTEncTop.setUseMPI ( isDepth ? m_bMPIFlag : false ); 195 214 #endif 196 215 #endif // H_3D … … 1639 1658 vps.setARPStepNum ( layer, ( isDepth || isLayerZero ) ? 1 : H_3D_ARP_WFNR ); 1640 1659 #endif 1660 #if MTK_SPIVMP_F0110 1661 if( isDepth ) 1662 { 1663 vps.setSubPULog2Size ( layer, (layer != 1) ? m_iSubPULog2Size: 0 ); 1664 } 1665 else 1666 { 1667 vps.setSubPULog2Size ( layer, (!isLayerZero) ? m_iSubPULog2Size: 0 ); 1668 } 1669 #endif 1641 1670 1642 1671 #if H_3D_DIM 1672 #if SEC_DMM3_RBC_F0147 1673 vps.setVpsDepthModesFlag( layer, isDepth && !isLayerZero && (m_useDMM || m_useSDC || m_useDLT ) ); 1674 #else 1643 1675 vps.setVpsDepthModesFlag( layer, isDepth && !isLayerZero && (m_useDMM || m_useRBC || m_useSDC || m_useDLT ) ); 1676 #endif 1644 1677 #if H_3D_DIM_DLT 1645 1678 vps.setUseDLTFlag( layer , isDepth && m_useDLT ); … … 1652 1685 1653 1686 #if H_3D_IV_MERGE 1687 #if QC_DEPTH_IV_MRG_F0125 1688 if( isDepth ) 1689 { 1690 vps.setIvMvPredFlag ( layer, (layer != 1) && m_ivMvPredFlag[1] ); 1691 } 1692 else 1693 { 1694 vps.setIvMvPredFlag ( layer, !isLayerZero && m_ivMvPredFlag[0] ); 1695 } 1696 #else 1654 1697 vps.setIvMvPredFlag ( layer, !isLayerZero && !isDepth && m_ivMvPredFlag ); 1698 #endif 1655 1699 #endif 1656 1700 #if H_3D_NBDV_REF … … 1663 1707 vps.setInterSDCFlag( layer, !isLayerZero && isDepth && m_bDepthInterSDCFlag ); 1664 1708 #endif 1709 #if SEC_MPI_ENABLING_MERGE_F0150 1710 vps.setMPIFlag( layer, !isLayerZero && isDepth && m_bMPIFlag ); 1711 #endif 1665 1712 } 1666 1713 #if H_3D
Note: See TracChangeset for help on using the changeset viewer.