Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2015/01/27 09:46:08... | ... |
@@ -65,7 +65,7 @@ static void create_lut(EQParameters *param) |
65 | 65 |
} |
66 | 66 |
|
67 | 67 |
static void apply_lut(EQParameters *param, uint8_t *dst, int dst_stride, |
68 |
- uint8_t *src, int src_stride, int w, int h) |
|
68 |
+ const uint8_t *src, int src_stride, int w, int h) |
|
69 | 69 |
{ |
70 | 70 |
int x, y; |
71 | 71 |
|
... | ... |
@@ -80,7 +80,7 @@ static void apply_lut(EQParameters *param, uint8_t *dst, int dst_stride, |
80 | 80 |
} |
81 | 81 |
|
82 | 82 |
static void process_c(EQParameters *param, uint8_t *dst, int dst_stride, |
83 |
- uint8_t *src, int src_stride, int w, int h) |
|
83 |
+ const uint8_t *src, int src_stride, int w, int h) |
|
84 | 84 |
{ |
85 | 85 |
int x, y, pel; |
86 | 86 |
|
... | ... |
@@ -29,7 +29,7 @@ |
29 | 29 |
|
30 | 30 |
typedef struct EQParameters { |
31 | 31 |
void (*adjust)(struct EQParameters *eq, uint8_t *dst, int dst_stride, |
32 |
- uint8_t *src, int src_stride, int w, int h); |
|
32 |
+ const uint8_t *src, int src_stride, int w, int h); |
|
33 | 33 |
|
34 | 34 |
uint8_t lut[256]; |
35 | 35 |
|
... | ... |
@@ -51,7 +51,7 @@ typedef struct { |
51 | 51 |
double gamma_r, gamma_g, gamma_b; |
52 | 52 |
|
53 | 53 |
void (*process)(struct EQParameters *par, uint8_t *dst, int dst_stride, |
54 |
- uint8_t *src, int src_stride, int w, int h); |
|
54 |
+ const uint8_t *src, int src_stride, int w, int h); |
|
55 | 55 |
|
56 | 56 |
} EQContext; |
57 | 57 |
|