Go to the documentation of this file.
26 #include "config_components.h"
71 for (
int j = 0; j < (*fmts)->nb_formats; j++) {
72 if (allfmts->
formats[
i] == (*fmts)->formats[j]) {
94 for (
char *sep, *cur =
s->pix_fmts; cur; cur = sep) {
95 sep = strchr(cur,
'|');
103 for (
char *sep, *cur =
s->csps; cur; cur = sep) {
104 sep = strchr(cur,
'|');
112 for (
char *sep, *cur =
s->ranges; cur; cur = sep) {
113 sep = strchr(cur,
'|');
121 if (!strcmp(
ctx->filter->name,
"noformat")) {
151 #define OFFSET(x) offsetof(FormatContext, x)
169 #if CONFIG_FORMAT_FILTER
172 .description =
NULL_IF_CONFIG_SMALL(
"Convert the input video to one of the specified pixel formats."),
178 .priv_class = &format_class,
189 #if CONFIG_NOFORMAT_FILTER
192 .description =
NULL_IF_CONFIG_SMALL(
"Force libavfilter not to use any of the specified pixel formats for the input to the next filter."),
193 .priv_class = &format_class,
AVPixelFormat
Pixel format.
const AVFilter ff_vf_noformat
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
AVFilterFormats * color_ranges
parsed from ranges
int av_color_space_from_name(const char *name)
int av_color_range_from_name(const char *name)
#define FILTER_QUERY_FUNC(func)
const char * name
Filter name.
A filter pad used for either input or output.
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
AVFilterFormats * formats
parsed from pix_fmts
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample format(the sample packing is implied by the sample format) and sample rate. The lists are not just lists
static enum AVPixelFormat pix_fmt
static enum AVPixelFormat pix_fmts[]
#define FILTER_INPUTS(array)
Describe the class of an AVClass context structure.
#define AV_OPT_FLAG_FILTERING_PARAM
A generic parameter which can be set by the user for filtering.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
AVFilterFormats * color_spaces
parsed from csps
AVFrame * ff_null_get_video_buffer(AVFilterLink *link, int w, int h)
#define i(width, name, range_min, range_max)
#define AV_OPT_FLAG_VIDEO_PARAM
const char * name
Pad name.
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
const AVFilter ff_vf_format
#define FILTER_OUTPUTS(array)
#define flags(name, subs,...)