return formats;
}
-static int query_formats_format(AVFilterContext *ctx)
-{
- avfilter_set_common_formats(ctx, make_format_list(ctx->priv, 1));
- return 0;
-}
-
-static int query_formats_noformat(AVFilterContext *ctx)
-{
- avfilter_set_common_formats(ctx, make_format_list(ctx->priv, 0));
- return 0;
-}
-
static AVFilterPicRef *get_video_buffer(AVFilterLink *link, int perms,
int w, int h)
{
avfilter_draw_slice(link->dst->outputs[0], y, h, slice_dir);
}
+static int query_formats_format(AVFilterContext *ctx)
+{
+ avfilter_set_common_formats(ctx, make_format_list(ctx->priv, 1));
+ return 0;
+}
+
AVFilter avfilter_vf_format = {
.name = "format",
.description = "Convert the input video to one of the specified pixel formats.",
{ .name = NULL}},
};
+static int query_formats_noformat(AVFilterContext *ctx)
+{
+ avfilter_set_common_formats(ctx, make_format_list(ctx->priv, 0));
+ return 0;
+}
+
AVFilter avfilter_vf_noformat = {
.name = "noformat",
.description = "Force libavfilter not to use any of the specified pixel formats for the input to the next filter.",