1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

avfilter/vf_noise: Make private context smaller

"all" only exists to set options; it does not need the big arrays
contained in FilterParams.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-10-13 06:20:07 +02:00
parent cd4b01707d
commit 94948bd6b9

View File

@@ -50,7 +50,10 @@ typedef struct NoiseContext {
int nb_planes;
int bytewidth[4];
int height[4];
FilterParams all;
struct {
int seed, strength;
unsigned flags;
} all;
FilterParams param[4];
void (*line_noise)(uint8_t *dst, const uint8_t *src, const int8_t *noise, int len, int shift);
void (*line_noise_avg)(uint8_t *dst, const uint8_t *src, int len, const int8_t * const *shift);