Changeset 240 in 3DVCSoftware for branches/HTM-5.1-dev1-Hisilicon/source/Lib/TLibDecoder
- Timestamp:
- 30 Jan 2013, 16:29:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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++ )
Note: See TracChangeset for help on using the changeset viewer.