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]) {
109 for (
char *sep, *cur =
s->pix_fmts; cur; cur = sep) {
110 sep = strchr(cur,
'|');
118 for (
char *sep, *cur =
s->csps; cur; cur = sep) {
119 sep = strchr(cur,
'|');
127 for (
char *sep, *cur =
s->ranges; cur; cur = sep) {
128 sep = strchr(cur,
'|');
136 if (!strcmp(
ctx->filter->name,
"noformat")) {
168 #define OFFSET(x) offsetof(FormatContext, x)
186 #if CONFIG_FORMAT_FILTER
189 .description =
NULL_IF_CONFIG_SMALL(
"Convert the input video to one of the specified pixel formats."),
195 .priv_class = &format_class,
206 #if CONFIG_NOFORMAT_FILTER
209 .description =
NULL_IF_CONFIG_SMALL(
"Force libavfilter not to use any of the specified pixel formats for the input to the next filter."),
210 .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
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
AVFilterFormats * color_ranges
parsed from ranges
#define FILTER_INPUTS(array)
int av_color_space_from_name(const char *name)
int av_color_range_from_name(const char *name)
const char * name
Filter name.
A filter pad used for either input or output.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
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_OUTPUTS(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 FILTER_QUERY_FUNC2(func)
#define AV_OPT_FLAG_VIDEO_PARAM
const char * name
Pad name.
enum AVPixelFormat av_get_pix_fmt(const char *name)
Return the pixel format corresponding to 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 flags(name, subs,...)
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...