Showing the changes to codec/processing/src/downsample/downsamplefuncs.cpp (1 of 64 files). Show all
Unified · Split
| @@ -49,11 +49,11 @@ void DyadicBilinearDownsampler_c (uint8_t* pDst, const int32_t kiDstStride, · 48 unmodified lines | |||
| 49 | const int32_t kiSrcWidth, const int32_t kiSrcHeight) | 49 | const int32_t kiSrcWidth, const int32_t kiSrcHeight) |
| 50 | 50 | ||
| 51 | { | 51 | { |
| 52 | uint8_t* pDstLine = pDst; | 52 | uint8_t* pDstLine = pDst; |
| 53 | uint8_t* pSrcLine = pSrc; | 53 | uint8_t* pSrcLine = pSrc; |
| 54 | const int32_t kiSrcStridex2 = kiSrcStride << 1; | 54 | const int32_t kiSrcStridex2 = kiSrcStride << 1; |
| 55 | const int32_t kiDstWidth = kiSrcWidth >> 1; | 55 | const int32_t kiDstWidth = kiSrcWidth >> 1; |
| 56 | const int32_t kiDstHeight = kiSrcHeight >> 1; | 56 | const int32_t kiDstHeight = kiSrcHeight >> 1; |
| 57 | 57 | ||
| 58 | for (int32_t j = 0; j < kiDstHeight; j ++) { | 58 | for (int32_t j = 0; j < kiDstHeight; j ++) { |
| 59 | for (int32_t i = 0; i < kiDstWidth; i ++) { | 59 | for (int32_t i = 0; i < kiDstWidth; i ++) { |
| @@ -63,8 +63,8 @@ void DyadicBilinearDownsampler_c (uint8_t* pDst, const int32_t kiDstStride, · 3 unmodified lines | |||
| 63 | 63 | ||
| 64 | pDstLine[i] = (uint8_t) ((kiTempRow1 + kiTempRow2 + 1) >> 1); | 64 | pDstLine[i] = (uint8_t) ((kiTempRow1 + kiTempRow2 + 1) >> 1); |
| 65 | } | 65 | } |
| 66 | pDstLine += kiDstStride; | 66 | pDstLine += kiDstStride; |
| 67 | pSrcLine += kiSrcStridex2; | 67 | pSrcLine += kiSrcStridex2; |
| 68 | } | 68 | } |
| 69 | } | 69 | } |
| 70 | 70 | ||