mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_photosensitivity: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
5c3a243936
commit
3a33cdfa23
|
@ -70,16 +70,6 @@ static const AVOption photosensitivity_options[] = {
|
||||||
|
|
||||||
AVFILTER_DEFINE_CLASS(photosensitivity);
|
AVFILTER_DEFINE_CLASS(photosensitivity);
|
||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
|
||||||
{
|
|
||||||
static const enum AVPixelFormat pixel_fmts[] = {
|
|
||||||
AV_PIX_FMT_RGB24,
|
|
||||||
AV_PIX_FMT_BGR24,
|
|
||||||
AV_PIX_FMT_NONE
|
|
||||||
};
|
|
||||||
return ff_set_common_formats_from_list(ctx, pixel_fmts);
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef struct ThreadData_convert_frame
|
typedef struct ThreadData_convert_frame
|
||||||
{
|
{
|
||||||
AVFrame *in;
|
AVFrame *in;
|
||||||
|
@ -334,5 +324,5 @@ const AVFilter ff_vf_photosensitivity = {
|
||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
FILTER_INPUTS(inputs),
|
FILTER_INPUTS(inputs),
|
||||||
FILTER_OUTPUTS(outputs),
|
FILTER_OUTPUTS(outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_PIXFMTS(AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue