avcodec/videodsp: Constify buf in VideoDSPContext.prefetch

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/388/head
Andreas Rheinhardt 3 years ago
parent 2793e4353f
commit af43da3e4d
  1. 2
      libavcodec/aarch64/videodsp_init.c
  2. 2
      libavcodec/arm/videodsp_init_armv5te.c
  3. 2
      libavcodec/loongarch/videodsp_init.c
  4. 2
      libavcodec/mips/videodsp_init.c
  5. 2
      libavcodec/ppc/videodsp.c
  6. 2
      libavcodec/videodsp.c
  7. 2
      libavcodec/videodsp.h
  8. 2
      libavcodec/x86/videodsp_init.c

@ -21,7 +21,7 @@
#include "libavutil/aarch64/cpu.h"
#include "libavcodec/videodsp.h"
void ff_prefetch_aarch64(uint8_t *mem, ptrdiff_t stride, int h);
void ff_prefetch_aarch64(const uint8_t *mem, ptrdiff_t stride, int h);
av_cold void ff_videodsp_init_aarch64(VideoDSPContext *ctx, int bpc)
{

@ -23,7 +23,7 @@
#include "libavcodec/videodsp.h"
#include "videodsp_arm.h"
void ff_prefetch_arm(uint8_t *mem, ptrdiff_t stride, int h);
void ff_prefetch_arm(const uint8_t *mem, ptrdiff_t stride, int h);
av_cold void ff_videodsp_init_armv5te(VideoDSPContext *ctx, int bpc)
{

@ -22,7 +22,7 @@
#include "libavcodec/videodsp.h"
#include "libavutil/attributes.h"
static void prefetch_loongarch(uint8_t *mem, ptrdiff_t stride, int h)
static void prefetch_loongarch(const uint8_t *mem, ptrdiff_t stride, int h)
{
register const uint8_t *p = mem;

@ -24,7 +24,7 @@
#include "libavutil/mips/asmdefs.h"
#include "libavcodec/videodsp.h"
static void prefetch_mips(uint8_t *mem, ptrdiff_t stride, int h)
static void prefetch_mips(const uint8_t *mem, ptrdiff_t stride, int h)
{
register const uint8_t *p = mem;

@ -21,7 +21,7 @@
#include "libavutil/attributes.h"
#include "libavcodec/videodsp.h"
static void prefetch_ppc(uint8_t *mem, ptrdiff_t stride, int h)
static void prefetch_ppc(const uint8_t *mem, ptrdiff_t stride, int h)
{
register const uint8_t *p = mem;
do {

@ -32,7 +32,7 @@
#include "videodsp_template.c"
#undef BIT_DEPTH
static void just_return(uint8_t *buf, ptrdiff_t stride, int h)
static void just_return(const uint8_t *buf, ptrdiff_t stride, int h)
{
}

@ -72,7 +72,7 @@ typedef struct VideoDSPContext {
* @param stride distance between two lines of buf (in bytes)
* @param h number of lines to prefetch
*/
void (*prefetch)(uint8_t *buf, ptrdiff_t stride, int h);
void (*prefetch)(const uint8_t *buf, ptrdiff_t stride, int h);
} VideoDSPContext;
void ff_videodsp_init(VideoDSPContext *ctx, int bpc);

@ -215,7 +215,7 @@ static av_noinline void emulated_edge_mc_avx2(uint8_t *buf, const uint8_t *src,
#endif /* HAVE_AVX2_EXTERNAL */
#endif /* HAVE_X86ASM */
void ff_prefetch_mmxext(uint8_t *buf, ptrdiff_t stride, int h);
void ff_prefetch_mmxext(const uint8_t *buf, ptrdiff_t stride, int h);
av_cold void ff_videodsp_init_x86(VideoDSPContext *ctx, int bpc)
{

Loading…
Cancel
Save