#include "avfilter.h"
Go to the source code of this file.
Before After
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.
Definition at line 102 of file formats.h.
Referenced by aeval_query_formats(), asink_query_formats(), ff_merge_channel_layouts(), and query_formats().
Decode a channel count encoded as a channel layout.
Return 0 if the channel layout was a real one.
Definition at line 108 of file formats.h.
Referenced by pick_format(), reduce_formats_on_filter(), and swap_channel_layouts_on_filter().
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.
If a and b do not share any common elements, neither is modified, and NULL is returned.
Definition at line 166 of file formats.c.
Referenced by query_formats().
Definition at line 139 of file formats.c.
Referenced by can_merge_formats(), and query_formats().
Construct an empty AVFilterChannelLayouts/AVFilterFormats struct – representing any channel layout (with known disposition)/sample rate.
Definition at line 392 of file formats.c.
Referenced by channelmap_query_formats(), ff_default_query_formats(), filter_query_formats(), join_query_formats(), and query_formats().
Definition at line 386 of file formats.c.
Referenced by aeval_query_formats(), channelmap_query_formats(), default_query_formats_common(), filter_query_formats(), join_query_formats(), and query_formats().
Construct an AVFilterChannelLayouts coding for any channel layout, with known or unknown disposition.
Definition at line 401 of file formats.c.
Referenced by aeval_query_formats(), asink_query_formats(), ff_query_formats_all(), and query_formats().
Definition at line 303 of file formats.c.
Referenced by movie_query_formats(), and query_formats().
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.
Definition at line 516 of file formats.c.
Referenced by aeval_query_formats(), asink_query_formats(), default_query_formats_common(), filter_query_formats(), and query_formats().
Definition at line 523 of file formats.c.
Referenced by aeval_query_formats(), asink_query_formats(), channelmap_query_formats(), default_query_formats_common(), filter_query_formats(), join_query_formats(), and query_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.
Definition at line 535 of file formats.c.
Referenced by aeval_query_formats(), asink_query_formats(), channelmap_query_formats(), default_query_formats_common(), filter_query_formats(), geq_query_formats(), join_query_formats(), pp_query_formats(), query_formats(), and vsink_query_formats().
Definition at line 336 of file formats.c.
Referenced by aeval_query_formats(), asink_query_formats(), channelmap_init(), init(), join_query_formats(), query_formats(), and reduce_formats_on_filter().
Add *ref as a new reference to f.
Definition at line 417 of file formats.c.
Referenced by aeval_query_formats(), channelmap_query_formats(), ff_set_common_channel_layouts(), join_query_formats(), movie_query_formats(), and query_formats().
Remove a reference to a channel layouts list.
Definition at line 463 of file formats.c.
Referenced by asink_query_formats(), free_link(), and pick_format().
Definition at line 481 of file formats.c.
Referenced by avfilter_insert_filter().
Definition at line 557 of file formats.c.
Referenced by main(), query_formats(), and vsink_query_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.
Create a list of supported formats.
This is intended for use in AVFilter->query_formats().
Definition at line 294 of file formats.c.
Referenced by aeval_query_formats(), geq_query_formats(), movie_query_formats(), pp_query_formats(), and query_formats().
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.
Definition at line 330 of file formats.c.
Referenced by asink_query_formats(), ff_all_formats(), ff_draw_supported_pixel_formats(), ff_planar_sample_fmts(), init(), query_formats(), reduce_formats_on_filter(), and vsink_query_formats().
Return a list of all formats supported by FFmpeg for the given media type.
Definition at line 343 of file formats.c.
Referenced by default_query_formats_common(), filter_query_formats(), and query_formats().
Construct a formats list containing all planar sample formats.
Definition at line 374 of file formats.c.
Referenced by channelmap_query_formats(), join_query_formats(), and query_formats().
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.
If a and b do not share any common formats, neither is modified, and NULL is returned.
Definition at line 92 of file formats.c.
Referenced by can_merge_formats(), and query_formats().
Add *ref as a new reference to formats.
That is the pointers will point like in the ascii art below:
Definition at line 422 of file formats.c.
Referenced by ff_set_common_formats(), ff_set_common_samplerates(), movie_query_formats(), and query_formats().
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.
Before After
________ ________ NULL |formats |<-----—. |formats | ^ | ____ | ____|________________ | ____ | ____|________________ | |refs| | | __|_ | |refs| | | __|_ | |* * | | | | | | AVFilterLink | |* * | | | | | | AVFilterLink | |* *------—>|*ref| | |* | | | |*ref| | |____| | | |____| | |____| | | |____| |________| |_____________________ |________| |_____________________
Definition at line 458 of file formats.c.
Referenced by asink_query_formats(), free_link(), pick_format(), query_formats(), and vsink_query_formats().
Before After
|formats |<---------.
| ____ | ___|___ | ____ | ___|___ | |refs| | | | | | |refs| | | | | NULL | |* *------—>|*oldref| | |* *------—>|*newref| ^ | |* * | | |_______| | |* * | | |_______| ___|___ | |____| | | |____| | | | | |________| |________| |*oldref| |_______|
Definition at line 487 of file formats.c.
Referenced by avfilter_insert_filter().