Showing the changes to codec/processing/src (2 of 13 files). Show all
Unified · Split
| @@ -70,15 +70,15 @@ WELSVP_NAMESPACE_BEGIN · 69 unmodified lines | |||
| 70 | #define MB_TYPE_INTRA (MB_TYPE_INTRA4x4 | MB_TYPE_INTRA16x16 | MB_TYPE_INTRA_PCM) | 70 | #define MB_TYPE_INTRA (MB_TYPE_INTRA4x4 | MB_TYPE_INTRA16x16 | MB_TYPE_INTRA_PCM) |
| 71 | #define IS_INTRA(type) ((type)&MB_TYPE_INTRA) | 71 | #define IS_INTRA(type) ((type)&MB_TYPE_INTRA) |
| 72 | 72 | ||
| 73 | #define WELS_MAX(x, y) ((x) > (y) ? (x) : (y)) | 73 | #define WELS_MAX(x, y) ((x) > (y) ? (x) : (y)) |
| 74 | #define WELS_MIN(x, y) ((x) < (y) ? (x) : (y)) | 74 | #define WELS_MIN(x, y) ((x) < (y) ? (x) : (y)) |
| 75 | 75 | ||
| 76 | #ifndef WELS_SIGN | 76 | #ifndef WELS_SIGN |
| 77 | #define WELS_SIGN(a) ((int32_t)(a) >> 31) | 77 | #define WELS_SIGN(a) ((int32_t)(a) >> 31) |
| 78 | #endif | 78 | #endif |
| 79 | 79 | ||
| 80 | #ifndef WELS_ABS | 80 | #ifndef WELS_ABS |
| 81 | #define WELS_ABS(a) ((WELS_SIGN(a) ^ (int32_t)(a)) - WELS_SIGN(a)) | 81 | #define WELS_ABS(a) ((WELS_SIGN(a) ^ (int32_t)(a)) - WELS_SIGN(a)) |
| 82 | #endif | 82 | #endif |
| 83 | 83 | ||
| 84 | #define WELS_CLAMP(x, minv, maxv) WELS_MIN(WELS_MAX(x, minv), maxv) | 84 | #define WELS_CLAMP(x, minv, maxv) WELS_MIN(WELS_MAX(x, minv), maxv) |
| @@ -83,9 +83,9 @@ void BilateralLumaFilter8_c (uint8_t* pSample, int32_t iStride) { · 82 unmodified lines | |||
| 83 | 1 2 4 2 1 | 83 | 1 2 4 2 1 |
| 84 | 1 1 2 1 1 | 84 | 1 1 2 1 1 |
| 85 | ***************************************************************************/ | 85 | ***************************************************************************/ |
| 86 | #define SUM_LINE1(pSample) (pSample[0] +(pSample[1]) +(pSample[2]<<1) + pSample[3] + pSample[4]) | 86 | #define SUM_LINE1(pSample) (pSample[0] +(pSample[1]) +(pSample[2]<<1) + pSample[3] + pSample[4]) |
| 87 | #define SUM_LINE2(pSample) (pSample[0] +(pSample[1]<<1) +(pSample[2]<<2) +(pSample[3]<<1) +pSample[4]) | 87 | #define SUM_LINE2(pSample) (pSample[0] +(pSample[1]<<1) +(pSample[2]<<2) +(pSample[3]<<1) + pSample[4]) |
| 88 | #define SUM_LINE3(pSample) ((pSample[0]<<1) +(pSample[1]<<2) +(pSample[2]*20) +(pSample[3]<<2) +(pSample[4]<<1)) | 88 | #define SUM_LINE3(pSample) ((pSample[0]<<1) +(pSample[1]<<2) +(pSample[2]*20) +(pSample[3]<<2) +(pSample[4]<<1)) |
| 89 | void WaverageChromaFilter8_c (uint8_t* pSample, int32_t iStride) { | 89 | void WaverageChromaFilter8_c (uint8_t* pSample, int32_t iStride) { |
| 90 | int32_t sum; | 90 | int32_t sum; |
| 91 | uint8_t* pStartPixels = pSample - UV_WINDOWS_RADIUS * iStride - UV_WINDOWS_RADIUS; | 91 | uint8_t* pStartPixels = pSample - UV_WINDOWS_RADIUS * iStride - UV_WINDOWS_RADIUS; |