Changeset 1030 in 3DVCSoftware for branches/HTM-11.2-dev0/source/Lib/TLibEncoder
- Timestamp:
- 30 Jul 2014, 19:51:27 (11 years ago)
- Location:
- branches/HTM-11.2-dev0/source/Lib/TLibEncoder
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-11.2-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp
r1015 r1030 887 887 { 888 888 #if H_3D_QTLPC 889 #if !MTK_I0099_VPS_EX2 889 890 //GT: This has to go to VPS 890 891 if( depthFlag ) … … 893 894 WRITE_FLAG( pcSPS->getUsePC() ? 1 : 0, "use_pc_flag"); 894 895 } 896 #endif 895 897 #endif 896 898 } … … 1558 1560 Void TEncCavlc::codeVPSExtension2( TComVPS* pcVPS ) 1559 1561 { 1562 #if SEC_VPS_CLEANUP_I0090 1563 for( Int i = 1; i <= pcVPS->getMaxLayersMinus1(); i++ ) 1564 #else 1560 1565 for( Int i = 0; i <= pcVPS->getMaxLayersMinus1(); i++ ) 1561 { 1566 #endif 1567 { 1568 #if !SEC_VPS_CLEANUP_I0090 1562 1569 if (i!= 0) 1563 { 1570 #endif 1571 { 1572 #if MTK_I0099_VPS_EX2 1573 WRITE_FLAG( pcVPS->getIvMvPredFlag ( i ) ? 1 : 0 , "iv_mv_pred_flag[i]"); 1574 #if SEC_HLS_CLEANUP_I0100 1575 WRITE_FLAG( pcVPS->getIvMvScalingFlag( i ) ? 1 : 0 , "iv_mv_scaling_flag[i]" ); 1576 #endif 1577 1578 #endif 1564 1579 if ( !( pcVPS->getDepthId( i ) == 1 ) ) 1565 1580 { 1566 1581 #if H_3D_IV_MERGE 1582 #if !MTK_I0099_VPS_EX2 1567 1583 WRITE_FLAG( pcVPS->getIvMvPredFlag ( i ) ? 1 : 0 , "iv_mv_pred_flag[i]"); 1584 #endif 1568 1585 #if H_3D_SPIVMP 1569 1586 WRITE_UVLC( pcVPS->getSubPULog2Size(i)-3, "log2_sub_PU_size_minus3[i]"); … … 1585 1602 else 1586 1603 { 1604 #if !MTK_I0099_VPS_EX2 1587 1605 if(i!=1) 1588 1606 { … … 1595 1613 } 1596 1614 #endif 1615 #endif 1597 1616 #if H_3D_IV_MERGE 1598 1617 WRITE_FLAG( pcVPS->getMPIFlag( i ) ? 1 : 0 , "mpi_flag[i]" ); 1618 #endif 1619 #if MTK_I0099_VPS_EX2 1620 WRITE_UVLC( pcVPS->getSubPUMPILog2Size(i)-3, "log2_mpi_sub_PU_size_minus3[i]"); 1599 1621 #endif 1600 1622 WRITE_FLAG( pcVPS->getVpsDepthModesFlag( i ) ? 1 : 0 , "vps_depth_modes_flag[i]" ); … … 1602 1624 WRITE_FLAG( pcVPS->getIVPFlag( i ) ? 1 : 0 , "IVP_flag[i]" ); 1603 1625 #endif 1604 //WRITE_FLAG( pcVPS->getLimQtPredFlag ( i ) ? 1 : 0 , "lim_qt_pred_flag[i]" ); 1626 #if MTK_I0099_VPS_EX2 1627 WRITE_FLAG( pcVPS->getLimQtPredFlag ( i ) ? 1 : 0 , "lim_qt_pred_flag[i]" ); 1628 #endif 1629 1605 1630 #if H_3D_INTER_SDC 1606 1631 WRITE_FLAG( pcVPS->getInterSDCFlag( i ) ? 1 : 0, "depth_inter_SDC_flag" ); … … 1610 1635 } 1611 1636 WRITE_UVLC( pcVPS->getCamParPrecision(), "cp_precision" ); 1637 #if SEC_VPS_CLEANUP_I0090 1638 for (UInt viewIndex=1; viewIndex<pcVPS->getNumViews(); viewIndex++) 1639 #else 1612 1640 for (UInt viewIndex=0; viewIndex<pcVPS->getNumViews(); viewIndex++) 1641 #endif 1613 1642 { 1614 1643 WRITE_FLAG( pcVPS->getCamParPresent(viewIndex) ? 1 : 0, "cp_present_flag[i]" ); … … 1628 1657 } 1629 1658 } 1659 #if !MTK_I0099_VPS_EX2 1630 1660 WRITE_UVLC( pcVPS->getSubPUMPILog2Size( ) - 3, "log2_sub_PU_MPI_size_minus3"); 1661 #endif 1631 1662 #if H_3D_TMVP 1663 #if !SEC_HLS_CLEANUP_I0100 1632 1664 WRITE_FLAG( pcVPS->getIvMvScalingFlag( ) ? 1 : 0 , "iv_mv_scaling_flag" ); 1665 #endif 1633 1666 #endif 1634 1667 } … … 2016 2049 } 2017 2050 #if H_3D_IC 2051 #if SEC_HLS_CLEANUP_I0100 2052 else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumDirectRefLayers( layerId ) > 0 ) 2053 #else 2018 2054 else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth()) 2055 #endif 2019 2056 { 2020 2057 WRITE_FLAG( pcSlice->getApplyIC() ? 1 : 0, "slice_ic_enable_flag" ); -
branches/HTM-11.2-dev0/source/Lib/TLibEncoder/TEncCfg.h
r1015 r1030 426 426 Bool m_useMPI; 427 427 #endif 428 #if !MTK_I0099_VPS_EX2 || MTK_I0099_FIX 428 429 #if H_3D_QTLPC 429 430 Bool m_bUseQTL; 431 #if !MTK_I0099_VPS_EX2 430 432 Bool m_bUsePC; 433 #endif 434 #endif 431 435 #endif 432 436 #endif … … 1022 1026 Bool getUseSingleDepthMode () { return m_useSingleDepthMode; } 1023 1027 #endif 1028 #if !MTK_I0099_VPS_EX2 || MTK_I0099_FIX 1024 1029 #if H_3D_QTLPC 1025 1030 Void setUseQTL ( Bool b ) { m_bUseQTL = b; } 1026 1031 Bool getUseQTL () { return m_bUseQTL; } 1032 #if !MTK_I0099_VPS_EX2 1027 1033 Void setUsePC ( Bool b ) { m_bUsePC = b; } 1028 1034 Bool getUsePC () { return m_bUsePC; } 1035 #endif 1036 #endif 1029 1037 #endif 1030 1038 #if H_3D_IV_MERGE -
branches/HTM-11.2-dev0/source/Lib/TLibEncoder/TEncCu.cpp
r1029 r1030 409 409 410 410 #if H_3D_QTLPC 411 #if MTK_I0099_VPS_EX2 412 TComVPS *vps = pcPic->getSlice(0)->getVPS(); 413 Bool bLimQtPredFalg = vps->getLimQtPredFlag(pcPic->getSlice(0)->getLayerId()); 414 #else 411 415 TComSPS *sps = pcPic->getSlice(0)->getSPS(); 416 #endif 412 417 TComPic *pcTexture = rpcBestCU->getSlice()->getTexturePic(); 413 418 … … 531 536 //logic for setting bTrySplit using the partition information that is stored of the texture colocated CU 532 537 538 #if MTK_I0099_VPS_EX2 539 #if MTK_I0099_FIX 540 if(depthMapDetect && !bIntraSliceDetect && !rapPic && ( m_pcEncCfg->getUseQTL() || bLimQtPredFalg )) 541 #else 542 if(depthMapDetect && !bIntraSliceDetect && !rapPic && bLimQtPredFalg) 543 #endif 544 #else 533 545 if(depthMapDetect && !bIntraSliceDetect && !rapPic && sps->getUseQTL()) 546 #endif 534 547 { 535 548 TComDataCU* pcTextureCU = pcTexture->getCU( rpcBestCU->getAddr() ); //Corresponding texture LCU … … 685 698 686 699 #if H_3D_QTLPC 700 #if MTK_I0099_VPS_EX2 701 #if MTK_I0099_FIX 702 if(depthMapDetect && !bIntraSliceDetect && !rapPic && ( m_pcEncCfg->getUseQTL() || bLimQtPredFalg )) 703 #else 704 if(depthMapDetect && !bIntraSliceDetect && !rapPic && bLimQtPredFalg) 705 #endif 706 #else 687 707 if(depthMapDetect && !bIntraSliceDetect && !rapPic && sps->getUseQTL()) 708 #endif 688 709 { 689 710 bTrySplitDQP = bTrySplit; -
branches/HTM-11.2-dev0/source/Lib/TLibEncoder/TEncSbac.cpp
r1029 r1030 714 714 PartSize eSize = pcCU->getPartitionSize( uiAbsPartIdx ); 715 715 #if H_3D_QTLPC 716 #if MTK_I0099_VPS_EX2 717 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS(); 718 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId()); 719 #else 716 720 TComSPS *sps = pcCU->getPic()->getSlice(0)->getSPS(); 721 #endif 717 722 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 718 723 Bool bDepthMapDetect = (pcTexture != NULL); … … 723 728 Bool depthDependent = false; 724 729 UInt uiTexturePart = eSize; 730 #if MTK_I0099_VPS_EX2 731 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && pcCU->getPic()->getReduceBitsFlag() && bLimQtPredFlag ) 732 #else 725 733 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && pcCU->getPic()->getReduceBitsFlag() && sps->getUseQTL() && sps->getUsePC() ) 734 #endif 726 735 { 727 736 TComDataCU *pcTextureCU = pcTexture->getCU(pcCU->getAddr()); … … 1081 1090 Bool bCodeSplitFlag = true; 1082 1091 1092 #if MTK_I0099_VPS_EX2 1093 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS(); 1094 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId()); 1095 #else 1083 1096 TComSPS *sps = pcCU->getPic()->getSlice(0)->getSPS(); 1097 #endif 1084 1098 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 1085 1099 Bool bDepthMapDetect = (pcTexture != NULL); … … 1088 1102 Bool rapPic = (pcCU->getSlice()->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_W_RADL || pcCU->getSlice()->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP || pcCU->getSlice()->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA); 1089 1103 1104 #if MTK_I0099_VPS_EX2 1105 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && pcCU->getPic()->getReduceBitsFlag() && bLimQtPredFlag ) 1106 #else 1090 1107 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && pcCU->getPic()->getReduceBitsFlag() && sps->getUseQTL() && sps->getUsePC()) 1108 #endif 1091 1109 { 1092 1110 TComDataCU *pcTextureCU = pcTexture->getCU(pcCU->getAddr()); -
branches/HTM-11.2-dev0/source/Lib/TLibEncoder/TEncTop.cpp
r976 r1030 744 744 m_cSPS.setUseAMP ( m_useAMP ); 745 745 746 #if !MTK_I0099_VPS_EX2 746 747 #if H_3D_QTLPC 747 748 m_cSPS.setUseQTL( m_bUseQTL ); 748 749 m_cSPS.setUsePC ( m_bUsePC ); 750 #endif 749 751 #endif 750 752
Note: See TracChangeset for help on using the changeset viewer.