You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/vf_lut3d: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -1147,8 +1147,6 @@ static int set_identity_matrix(AVFilterContext *ctx, int size)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
|
||||||
{
|
|
||||||
static const enum AVPixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24,
|
AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24,
|
||||||
AV_PIX_FMT_RGBA, AV_PIX_FMT_BGRA,
|
AV_PIX_FMT_RGBA, AV_PIX_FMT_BGRA,
|
||||||
@@ -1166,8 +1164,6 @@ static int query_formats(AVFilterContext *ctx)
|
|||||||
AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32,
|
AV_PIX_FMT_GBRPF32, AV_PIX_FMT_GBRAPF32,
|
||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
};
|
};
|
||||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int config_input(AVFilterLink *inlink)
|
static int config_input(AVFilterLink *inlink)
|
||||||
{
|
{
|
||||||
@@ -1366,7 +1362,7 @@ const AVFilter ff_vf_lut3d = {
|
|||||||
.uninit = lut3d_uninit,
|
.uninit = lut3d_uninit,
|
||||||
FILTER_INPUTS(lut3d_inputs),
|
FILTER_INPUTS(lut3d_inputs),
|
||||||
FILTER_OUTPUTS(lut3d_outputs),
|
FILTER_OUTPUTS(lut3d_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||||
.priv_class = &lut3d_class,
|
.priv_class = &lut3d_class,
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
|
||||||
.process_command = process_command,
|
.process_command = process_command,
|
||||||
@@ -1630,7 +1626,7 @@ const AVFilter ff_vf_haldclut = {
|
|||||||
.activate = activate,
|
.activate = activate,
|
||||||
FILTER_INPUTS(haldclut_inputs),
|
FILTER_INPUTS(haldclut_inputs),
|
||||||
FILTER_OUTPUTS(haldclut_outputs),
|
FILTER_OUTPUTS(haldclut_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||||
.priv_class = &haldclut_class,
|
.priv_class = &haldclut_class,
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
|
||||||
.process_command = process_command,
|
.process_command = process_command,
|
||||||
@@ -2293,7 +2289,7 @@ const AVFilter ff_vf_lut1d = {
|
|||||||
.init = lut1d_init,
|
.init = lut1d_init,
|
||||||
FILTER_INPUTS(lut1d_inputs),
|
FILTER_INPUTS(lut1d_inputs),
|
||||||
FILTER_OUTPUTS(lut1d_outputs),
|
FILTER_OUTPUTS(lut1d_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||||
.priv_class = &lut1d_class,
|
.priv_class = &lut1d_class,
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
|
||||||
.process_command = lut1d_process_command,
|
.process_command = lut1d_process_command,
|
||||||
|
Reference in New Issue
Block a user