Changeset 1007 in 3DVCSoftware for branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibDecoder
- Timestamp:
- 22 Jul 2014, 10:27:09 (11 years ago)
- Location:
- branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibDecoder/TDecCAVLC.cpp
r976 r1007 1051 1051 Void TDecCavlc::parseSPSExtension2( TComSPS* pcSPS, Int viewIndex, Bool depthFlag ) 1052 1052 { 1053 #if !MTK_I0099_VPS_EX2 1053 1054 UInt uiCode; 1054 1055 #if H_3D_QTLPC … … 1061 1062 pcSPS->setUsePC( uiCode ); 1062 1063 } 1064 #endif 1063 1065 #endif 1064 1066 } … … 1767 1769 if ( i != 0 ) 1768 1770 { 1771 #if MTK_I0099_VPS_EX2 1772 READ_FLAG( uiCode, "iv_mv_pred_flag[i]"); pcVPS->setIvMvPredFlag ( i, uiCode == 1 ? true : false ); 1773 #endif 1769 1774 if( !( pcVPS->getDepthId( i ) == 1 ) ) 1770 1775 { 1771 1776 #if H_3D_IV_MERGE 1777 #if !MTK_I0099_VPS_EX2 1772 1778 READ_FLAG( uiCode, "iv_mv_pred_flag[i]"); pcVPS->setIvMvPredFlag ( i, uiCode == 1 ? true : false ); 1779 #endif 1773 1780 if( !pcVPS->getNumDirectRefLayers(i) ) 1774 1781 { … … 1802 1809 else 1803 1810 { 1811 #if !MTK_I0099_VPS_EX2 1804 1812 #if H_3D_IV_MERGE 1805 1813 if(i!=1) … … 1818 1826 } 1819 1827 #endif 1828 #endif 1820 1829 #if H_3D_IV_MERGE 1821 1830 READ_FLAG( uiCode, "mpi_flag[i]" ); pcVPS->setMPIFlag( i, uiCode == 1 ? true : false ); 1822 1831 #endif 1832 #if MTK_I0099_VPS_EX2 1833 READ_UVLC (uiCode, "log2_mpi_sub_PU_size_minus3[i]"); pcVPS->setSubPUMPILog2Size(i, uiCode+3); 1834 #endif 1823 1835 READ_FLAG( uiCode, "vps_depth_modes_flag[i]" ); pcVPS->setVpsDepthModesFlag( i, uiCode == 1 ? true : false ); 1824 // READ_FLAG( uiCode, "lim_qt_pred_flag[i]"); pcVPS->setLimQtPreFlag ( i, uiCode == 1 ? true : false ); 1836 #if MTK_I0099_VPS_EX2 1837 READ_FLAG( uiCode, "lim_qt_pred_flag[i]"); pcVPS->setLimQtPredFlag ( i, uiCode == 1 ? true : false ); 1838 #endif 1825 1839 #if H_3D_INTER_SDC 1826 1840 READ_FLAG( uiCode, "depth_inter_SDC_flag" ); pcVPS->setInterSDCFlag( i, uiCode ? true : false ); … … 1857 1871 } 1858 1872 } 1873 #if !MTK_I0099_VPS_EX2 1859 1874 READ_UVLC (uiCode, "log2_sub_PU_MPI_size_minus3"); pcVPS->setSubPUMPILog2Size( uiCode + 3 ); 1875 #endif 1860 1876 READ_FLAG( uiCode, "iv_mv_scaling_flag"); pcVPS->setIvMvScalingFlag( uiCode == 1 ? true : false ); 1861 1877 } -
branches/HTM-11.2-dev2-MediaTek/source/Lib/TLibDecoder/TDecSbac.cpp
r976 r1007 721 721 Bool bParseSplitFlag = true; 722 722 723 TComSPS *sps = pcCU->getPic()->getSlice(0)->getSPS(); 723 #if MTK_I0099_VPS_EX2 724 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS(); 725 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId()); 726 #else 727 TComSPS *sps = pcCU->getPic()->getSlice(0)->getSPS(); 728 #endif 724 729 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 725 730 Bool bDepthMapDetect = (pcTexture != NULL); … … 728 733 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); 729 734 735 #if MTK_I0099_VPS_EX2 736 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && bLimQtPredFlag) 737 #else 730 738 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && sps->getUseQTL() && sps->getUsePC()) 739 #endif 731 740 { 732 741 TComDataCU *pcTextureCU = pcTexture->getCU(pcCU->getAddr()); … … 770 779 #if H_3D_QTLPC 771 780 Bool bParsePartSize = true; 781 #if MTK_I0099_VPS_EX2 782 TComVPS *vps = pcCU->getPic()->getSlice(0)->getVPS(); 783 Bool bLimQtPredFlag = vps->getLimQtPredFlag(pcCU->getPic()->getSlice(0)->getLayerId()); 784 #else 772 785 TComSPS *sps = pcCU->getPic()->getSlice(0)->getSPS(); 786 #endif 773 787 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); 774 788 Bool bDepthMapDetect = (pcTexture != NULL); … … 779 793 Bool depthDependent = false; 780 794 UInt uiTexturePart = uiMode; 795 #if MTK_I0099_VPS_EX2 796 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && bLimQtPredFlag ) 797 #else 781 798 if(bDepthMapDetect && !bIntraSliceDetect && !rapPic && sps->getUseQTL() && sps->getUsePC()) 799 #endif 782 800 { 783 801 TComDataCU *pcTextureCU = pcTexture->getCU(pcCU->getAddr());
Note: See TracChangeset for help on using the changeset viewer.