Changeset 240 in 3DVCSoftware
- Timestamp:
- 30 Jan 2013, 16:29:21 (12 years ago)
- Location:
- branches/HTM-5.1-dev1-Hisilicon/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev1-Hisilicon/source/Lib/TLibCommon/TComPrediction.cpp
r226 r240 1919 1919 UInt uiWedgeStride = pcWedgelet->getStride(); 1920 1920 1921 #if HS_REFERENCE_SUBSAMPLE 1922 Int subSamplePix; 1923 if ( pcWedgelet->getWidth() == 32 ) 1924 { 1925 subSamplePix = 2; 1926 } 1927 else 1928 { 1929 subSamplePix = 1; 1930 } 1931 #endif 1932 1921 1933 if( bAbove ) 1922 1934 { 1935 #if HS_REFERENCE_SUBSAMPLE 1936 for( Int k = 0; k < pcWedgelet->getWidth(); k+=subSamplePix ) 1937 #else 1923 1938 for( Int k = 0; k < pcWedgelet->getWidth(); k++ ) 1939 #endif 1924 1940 { 1925 1941 if( true == pabWedgePattern[k] ) … … 1937 1953 if( bLeft ) 1938 1954 { 1955 #if HS_REFERENCE_SUBSAMPLE 1956 for( Int k = 0; k < pcWedgelet->getHeight(); k+=subSamplePix ) 1957 #else 1939 1958 for( Int k = 0; k < pcWedgelet->getHeight(); k++ ) 1959 #endif 1940 1960 { 1941 1961 if( true == pabWedgePattern[k*uiWedgeStride] ) -
branches/HTM-5.1-dev1-Hisilicon/source/Lib/TLibDecoder/TDecCu.cpp
r189 r240 1375 1375 Int iSumPix[2]; 1376 1376 memset(iSumPix, 0, sizeof(Int)*2); 1377 1377 #if HS_REFERENCE_SUBSAMPLE 1378 Int subSamplePix; 1379 if ( uiSize == 64 || uiSize == 32 ) 1380 { 1381 subSamplePix = 2; 1382 } 1383 else 1384 { 1385 subSamplePix = 1; 1386 } 1387 for (Int y=0; y<uiSize; y+=subSamplePix) 1388 { 1389 for (Int x=0; x<uiSize; x+=subSamplePix) 1390 { 1391 UChar ucSegment = pMask?(UChar)pMask[x]:0; 1392 assert( ucSegment < uiNumSegments ); 1393 1394 iSumDepth[ucSegment] += pOrig[x]; 1395 iSumPix[ucSegment] += 1; 1396 } 1397 pOrig += uiStride*subSamplePix; 1398 pMask += uiMaskStride*subSamplePix; 1399 } 1400 #else 1378 1401 for (Int y=0; y<uiSize; y++) 1379 1402 { … … 1390 1413 pMask += uiMaskStride; 1391 1414 } 1392 1415 #endif 1393 1416 // compute mean for each segment 1394 1417 for( UChar ucSeg = 0; ucSeg < uiNumSegments; ucSeg++ ) -
branches/HTM-5.1-dev1-Hisilicon/source/Lib/TLibEncoder/TEncSearch.cpp
r226 r240 8311 8311 Int iSumPix[2]; 8312 8312 memset(iSumPix, 0, sizeof(Int)*2); 8313 8313 #if HS_REFERENCE_SUBSAMPLE 8314 Int subSamplePix; 8315 if ( uiSize == 64 || uiSize == 32 ) 8316 { 8317 subSamplePix = 2; 8318 } 8319 else 8320 { 8321 subSamplePix = 1; 8322 } 8323 for (Int y=0; y<uiSize; y+=subSamplePix) 8324 { 8325 for (Int x=0; x<uiSize; x+=subSamplePix) 8326 { 8327 UChar ucSegment = pMask?(UChar)pMask[x]:0; 8328 assert( ucSegment < uiNumSegments ); 8329 8330 iSumDepth[ucSegment] += pOrig[x]; 8331 iSumPix[ucSegment] += 1; 8332 } 8333 8334 pOrig += uiStride*subSamplePix; 8335 pMask += uiMaskStride*subSamplePix; 8336 } 8337 #else 8314 8338 for (Int y=0; y<uiSize; y++) 8315 8339 { … … 8326 8350 pMask += uiMaskStride; 8327 8351 } 8328 8352 #endif 8329 8353 // compute mean for each segment 8330 8354 for( UChar ucSeg = 0; ucSeg < uiNumSegments; ucSeg++ )
Note: See TracChangeset for help on using the changeset viewer.