diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-26 06:30:28 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-31 03:16:35 +0200 |
commit | dc3e25e4d3c152ff87030e89247b3e8d9bdef925 (patch) | |
tree | dd81f22dcd1a629085531849342e4959e984eaae /libavcodec | |
parent | af43da3e4d861cd408292aefed0dea2121d5521a (diff) | |
download | ffmpeg-dc3e25e4d3c152ff87030e89247b3e8d9bdef925.tar.gz |
avcodec/lossless_videoencdsp: Constify src sub_left_predict
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/lossless_videoencdsp.c | 2 | ||||
-rw-r--r-- | libavcodec/lossless_videoencdsp.h | 2 | ||||
-rw-r--r-- | libavcodec/x86/lossless_videoencdsp.asm | 2 | ||||
-rw-r--r-- | libavcodec/x86/lossless_videoencdsp_init.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/lossless_videoencdsp.c b/libavcodec/lossless_videoencdsp.c index e0b78bb3da..b4130ebc7b 100644 --- a/libavcodec/lossless_videoencdsp.c +++ b/libavcodec/lossless_videoencdsp.c @@ -74,7 +74,7 @@ static void sub_median_pred_c(uint8_t *dst, const uint8_t *src1, *left_top = lt; } -static void sub_left_predict_c(uint8_t *dst, uint8_t *src, +static void sub_left_predict_c(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, ptrdiff_t width, int height) { int i, j; diff --git a/libavcodec/lossless_videoencdsp.h b/libavcodec/lossless_videoencdsp.h index 7794f03e3f..f2c2878485 100644 --- a/libavcodec/lossless_videoencdsp.h +++ b/libavcodec/lossless_videoencdsp.h @@ -35,7 +35,7 @@ typedef struct LLVidEncDSPContext { const uint8_t *src2, intptr_t w, int *left, int *left_top); - void (*sub_left_predict)(uint8_t *dst, uint8_t *src, + void (*sub_left_predict)(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, ptrdiff_t width, int height); } LLVidEncDSPContext; diff --git a/libavcodec/x86/lossless_videoencdsp.asm b/libavcodec/x86/lossless_videoencdsp.asm index 2e1d01bc2c..c579891d6a 100644 --- a/libavcodec/x86/lossless_videoencdsp.asm +++ b/libavcodec/x86/lossless_videoencdsp.asm @@ -145,7 +145,7 @@ DIFF_BYTES_PROLOGUE ;-------------------------------------------------------------------------------------------------- -;void sub_left_predict(uint8_t *dst, uint8_t *src, ptrdiff_t stride, ptrdiff_t width, int height) +;void sub_left_predict(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, ptrdiff_t width, int height) ;-------------------------------------------------------------------------------------------------- INIT_XMM avx diff --git a/libavcodec/x86/lossless_videoencdsp_init.c b/libavcodec/x86/lossless_videoencdsp_init.c index b3efcfdcd7..22a4014ef1 100644 --- a/libavcodec/x86/lossless_videoencdsp_init.c +++ b/libavcodec/x86/lossless_videoencdsp_init.c @@ -34,7 +34,7 @@ void ff_diff_bytes_sse2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, void ff_diff_bytes_avx2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, intptr_t w); -void ff_sub_left_predict_avx(uint8_t *dst, uint8_t *src, +void ff_sub_left_predict_avx(uint8_t *dst, const uint8_t *src, ptrdiff_t stride, ptrdiff_t width, int height); #if HAVE_INLINE_ASM |