@@ -10,42 +10,16 @@ namespace H264Sharp
1010 inline void Convert (__m256i y_vals1, __m256i y_vals2, __m256i u_valsl, __m256i u_valsh, __m256i v_valsl, __m256i v_valsh,
1111 __m256i& r, __m256i& g, __m256i& b, __m256i& r1, __m256i& g1, __m256i& b1);
1212 template <int NUM_CH, bool RGB>
13- void ConvertYUVToRGB_AVX2_Body (
14- const uint8_t * RESTRICT y_plane,
15- const uint8_t * RESTRICT u_plane,
16- const uint8_t * RESTRICT v_plane,
17- uint8_t * RESTRICT rgb_buffer,
18- int32_t width,
19- int32_t Y_stride,
20- int32_t UV_stride,
21- int32_t RGB_stride,
22- int32_t begin,
23- int32_t end);
13+ void ConvertYUVToRGB_AVX2_Body (const uint8_t * RESTRICT y_plane, const uint8_t * RESTRICT u_plane, const uint8_t * RESTRICT v_plane,
14+ uint8_t * RESTRICT rgb_buffer, int32_t width, int32_t Y_stride, int32_t UV_stride, int32_t RGB_stride, int32_t begin, int32_t end);
2415
2516 template <int NUM_CH, bool RGB>
26- void ConvertYUVNV12ToRGB_AVX2_Body (
27- const uint8_t * RESTRICT y_plane,
28- const uint8_t * RESTRICT uv_plane,
29- uint8_t * RESTRICT rgb_buffer,
30- int32_t width,
31- int32_t Y_stride,
32- int32_t UV_stride,
33- int32_t RGB_stride,
34- int32_t begin,
35- int32_t end);
17+ void ConvertYUVNV12ToRGB_AVX2_Body (const uint8_t * RESTRICT y_plane, const uint8_t * RESTRICT uv_plane, uint8_t * RESTRICT rgb_buffer,
18+ int32_t width, int32_t Y_stride, int32_t UV_stride, int32_t RGB_stride, int32_t begin, int32_t end);
3619
3720 template <int NUM_CH, bool RGB>
38- void Yuv2Rgb::ConvertYUVToRGB_AVX2 (
39- int32_t width,
40- int32_t height,
41- const uint8_t * RESTRICT Y,
42- const uint8_t * RESTRICT U,
43- const uint8_t * RESTRICT V,
44- int32_t Y_stride,
45- int32_t UV_stride,
46- uint8_t * RESTRICT Rgb,
47- int32_t RGB_stride,
48- int32_t numThreads)
21+ void Yuv2Rgb::ConvertYUVToRGB_AVX2 (int32_t width,int32_t height,const uint8_t * RESTRICT Y,const uint8_t * RESTRICT U,const uint8_t * RESTRICT V,
22+ int32_t Y_stride,int32_t UV_stride,uint8_t * RESTRICT Rgb,int32_t RGB_stride,int32_t numThreads)
4923 {
5024
5125 if (numThreads > 1 )
@@ -64,16 +38,8 @@ namespace H264Sharp
6438 }
6539
6640 template <int NUM_CH, bool RGB>
67- void Yuv2Rgb::ConvertYUVNV12ToRGB_AVX2 (
68- int32_t width,
69- int32_t height,
70- const uint8_t * RESTRICT Y,
71- const uint8_t * RESTRICT UV,
72- int32_t Y_stride,
73- int32_t UV_stride,
74- uint8_t * RESTRICT Rgb,
75- int32_t RGB_stride,
76- int32_t numThreads)
41+ void Yuv2Rgb::ConvertYUVNV12ToRGB_AVX2 (int32_t width, int32_t height, const uint8_t * RESTRICT Y, const uint8_t * RESTRICT UV, int32_t Y_stride,
42+ int32_t UV_stride, uint8_t * RESTRICT Rgb, int32_t RGB_stride, int32_t numThreads)
7743 {
7844
7945 if (numThreads > 1 )
0 commit comments