mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
avfilter/vf_removelogo: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
4c0adcd07e
commit
3a25adb895
@ -203,12 +203,6 @@ static void convert_mask_to_strength_mask(uint8_t *data, int linesize,
|
|||||||
*max_mask_size = apply_mask_fudge_factor(current_pass + 1);
|
*max_mask_size = apply_mask_fudge_factor(current_pass + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
|
||||||
{
|
|
||||||
static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE };
|
|
||||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int load_mask(uint8_t **mask, int *w, int *h,
|
static int load_mask(uint8_t **mask, int *w, int *h,
|
||||||
const char *filename, void *log_ctx)
|
const char *filename, void *log_ctx)
|
||||||
{
|
{
|
||||||
@ -576,7 +570,7 @@ const AVFilter ff_vf_removelogo = {
|
|||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
FILTER_INPUTS(removelogo_inputs),
|
FILTER_INPUTS(removelogo_inputs),
|
||||||
FILTER_OUTPUTS(removelogo_outputs),
|
FILTER_OUTPUTS(removelogo_outputs),
|
||||||
FILTER_QUERY_FUNC(query_formats),
|
FILTER_SINGLE_PIXFMT(AV_PIX_FMT_YUV420P),
|
||||||
.priv_class = &removelogo_class,
|
.priv_class = &removelogo_class,
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user