forked from FFmpeg/FFmpeg
avcodec/videodsp: Constify buf in VideoDSPContext.prefetch
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
2793e4353f
commit
af43da3e4d
8 changed files with 8 additions and 8 deletions
|
@ -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…
Add table
Reference in a new issue