ffmpeg.libavfilter.formats

Undocumented in source.

Members

Functions

avfilter_make_format64_list
AVFilterChannelLayouts* avfilter_make_format64_list(int64_t* fmts)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ff_add_channel_layout
int ff_add_channel_layout(AVFilterChannelLayouts** l, uint64_t channel_layout)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ff_add_format
int ff_add_format(AVFilterFormats** avff, int64_t fmt)

Add fmt to the list of media formats contained in *avff. If *avff is NULL the function allocates the filter formats struct and puts its pointer in *avff.

ff_all_channel_counts
AVFilterChannelLayouts* ff_all_channel_counts()

Construct an AVFilterChannelLayouts coding for any channel layout, with known or unknown disposition.

ff_all_channel_layouts
AVFilterChannelLayouts* ff_all_channel_layouts()

Construct an empty AVFilterChannelLayouts/AVFilterFormats struct -- representing any channel layout (with known disposition)/sample rate.

ff_all_formats
AVFilterFormats* ff_all_formats(ffmpeg.libavutil.avutil.AVMediaType type)

Return a list of all formats supported by FFmpeg for the given media type.

ff_all_samplerates
AVFilterFormats* ff_all_samplerates()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ff_channel_layouts_changeref
void ff_channel_layouts_changeref(AVFilterChannelLayouts** oldref, AVFilterChannelLayouts** newref)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ff_channel_layouts_ref
void ff_channel_layouts_ref(AVFilterChannelLayouts* f, AVFilterChannelLayouts** _ref)

Add *ref as a new reference to f.

ff_channel_layouts_unref
void ff_channel_layouts_unref(AVFilterChannelLayouts** _ref)

Remove a reference to a channel layouts list.

ff_default_query_formats
int ff_default_query_formats(AVFilterContext* ctx)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ff_formats_changeref
void ff_formats_changeref(AVFilterFormats** oldref, AVFilterFormats** newref)

Before After ________ ________ |formats |<---------. |formats |<---------. | ____ | ___|___ | ____ | ___|___ | |refs| | | | | | |refs| | | | | NULL | |* *--------->|*oldref| | |* *--------->|*newref| ^ | |* * | | |_______| | |* * | | |_______| ___|___ | |____| | | |____| | | | | |________| |________| |*oldref| |_______|

ff_formats_ref
void ff_formats_ref(AVFilterFormats* formats, AVFilterFormats** _ref)

Add *ref as a new reference to formats. That is the pointers will point like in the ascii art below: ________ |formats |<--------. | ____ | ____|___________________ | |refs| | | __|_ | |* * | | | | | | AVFilterLink | |* *--------->|*ref| | |____| | | |____| |________| |________________________

ff_formats_unref
void ff_formats_unref(AVFilterFormats** _ref)

If *ref is non-NULL, remove *ref as a reference to the format list it currently points to, deallocates that list if this was the last reference, and sets *ref to NULL.

ff_make_format_list
AVFilterFormats* ff_make_format_list(int* fmts)

Create a list of supported formats. This is intended for use in AVFilter->query_formats().

ff_make_formatu64_list
AVFilterChannelLayouts* ff_make_formatu64_list(uint64_t* fmts)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ff_merge_channel_layouts
AVFilterChannelLayouts* ff_merge_channel_layouts(AVFilterChannelLayouts* a, AVFilterChannelLayouts* b)

Return a channel layouts/samplerates list which contains the intersection of the layouts/samplerates of a and b. Also, all the references of a, all the references of b, and a and b themselves will be deallocated.

ff_merge_formats
AVFilterFormats* ff_merge_formats(AVFilterFormats* a, AVFilterFormats* b, ffmpeg.libavutil.avutil.AVMediaType type)

Return a format list which contains the intersection of the formats of a and b. Also, all the references of a, all the references of b, and a and b themselves will be deallocated.

ff_merge_samplerates
AVFilterFormats* ff_merge_samplerates(AVFilterFormats* a, AVFilterFormats* b)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ff_planar_sample_fmts
AVFilterFormats* ff_planar_sample_fmts()

Construct a formats list containing all planar sample formats.

ff_query_formats_all
int ff_query_formats_all(AVFilterContext* ctx)

Set the formats list to all existing formats. This function behaves like ff_default_query_formats(), except it also accepts channel layouts with unknown disposition. It should only be used with audio filters.

ff_set_common_channel_layouts
void ff_set_common_channel_layouts(AVFilterContext* ctx, AVFilterChannelLayouts* layouts)

A helper for query_formats() which sets all links to the same list of channel layouts/sample rates. If there are no links hooked to this filter, the list is freed.

ff_set_common_formats
void ff_set_common_formats(AVFilterContext* ctx, AVFilterFormats* formats)

A helper for query_formats() which sets all links to the same list of formats. If there are no links hooked to this filter, the list of formats is freed.

ff_set_common_samplerates
void ff_set_common_samplerates(AVFilterContext* ctx, AVFilterFormats* samplerates)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

AVFilterChannelLayouts
struct AVFilterChannelLayouts

A list of supported channel layouts.

AVFilterFormats
struct AVFilterFormats

A list of supported formats for one end of a filter link. This is used during the format negotiation process to try to pick the best format to use to minimize the number of necessary conversions. Each filter gives a list of the formats supported by each input and output pad. The list given for each pad need not be distinct - they may be references to the same list of formats, as is often the case when a filter supports multiple formats, but will always output the same format as it is given in input.

Templates

FF_COUNT2LAYOUT
template FF_COUNT2LAYOUT(int c)

Encode a channel count as a channel layout. FF_COUNT2LAYOUT(c) means any channel layout with c channels, with a known or unknown disposition. The result is only valid inside AVFilterChannelLayouts and immediately related functions.

FF_LAYOUT2COUNT
template FF_LAYOUT2COUNT(int l)

Decode a channel count encoded as a channel layout. Return 0 if the channel layout was a real one.

Meta