mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-23 15:26:57 +00:00
avcodec/magicyuvenc: Add const where appropriate
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f57e522ce2
commit
416d4be626
@ -69,12 +69,12 @@ typedef struct MagicYUVContext {
|
||||
unsigned tables_size;
|
||||
HuffEntry he[4][256];
|
||||
LLVidEncDSPContext llvidencdsp;
|
||||
void (*predict)(struct MagicYUVContext *s, uint8_t *src, uint8_t *dst,
|
||||
void (*predict)(struct MagicYUVContext *s, const uint8_t *src, uint8_t *dst,
|
||||
ptrdiff_t stride, int width, int height);
|
||||
} MagicYUVContext;
|
||||
|
||||
static void left_predict(MagicYUVContext *s,
|
||||
uint8_t *src, uint8_t *dst, ptrdiff_t stride,
|
||||
const uint8_t *src, uint8_t *dst, ptrdiff_t stride,
|
||||
int width, int height)
|
||||
{
|
||||
uint8_t prev = 0;
|
||||
@ -98,7 +98,7 @@ static void left_predict(MagicYUVContext *s,
|
||||
}
|
||||
|
||||
static void gradient_predict(MagicYUVContext *s,
|
||||
uint8_t *src, uint8_t *dst, ptrdiff_t stride,
|
||||
const uint8_t *src, uint8_t *dst, ptrdiff_t stride,
|
||||
int width, int height)
|
||||
{
|
||||
int left = 0, top, lefttop;
|
||||
@ -126,7 +126,7 @@ static void gradient_predict(MagicYUVContext *s,
|
||||
}
|
||||
|
||||
static void median_predict(MagicYUVContext *s,
|
||||
uint8_t *src, uint8_t *dst, ptrdiff_t stride,
|
||||
const uint8_t *src, uint8_t *dst, ptrdiff_t stride,
|
||||
int width, int height)
|
||||
{
|
||||
int left = 0, lefttop;
|
||||
|
Loading…
Reference in New Issue
Block a user