Showing the changes to codec/processing/src/downsample/downsample.h (1 of 6 files). Show all
Unified · Split
| @@ -58,8 +58,8 @@ typedef void (GeneralDownsampleFunc) (uint8_t* pDst, const int32_t kiDstStride, · 57 unmodified lines | |||
| 58 | const int32_t kiDstHeight, | 58 | const int32_t kiDstHeight, |
| 59 | uint8_t* pSrc, const int32_t kiSrcStride, const int32_t kiSrcWidth, const int32_t kiSrcHeight); | 59 | uint8_t* pSrc, const int32_t kiSrcStride, const int32_t kiSrcWidth, const int32_t kiSrcHeight); |
| 60 | 60 | ||
| 61 | typedef HalveDownsampleFunc* PHalveDownsampleFunc; | 61 | typedef HalveDownsampleFunc* PHalveDownsampleFunc; |
| 62 | typedef GeneralDownsampleFunc* PGeneralDownsampleFunc; | 62 | typedef GeneralDownsampleFunc* PGeneralDownsampleFunc; |
| 63 | 63 | ||
| 64 | HalveDownsampleFunc DyadicBilinearDownsampler_c; | 64 | HalveDownsampleFunc DyadicBilinearDownsampler_c; |
| 65 | GeneralDownsampleFunc GeneralBilinearFastDownsampler_c; | 65 | GeneralDownsampleFunc GeneralBilinearFastDownsampler_c; |
| @@ -67,28 +67,28 @@ GeneralDownsampleFunc GeneralBilinearAccurateDownsampler_c; · 1 unmodified line | |||
| 67 | 67 | ||
| 68 | typedef struct { | 68 | typedef struct { |
| 69 | // align_index: 0 = x32; 1 = x16; 2 = x8; 3 = common case left; | 69 | // align_index: 0 = x32; 1 = x16; 2 = x8; 3 = common case left; |
| 70 | PHalveDownsampleFunc pfHalfAverage[4]; | 70 | PHalveDownsampleFunc pfHalfAverage[4]; |
| 71 | PGeneralDownsampleFunc pfGeneralRatioLuma; | 71 | PGeneralDownsampleFunc pfGeneralRatioLuma; |
| 72 | PGeneralDownsampleFunc pfGeneralRatioChroma; | 72 | PGeneralDownsampleFunc pfGeneralRatioChroma; |
| 73 | } SDownsampleFuncs; | 73 | } SDownsampleFuncs; |
| 74 | 74 | ||
| 75 | 75 | ||
| 76 | #ifdef X86_ASM | 76 | #ifdef X86_ASM |
| 77 | WELSVP_EXTERN_C_BEGIN | 77 | WELSVP_EXTERN_C_BEGIN |
| 78 | // used for scr width is multipler of 8 pixels | 78 | // used for scr width is multipler of 8 pixels |
| 79 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx8_sse; | 79 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx8_sse; |
| 80 | // iSrcWidth= x16 pixels | 80 | // iSrcWidth= x16 pixels |
| 81 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx16_sse; | 81 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx16_sse; |
| 82 | // iSrcWidth= x32 pixels | 82 | // iSrcWidth= x32 pixels |
| 83 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx32_sse; | 83 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx32_sse; |
| 84 | // used for scr width is multipler of 16 pixels | 84 | // used for scr width is multipler of 16 pixels |
| 85 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx16_ssse3; | 85 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx16_ssse3; |
| 86 | // iSrcWidth= x32 pixels | 86 | // iSrcWidth= x32 pixels |
| 87 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx32_ssse3; | 87 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx32_ssse3; |
| 88 | // iSrcWidth= x16 pixels | 88 | // iSrcWidth= x16 pixels |
| 89 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx16_sse4; | 89 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx16_sse4; |
| 90 | // iSrcWidth= x32 pixels | 90 | // iSrcWidth= x32 pixels |
| 91 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx32_sse4; | 91 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx32_sse4; |
| 92 | 92 | ||
| 93 | GeneralDownsampleFunc GeneralBilinearFastDownsamplerWrap_sse2; | 93 | GeneralDownsampleFunc GeneralBilinearFastDownsamplerWrap_sse2; |
| 94 | GeneralDownsampleFunc GeneralBilinearAccurateDownsamplerWrap_sse2; | 94 | GeneralDownsampleFunc GeneralBilinearAccurateDownsamplerWrap_sse2; |
| @@ -103,9 +103,9 @@ WELSVP_EXTERN_C_END · 8 unmodified lines | |||
| 103 | #ifdef HAVE_NEON | 103 | #ifdef HAVE_NEON |
| 104 | WELSVP_EXTERN_C_BEGIN | 104 | WELSVP_EXTERN_C_BEGIN |
| 105 | // iSrcWidth no limitation | 105 | // iSrcWidth no limitation |
| 106 | HalveDownsampleFunc DyadicBilinearDownsampler_neon; | 106 | HalveDownsampleFunc DyadicBilinearDownsampler_neon; |
| 107 | // iSrcWidth = x32 pixels | 107 | // iSrcWidth = x32 pixels |
| 108 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx32_neon; | 108 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx32_neon; |
| 109 | 109 | ||
| 110 | GeneralDownsampleFunc GeneralBilinearAccurateDownsamplerWrap_neon; | 110 | GeneralDownsampleFunc GeneralBilinearAccurateDownsamplerWrap_neon; |
| 111 | 111 | ||
| @@ -119,9 +119,9 @@ WELSVP_EXTERN_C_END · 7 unmodified lines | |||
| 119 | #ifdef HAVE_NEON_AARCH64 | 119 | #ifdef HAVE_NEON_AARCH64 |
| 120 | WELSVP_EXTERN_C_BEGIN | 120 | WELSVP_EXTERN_C_BEGIN |
| 121 | // iSrcWidth no limitation | 121 | // iSrcWidth no limitation |
| 122 | HalveDownsampleFunc DyadicBilinearDownsampler_AArch64_neon; | 122 | HalveDownsampleFunc DyadicBilinearDownsampler_AArch64_neon; |
| 123 | // iSrcWidth = x32 pixels | 123 | // iSrcWidth = x32 pixels |
| 124 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx32_AArch64_neon; | 124 | HalveDownsampleFunc DyadicBilinearDownsamplerWidthx32_AArch64_neon; |
| 125 | 125 | ||
| 126 | GeneralDownsampleFunc GeneralBilinearAccurateDownsamplerWrap_AArch64_neon; | 126 | GeneralDownsampleFunc GeneralBilinearAccurateDownsamplerWrap_AArch64_neon; |
| 127 | 127 | ||