avcodec/lossless_videoencdsp: Constify src sub_left_predict

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/388/head
Andreas Rheinhardt 2 years ago
parent af43da3e4d
commit dc3e25e4d3
  1. 2
      libavcodec/lossless_videoencdsp.c
  2. 2
      libavcodec/lossless_videoencdsp.h
  3. 2
      libavcodec/x86/lossless_videoencdsp.asm
  4. 2
      libavcodec/x86/lossless_videoencdsp_init.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;

@ -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;

@ -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

@ -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

Loading…
Cancel
Save