Changeset 813 in 3DVCSoftware
- Timestamp:
- 29 Jan 2014, 13:20:27 (11 years ago)
- Location:
- branches/HTM-9.3-dev3-Hisilicon/source/Lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.3-dev3-Hisilicon/source/Lib/TLibDecoder/TDecCu.cpp
r799 r813 922 922 UInt uiHeight = pcCU->getHeight ( 0 ); 923 923 #if QC_PKU_SDC_SPLIT_G0123 924 #if HS_TSINGHUA_SDC_SPLIT_G0111 925 #if QC_GENERIC_SDC_G0122 926 TComWedgelet* dmm4SegmentationOrg = new TComWedgelet( uiWidth, uiHeight ); 927 #endif 928 #else 924 929 #if QC_GENERIC_SDC_G0122 925 930 TComWedgelet* dmm4Segmentation = new TComWedgelet( uiWidth, uiHeight ); 931 #endif 926 932 #endif 927 933 #endif … … 1012 1018 #endif 1013 1019 #endif 1020 #if HS_TSINGHUA_SDC_SPLIT_G0111 1021 TComWedgelet* dmm4Segmentation = new TComWedgelet( uiWidth, uiHeight ); 1022 #endif 1014 1023 //===== get prediction signal ===== 1015 1024 #if H_3D_DIM … … 1021 1030 #endif 1022 1031 ); 1032 #if HS_TSINGHUA_SDC_SPLIT_G0111 1033 Bool* dmm4PatternSplit = dmm4Segmentation->getPattern(); 1034 Bool* dmm4PatternOrg = dmm4SegmentationOrg->getPattern(); 1035 for( UInt k = 0; k < (uiWidth*uiHeight); k++ ) 1036 { 1037 dmm4PatternOrg[k+(uiAbsPartIdx<<4)] = dmm4PatternSplit[k]; 1038 } 1039 #endif 1023 1040 } 1024 1041 else … … 1045 1062 } 1046 1063 uiAbsPartIdx += ( (uiWidth * uiWidth) >> 4 ); 1064 #if HS_TSINGHUA_SDC_SPLIT_G0111 1065 dmm4Segmentation->destroy(); delete dmm4Segmentation; 1066 #endif 1047 1067 } 1048 1068 uiAbsPartIdx = 0; … … 1080 1100 { 1081 1101 uiNumSegments = 2; 1102 #if HS_TSINGHUA_SDC_SPLIT_G0111 1103 pbMask = dmm4SegmentationOrg->getPattern(); 1104 uiMaskStride = dmm4SegmentationOrg->getStride(); 1105 #else 1082 1106 pbMask = dmm4Segmentation->getPattern(); 1083 1107 uiMaskStride = dmm4Segmentation->getStride(); 1108 #endif 1084 1109 } 1085 1110 #endif … … 1146 1171 } 1147 1172 #if QC_GENERIC_SDC_G0122 1173 #if HS_TSINGHUA_SDC_SPLIT_G0111 1174 dmm4SegmentationOrg->destroy(); delete dmm4SegmentationOrg; 1175 #else 1148 1176 dmm4Segmentation->destroy(); delete dmm4Segmentation; 1177 #endif 1149 1178 #endif 1150 1179 } -
branches/HTM-9.3-dev3-Hisilicon/source/Lib/TLibEncoder/TEncSearch.cpp
r799 r813 1891 1891 UInt uiHeight = pcCU ->getHeight ( 0 ); 1892 1892 #if QC_PKU_SDC_SPLIT_G0123 1893 #if HS_TSINGHUA_SDC_SPLIT_G0111 1894 #if QC_GENERIC_SDC_G0122 1895 TComWedgelet* dmm4SegmentationOrg = new TComWedgelet( uiWidth, uiHeight ); 1896 #endif 1897 #else 1893 1898 #if QC_GENERIC_SDC_G0122 1894 1899 TComWedgelet* dmm4Segmentation = new TComWedgelet( uiWidth, uiHeight ); 1900 #endif 1895 1901 #endif 1896 1902 #endif … … 1911 1917 if ( ( uiWidth >> pcCU->getSlice()->getSPS()->getQuadtreeTULog2MaxSize() ) > 1 ) 1912 1918 { 1913 if ( getDimType( uiLumaPredMode ) == DMM4_IDX )1914 {1915 dmm4Segmentation->destroy(); delete dmm4Segmentation;1916 ruiDist = MAX_INT;1917 return;1918 }1919 1919 numParts = uiWidth * uiWidth >> ( 2 * pcCU->getSlice()->getSPS()->getQuadtreeTULog2MaxSize() ); 1920 1920 sdcDepth = g_aucConvertToBit[uiWidth] + 2 - pcCU->getSlice()->getSPS()->getQuadtreeTULog2MaxSize(); … … 1977 1977 #endif 1978 1978 #endif 1979 #if HS_TSINGHUA_SDC_SPLIT_G0111 1980 #if QC_GENERIC_SDC_G0122 1981 TComWedgelet* dmm4Segmentation = new TComWedgelet( uiWidth, uiHeight ); 1982 #endif 1983 #endif 1979 1984 //===== get prediction signal ===== 1980 1985 #if H_3D_DIM … … 1998 2003 #endif 1999 2004 ); 2005 #if HS_TSINGHUA_SDC_SPLIT_G0111 2006 Bool* dmm4PatternSplit = dmm4Segmentation->getPattern(); 2007 Bool* dmm4PatternOrg = dmm4SegmentationOrg->getPattern(); 2008 for( UInt k = 0; k < (uiWidth*uiHeight); k++ ) 2009 { 2010 dmm4PatternOrg[k+(uiAbsPartIdx<<4)] = dmm4PatternSplit[k]; 2011 } 2012 #endif 2000 2013 } 2001 2014 else … … 2021 2034 } 2022 2035 uiAbsPartIdx += ( ( uiWidth * uiWidth ) >> 4 ); 2036 #if HS_TSINGHUA_SDC_SPLIT_G0111 2037 dmm4Segmentation->destroy(); delete dmm4Segmentation; 2038 #endif 2023 2039 } 2024 2040 uiAbsPartIdx = 0; … … 2058 2074 { 2059 2075 uiNumSegments = 2; 2076 #if HS_TSINGHUA_SDC_SPLIT_G0111 2077 pbMask = dmm4SegmentationOrg->getPattern(); 2078 uiMaskStride = dmm4SegmentationOrg->getStride(); 2079 #else 2060 2080 pbMask = dmm4Segmentation->getPattern(); 2061 2081 uiMaskStride = dmm4Segmentation->getStride(); 2082 #endif 2062 2083 } 2063 2084 #endif … … 2200 2221 dRDCost = m_pcRdCost->calcRdCost( uiBits, ruiDist ); 2201 2222 #if QC_GENERIC_SDC_G0122 2223 #if HS_TSINGHUA_SDC_SPLIT_G0111 2224 dmm4SegmentationOrg->destroy(); delete dmm4SegmentationOrg; 2225 #else 2202 2226 dmm4Segmentation->destroy(); delete dmm4Segmentation; 2227 #endif 2203 2228 #endif 2204 2229 }
Note: See TracChangeset for help on using the changeset viewer.