avfilter/vf_eq: mark src as const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f8716d1e56
commit
f5b3257c50
@ -65,7 +65,7 @@ static void create_lut(EQParameters *param)
|
||||
}
|
||||
|
||||
static void apply_lut(EQParameters *param, uint8_t *dst, int dst_stride,
|
||||
uint8_t *src, int src_stride, int w, int h)
|
||||
const uint8_t *src, int src_stride, int w, int h)
|
||||
{
|
||||
int x, y;
|
||||
|
||||
@ -80,7 +80,7 @@ static void apply_lut(EQParameters *param, uint8_t *dst, int dst_stride,
|
||||
}
|
||||
|
||||
static void process_c(EQParameters *param, uint8_t *dst, int dst_stride,
|
||||
uint8_t *src, int src_stride, int w, int h)
|
||||
const uint8_t *src, int src_stride, int w, int h)
|
||||
{
|
||||
int x, y, pel;
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
typedef struct EQParameters {
|
||||
void (*adjust)(struct EQParameters *eq, uint8_t *dst, int dst_stride,
|
||||
uint8_t *src, int src_stride, int w, int h);
|
||||
const uint8_t *src, int src_stride, int w, int h);
|
||||
|
||||
uint8_t lut[256];
|
||||
|
||||
@ -51,7 +51,7 @@ typedef struct {
|
||||
double gamma_r, gamma_g, gamma_b;
|
||||
|
||||
void (*process)(struct EQParameters *par, uint8_t *dst, int dst_stride,
|
||||
uint8_t *src, int src_stride, int w, int h);
|
||||
const uint8_t *src, int src_stride, int w, int h);
|
||||
|
||||
} EQContext;
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
#if HAVE_MMX_INLINE && HAVE_6REGS
|
||||
static void process_MMX(EQParameters *param, uint8_t *dst, int dst_stride,
|
||||
uint8_t *src, int src_stride, int w, int h)
|
||||
const uint8_t *src, int src_stride, int w, int h)
|
||||
{
|
||||
int i;
|
||||
int pel;
|
||||
|
Loading…
Reference in New Issue
Block a user