1
0
Fork 0
Commit Graph

8 Commits

Author SHA1 Message Date
Anton Khirnov 1e7d2007c3 all: use designated initializers for AVOption.unit
Makes it robust against adding fields before it, which will be useful in
following commits.

Majority of the patch generated by the following Coccinelle script:

@@
typedef AVOption;
identifier arr_name;
initializer list il;
initializer list[8] il1;
expression tail;
@@
AVOption arr_name[] = { il, { il1,
- tail
+ .unit = tail
}, ...  };

with some manual changes, as the script:
* has trouble with options defined inside macros
* sometimes does not handle options under an #else branch
* sometimes swallows whitespace
2024-02-14 14:53:41 +01:00
Andreas Rheinhardt 8449fbdf8e avfilter/vf_colormap: Avoid allocation of small array
The number of elements is always two or three.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-04-29 13:38:20 +02:00
Andreas Rheinhardt 9d2f427958 avfilter/vf_colormap: Remove unnecessary headers
In particular remove config_components.h in order to avoid unnecessary
rebuilds.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-04-29 13:38:14 +02:00
Andreas Rheinhardt fdc16fbb7a avfilter/vf_colormap: Fix declaration-after-statement
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-04-29 13:38:07 +02:00
Andreas Rheinhardt f4ace6d82d avfilter/vf_colormap: Properly uninit FFFrameSync, fix leak
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-04-29 13:37:51 +02:00
Paul B Mahol 08ac8bda38 avfilter/vf_colormap: avoid reallocating memory to build map 2022-04-26 09:21:56 +02:00
Paul B Mahol f908f365f9 avfilter/vf_colormap: change default nb_patches 2022-04-26 09:21:55 +02:00
Paul B Mahol 43ea19fef4 avfilter: add colormap video filter 2022-04-23 10:59:34 +02:00