Changeset 1007 in 3DVCSoftware for branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibEncoder
- Timestamp:
- 22 Jul 2014, 10:27:09 (11 years ago)
- Location:
- branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibEncoder
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibEncoder/TEncCavlc.cpp
r976 r1007 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 } … … 1562 1564 if (i!= 0) 1563 1565 { 1566 #if MTK_I0099_VPS_EX2 1567 WRITE_FLAG( pcVPS->getIvMvPredFlag ( i ) ? 1 : 0 , "iv_mv_pred_flag[i]"); 1568 #endif 1564 1569 if ( !( pcVPS->getDepthId( i ) == 1 ) ) 1565 1570 { 1566 1571 #if H_3D_IV_MERGE 1572 #if !MTK_I0099_VPS_EX2 1567 1573 WRITE_FLAG( pcVPS->getIvMvPredFlag ( i ) ? 1 : 0 , "iv_mv_pred_flag[i]"); 1574 #endif 1568 1575 #if H_3D_SPIVMP 1569 1576 WRITE_UVLC( pcVPS->getSubPULog2Size(i)-3, "log2_sub_PU_size_minus3[i]"); … … 1585 1592 else 1586 1593 { 1594 #if !MTK_I0099_VPS_EX2 1587 1595 if(i!=1) 1588 1596 { … … 1595 1603 } 1596 1604 #endif 1605 #endif 1597 1606 #if H_3D_IV_MERGE 1598 1607 WRITE_FLAG( pcVPS->getMPIFlag( i ) ? 1 : 0 , "mpi_flag[i]" ); 1599 1608 #endif 1609 #if MTK_I0099_VPS_EX2 1610 WRITE_UVLC( pcVPS->getSubPUMPILog2Size(i)-3, "log2_mpi_sub_PU_size_minus3[i]"); 1611 #endif 1600 1612 WRITE_FLAG( pcVPS->getVpsDepthModesFlag( i ) ? 1 : 0 , "vps_depth_modes_flag[i]" ); 1601 //WRITE_FLAG( pcVPS->getLimQtPredFlag ( i ) ? 1 : 0 , "lim_qt_pred_flag[i]" ); 1613 #if MTK_I0099_VPS_EX2 1614 WRITE_FLAG( pcVPS->getLimQtPredFlag ( i ) ? 1 : 0 , "lim_qt_pred_flag[i]" ); 1615 #endif 1602 1616 #if H_3D_INTER_SDC 1603 1617 WRITE_FLAG( pcVPS->getInterSDCFlag( i ) ? 1 : 0, "depth_inter_SDC_flag" ); … … 1625 1639 } 1626 1640 } 1641 #if !MTK_I0099_VPS_EX2 1627 1642 WRITE_UVLC( pcVPS->getSubPUMPILog2Size( ) - 3, "log2_sub_PU_MPI_size_minus3"); 1643 #endif 1628 1644 #if H_3D_TMVP 1629 1645 WRITE_FLAG( pcVPS->getIvMvScalingFlag( ) ? 1 : 0 , "iv_mv_scaling_flag" ); -
branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibEncoder/TEncCfg.h
r976 r1007 420 420 Bool m_useMPI; 421 421 #endif 422 #if !MTK_I0099_VPS_EX2 422 423 #if H_3D_QTLPC 423 424 Bool m_bUseQTL; 424 425 Bool m_bUsePC; 426 #endif 425 427 #endif 426 428 #endif … … 1008 1010 Void setUseDLT ( Bool b) { m_useDLT = b; } 1009 1011 #endif 1012 #if !MTK_I0099_VPS_EX2 1010 1013 #if H_3D_QTLPC 1011 1014 Void setUseQTL ( Bool b ) { m_bUseQTL = b; } … … 1014 1017 Bool getUsePC () { return m_bUsePC; } 1015 1018 #endif 1019 #endif 1016 1020 #if H_3D_IV_MERGE 1017 1021 Void setUseMPI ( Bool b ) { m_useMPI = b; } -
branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibEncoder/TEncCu.cpp
r976 r1007 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(depthMapDetect && !bIntraSliceDetect && !rapPic && bLimQtPredFalg) 540 #else 533 541 if(depthMapDetect && !bIntraSliceDetect && !rapPic && sps->getUseQTL()) 542 #endif 534 543 { 535 544 TComDataCU* pcTextureCU = pcTexture->getCU( rpcBestCU->getAddr() ); //Corresponding texture LCU … … 685 694 686 695 #if H_3D_QTLPC 696 #if MTK_I0099_VPS_EX2 697 if(depthMapDetect && !bIntraSliceDetect && !rapPic && bLimQtPredFalg) 698 #else 687 699 if(depthMapDetect && !bIntraSliceDetect && !rapPic && sps->getUseQTL()) 700 #endif 688 701 { 689 702 bTrySplitDQP = bTrySplit; -
branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibEncoder/TEncSbac.cpp
r976 r1007 664 664 PartSize eSize = pcCU->getPartitionSize( uiAbsPartIdx ); 665 665 #if H_3D_QTLPC 666 #if MTK_I0099_VPS_EX2 667 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS(); 668 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId()); 669 #else 666 670 TComSPS *sps = pcCU->getPic()->getSlice(0)->getSPS(); 671 #endif 667 672 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 668 673 Bool bDepthMapDetect = (pcTexture != NULL); … … 673 678 Bool depthDependent = false; 674 679 UInt uiTexturePart = eSize; 680 #if MTK_I0099_VPS_EX2 681 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && pcCU->getPic()->getReduceBitsFlag() && bLimQtPredFlag ) 682 #else 675 683 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && pcCU->getPic()->getReduceBitsFlag() && sps->getUseQTL() && sps->getUsePC() ) 684 #endif 676 685 { 677 686 TComDataCU *pcTextureCU = pcTexture->getCU(pcCU->getAddr()); … … 1031 1040 Bool bCodeSplitFlag = true; 1032 1041 1042 #if MTK_I0099_VPS_EX2 1043 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS(); 1044 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId()); 1045 #else 1033 1046 TComSPS *sps = pcCU->getPic()->getSlice(0)->getSPS(); 1047 #endif 1034 1048 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 1035 1049 Bool bDepthMapDetect = (pcTexture != NULL); … … 1038 1052 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); 1039 1053 1054 #if MTK_I0099_VPS_EX2 1055 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && pcCU->getPic()->getReduceBitsFlag() && bLimQtPredFlag ) 1056 #else 1040 1057 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && pcCU->getPic()->getReduceBitsFlag() && sps->getUseQTL() && sps->getUsePC()) 1058 #endif 1041 1059 { 1042 1060 TComDataCU *pcTextureCU = pcTexture->getCU(pcCU->getAddr()); -
branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibEncoder/TEncTop.cpp
r976 r1007 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.