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.
Construct an AVFilterChannelLayouts coding for any channel layout, with known or unknown disposition.
Construct an empty AVFilterChannelLayouts/AVFilterFormats struct -- representing any channel layout (with known disposition)/sample rate.
Return a list of all formats supported by FFmpeg for the given media type.
Add *ref as a new reference to f.
Remove a reference to a channel layouts list.
Before After ________ ________ |formats |<---------. |formats |<---------. | ____ | ___|___ | ____ | ___|___ | |refs| | | | | | |refs| | | | | NULL | |* *--------->|*oldref| | |* *--------->|*newref| ^ | |* * | | |_______| | |* * | | |_______| ___|___ | |____| | | |____| | | | | |________| |________| |*oldref| |_______|
Add *ref as a new reference to formats. That is the pointers will point like in the ascii art below: ________ |formats |<--------. | ____ | ____|___________________ | |refs| | | __|_ | |* * | | | | | | AVFilterLink | |* *--------->|*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.
Create a list of supported formats. This is intended for use in AVFilter->query_formats().
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.
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.
Construct a formats list containing all planar sample formats.
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.
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.
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.
A list of supported channel layouts.
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.
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.
Decode a channel count encoded as a channel layout. Return 0 if the channel layout was a real one.