diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2016-05-06 08:59:43 -0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2016-05-10 08:37:55 -0400 |
commit | 9b26a8077f1c0139fdcc236d3de08cd2bdc4ec0f (patch) | |
tree | e8c453aedd9c6b1cfd867993710d13661bef398c /libavfilter/colorspacedsp_template.c | |
parent | 431117dcb55c9bd47febf9ee3379e14a5d6595c8 (diff) | |
download | ffmpeg-9b26a8077f1c0139fdcc236d3de08cd2bdc4ec0f.tar.gz |
vf_colorspace: add const to yuv_stride[] argument in DSP functions.
Diffstat (limited to 'libavfilter/colorspacedsp_template.c')
-rw-r--r-- | libavfilter/colorspacedsp_template.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/colorspacedsp_template.c b/libavfilter/colorspacedsp_template.c index db4a8d2361..53ac0d7224 100644 --- a/libavfilter/colorspacedsp_template.c +++ b/libavfilter/colorspacedsp_template.c @@ -52,7 +52,7 @@ #endif static void fn(yuv2rgb)(int16_t *rgb[3], ptrdiff_t rgb_stride, - uint8_t *_yuv[3], ptrdiff_t yuv_stride[3], + uint8_t *_yuv[3], const ptrdiff_t yuv_stride[3], int w, int h, const int16_t yuv2rgb_coeffs[3][3][8], const int16_t yuv_offset[8]) { @@ -127,7 +127,7 @@ static void fn(yuv2rgb)(int16_t *rgb[3], ptrdiff_t rgb_stride, } } -static void fn(rgb2yuv)(uint8_t *_yuv[3], ptrdiff_t yuv_stride[3], +static void fn(rgb2yuv)(uint8_t *_yuv[3], const ptrdiff_t yuv_stride[3], int16_t *rgb[3], ptrdiff_t s, int w, int h, const int16_t rgb2yuv_coeffs[3][3][8], const int16_t yuv_offset[8]) @@ -205,7 +205,7 @@ static void fn(rgb2yuv)(uint8_t *_yuv[3], ptrdiff_t yuv_stride[3], * the rounding error is distributed over the neighbouring pixels: * 2: 7/16th, 3: 3/16th, 4: 5/16th and 5: 1/16th */ -static void fn(rgb2yuv_fsb)(uint8_t *_yuv[3], ptrdiff_t yuv_stride[3], +static void fn(rgb2yuv_fsb)(uint8_t *_yuv[3], const ptrdiff_t yuv_stride[3], int16_t *rgb[3], ptrdiff_t s, int w, int h, const int16_t rgb2yuv_coeffs[3][3][8], const int16_t yuv_offset[8], |