|
FFmpeg
|
#include "libavutil/avassert.h"#include "libavutil/bprint.h"#include "libavutil/channel_layout.h"#include "libavutil/common.h"#include "libavutil/mem.h"#include "libavutil/pixdesc.h"#include "avfilter.h"#include "filters.h"#include "formats.h"Go to the source code of this file.
Macros | |
| #define | MERGE_REF(ret, a, fmts, type, fail_statement) |
| Add all refs from a to ret and destroy a. More... | |
| #define | MERGE_FORMATS(a, b, fmts, nb, type, check, empty_allowed) |
| Add all formats common to a and b to a, add b's refs to a and destroy b. More... | |
| #define | PRINT_NAME(type, type_name) |
| #define | CONVERSION_FILTER_SWSCALE |
| #define | CONVERSION_FILTER_ARESAMPLE |
| #define | MAKE_FORMAT_LIST(type, field, count_field) |
| #define | MAKE_FORMAT_LIST_TYPE(name, type) |
| #define | ADD_FORMAT(f, fmt, unref_fn, type, list, nb) |
| #define | ASSIGN_FMT(f, fmt, list, nb) |
| #define | ASSIGN_FMT(f, fmt, list, nb) |
| #define | FORMATS_REF(f, ref, unref_fn) |
| #define | FIND_REF_INDEX(ref, idx) |
| #define | FORMATS_UNREF(ref, list) |
| #define | FREE_LIST(ref, list) do { } while(0) |
| #define | FREE_LIST(ref, list) |
| #define | FORMATS_CHANGEREF(oldref, newref) |
| #define | SET_COMMON_FORMATS(ctx, fmts, media_type, ref_fn, unref_fn) |
| #define | SET_COMMON_FORMATS2(ctx, cfg_in, cfg_out, fmts, media_type, ref_fn, unref_fn) |
Functions | |
| static int | merge_formats_internal (AVFilterFormats *a, AVFilterFormats *b, enum AVMediaType type, int check) |
| static int | can_merge_pix_fmts (const void *a, const void *b) |
| Check the formats lists for compatibility for merging without actually merging. More... | |
| static int | merge_pix_fmts (void *a, void *b) |
| Merge the formats lists if they are compatible and update all the references of a and b to point to the combined list and free the old lists as needed. More... | |
| static int | can_merge_sample_fmts (const void *a, const void *b) |
| See can_merge_pix_fmts(). More... | |
| static int | merge_sample_fmts (void *a, void *b) |
| See merge_pix_fmts(). More... | |
| static int | merge_samplerates_internal (AVFilterFormats *a, AVFilterFormats *b, int check) |
| static int | can_merge_samplerates (const void *a, const void *b) |
| See can_merge_pix_fmts(). More... | |
| static int | merge_samplerates (void *a, void *b) |
| See merge_pix_fmts(). More... | |
| static int | merge_channel_layouts_internal (AVFilterChannelLayouts *a, AVFilterChannelLayouts *b, int check) |
| See merge_pix_fmts(). More... | |
| static int | can_merge_channel_layouts (const void *a, const void *b) |
| static int | merge_channel_layouts (void *a, void *b) |
| static int | merge_generic_internal (AVFilterFormats *a, AVFilterFormats *b, int check) |
| static int | can_merge_generic (const void *a, const void *b) |
| static int | merge_generic (void *a, void *b) |
| static void | print_channel_layout_desc (AVBPrint *bp, const void *layoutsp) |
| static void | print_sample_rate (AVBPrint *bp, const void *ratesp) |
| const AVFilterNegotiation * | ff_filter_get_negotiation (const AVFilterLink *link) |
| int | ff_fmt_is_in (int fmt, const int *fmts) |
| Tell if an integer is contained in the provided -1-terminated list of integers. More... | |
| AVFilterChannelLayouts * | ff_make_channel_layout_list (const AVChannelLayout *fmts) |
| int | ff_add_format (AVFilterFormats **avff, int64_t fmt) |
| Add fmt to the list of media formats contained in *avff. More... | |
| int | ff_add_channel_layout (AVFilterChannelLayouts **l, const AVChannelLayout *channel_layout) |
| AVFilterFormats * | ff_make_formats_list_singleton (int fmt) |
| Equivalent to ff_make_format_list({const int[]}{ fmt, -1 }) More... | |
| AVFilterFormats * | ff_all_formats (enum AVMediaType type) |
| Return a list of all formats supported by FFmpeg for the given media type. More... | |
| AVFilterFormats * | ff_formats_pixdesc_filter (unsigned want, unsigned rej) |
| Construct a formats list containing all pixel formats with certain properties. More... | |
| AVFilterFormats * | ff_planar_sample_fmts (void) |
| Construct a formats list containing all planar sample formats. More... | |
| AVFilterFormats * | ff_all_samplerates (void) |
| AVFilterChannelLayouts * | ff_all_channel_layouts (void) |
| Construct an empty AVFilterChannelLayouts/AVFilterFormats struct – representing any channel layout (with known disposition)/sample rate. More... | |
| AVFilterChannelLayouts * | ff_all_channel_counts (void) |
| Construct an AVFilterChannelLayouts coding for any channel layout, with known or unknown disposition. More... | |
| AVFilterFormats * | ff_all_color_spaces (void) |
| Construct an AVFilterFormats representing all possible color spaces. More... | |
| AVFilterFormats * | ff_all_color_ranges (void) |
| Construct an AVFilterFormats representing all possible color ranges. More... | |
| AVFilterFormats * | ff_all_alpha_modes (void) |
| Construct an AVFilterFormats representing all possible alpha modes. More... | |
| int | ff_channel_layouts_ref (AVFilterChannelLayouts *f, AVFilterChannelLayouts **ref) |
| Add *ref as a new reference to f. More... | |
| int | ff_formats_ref (AVFilterFormats *f, AVFilterFormats **ref) |
| Add *ref as a new reference to formats. More... | |
| 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. More... | |
| void | ff_channel_layouts_unref (AVFilterChannelLayouts **ref) |
| Remove a reference to a channel layouts list. More... | |
| void | ff_channel_layouts_changeref (AVFilterChannelLayouts **oldref, AVFilterChannelLayouts **newref) |
| void | ff_formats_changeref (AVFilterFormats **oldref, AVFilterFormats **newref) |
| int | ff_set_common_channel_layouts (AVFilterContext *ctx, AVFilterChannelLayouts *channel_layouts) |
| Helpers for query_formats() which set all free audio links to the same list of channel layouts/sample rates. More... | |
| int | ff_set_common_channel_layouts_from_list (AVFilterContext *ctx, const AVChannelLayout *fmts) |
| Equivalent to ff_set_common_channel_layouts(ctx, ff_make_channel_layout_list(fmts)) More... | |
| int | ff_set_common_all_channel_counts (AVFilterContext *ctx) |
| Equivalent to ff_set_common_channel_layouts(ctx, ff_all_channel_counts()) More... | |
| int | ff_set_common_samplerates (AVFilterContext *ctx, AVFilterFormats *samplerates) |
| int | ff_set_common_samplerates_from_list (AVFilterContext *ctx, const int *samplerates) |
| Equivalent to ff_set_common_samplerates(ctx, ff_make_format_list(samplerates)) More... | |
| int | ff_set_common_all_samplerates (AVFilterContext *ctx) |
| Equivalent to ff_set_common_samplerates(ctx, ff_all_samplerates()) More... | |
| int | ff_set_common_color_spaces (AVFilterContext *ctx, AVFilterFormats *color_spaces) |
| int | ff_set_common_color_spaces_from_list (AVFilterContext *ctx, const int *color_spaces) |
| Equivalent to ff_set_common_color_spaces(ctx, ff_make_format_list(color_spaces)) More... | |
| int | ff_set_common_all_color_spaces (AVFilterContext *ctx) |
| Equivalent to ff_set_common_color_spaces(ctx, ff_all_color_spaces()) More... | |
| int | ff_set_common_color_ranges (AVFilterContext *ctx, AVFilterFormats *color_ranges) |
| int | ff_set_common_color_ranges_from_list (AVFilterContext *ctx, const int *color_ranges) |
| Equivalent to ff_set_common_color_ranges(ctx, ff_make_format_list(color_ranges)) More... | |
| int | ff_set_common_all_color_ranges (AVFilterContext *ctx) |
| Equivalent to ff_set_common_color_ranges(ctx, ff_all_color_ranges()) More... | |
| int | ff_set_common_alpha_modes (AVFilterContext *ctx, AVFilterFormats *alpha_modes) |
| int | ff_set_common_alpha_modes_from_list (AVFilterContext *ctx, const int *alpha_modes) |
| Equivalent to ff_set_common_alpha_modes(ctx, ff_make_format_list(alpha_modes)) More... | |
| int | ff_set_common_all_alpha_modes (AVFilterContext *ctx) |
| Equivalent to ff_set_common_alpha_modes(ctx, ff_all_alpha_modes()) More... | |
| int | ff_set_common_formats (AVFilterContext *ctx, AVFilterFormats *formats) |
| A helper for query_formats() which sets all links to the same list of formats. More... | |
| int | ff_set_common_formats_from_list (AVFilterContext *ctx, const int *fmts) |
| Equivalent to ff_set_common_formats(ctx, ff_make_format_list(fmts)) More... | |
| int | ff_set_sample_formats_from_list (AVFilterContext *ctx, const enum AVSampleFormat *fmts) |
| Equivalent to ff_set_common_formats(ctx, ff_make_sample_format_list(fmts)) More... | |
| int | ff_set_pixel_formats_from_list (AVFilterContext *ctx, const enum AVPixelFormat *fmts) |
| Equivalent to ff_set_common_formats(ctx, ff_make_pixel_format_list(fmts)) More... | |
| int | ff_set_common_channel_layouts2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, AVFilterChannelLayouts *channel_layouts) |
| Helpers for query_formats2() which set all free audio links to the same list of channel layouts/sample rates. More... | |
| int | ff_set_common_channel_layouts_from_list2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, const AVChannelLayout *fmts) |
| int | ff_set_common_all_channel_counts2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
| int | ff_set_common_samplerates2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, AVFilterFormats *samplerates) |
| int | ff_set_common_samplerates_from_list2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, const int *samplerates) |
| int | ff_set_common_all_samplerates2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
| int | ff_set_common_color_spaces2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, AVFilterFormats *color_spaces) |
| int | ff_set_common_color_spaces_from_list2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, const int *color_spaces) |
| int | ff_set_common_all_color_spaces2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
| int | ff_set_common_color_ranges2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, AVFilterFormats *color_ranges) |
| int | ff_set_common_color_ranges_from_list2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, const int *color_ranges) |
| int | ff_set_common_all_color_ranges2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
| int | ff_set_common_alpha_modes2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, AVFilterFormats *alpha_modes) |
| int | ff_set_common_alpha_modes_from_list2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, const int *alpha_modes) |
| int | ff_set_common_all_alpha_modes2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
| int | ff_set_common_formats2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, AVFilterFormats *formats) |
| int | ff_set_common_formats_from_list2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, const int *fmts) |
| int | ff_set_sample_formats_from_list2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, const enum AVSampleFormat *fmts) |
| int | ff_set_pixel_formats_from_list2 (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out, const enum AVPixelFormat *fmts) |
| int | ff_default_query_formats (AVFilterContext *ctx) |
Sets all remaining unset filter lists for all inputs/outputs to their corresponding ff_all_*() lists. More... | |
| static int | check_list (void *log, const char *name, const AVFilterFormats *fmts) |
| int | ff_formats_check_pixel_formats (void *log, const AVFilterFormats *fmts) |
| Check that fmts is a valid pixel formats list. More... | |
| int | ff_formats_check_sample_formats (void *log, const AVFilterFormats *fmts) |
| Check that fmts is a valid sample formats list. More... | |
| int | ff_formats_check_sample_rates (void *log, const AVFilterFormats *fmts) |
| Check that fmts is a valid sample rates list. More... | |
| int | ff_formats_check_color_spaces (void *log, const AVFilterFormats *fmts) |
| Check that fmts is a valid formats list for YUV colorspace metadata. More... | |
| int | ff_formats_check_color_ranges (void *log, const AVFilterFormats *fmts) |
| int | ff_formats_check_alpha_modes (void *log, const AVFilterFormats *fmts) |
| Check that fmts is a valid formats list for alpha modes. More... | |
| static int | layouts_compatible (const AVChannelLayout *a, const AVChannelLayout *b) |
| int | ff_formats_check_channel_layouts (void *log, const AVFilterChannelLayouts *fmts) |
| Check that fmts is a valid channel layouts list. More... | |
Variables | |
| static const AVFilterFormatsMerger | mergers_video [] |
| static const AVFilterFormatsMerger | mergers_audio [] |
| static const AVFilterNegotiation | negotiate_video |
| static const AVFilterNegotiation | negotiate_audio |
Add all formats common to a and b to a, add b's refs to a and destroy b.
If check is set, nothing is modified and it is only checked whether the formats are compatible. If empty_allowed is set and one of a,b->nb is zero, the lists are merged; otherwise, 0 (for nonmergeability) is returned.
| #define PRINT_NAME | ( | type, | |
| type_name | |||
| ) |
| #define CONVERSION_FILTER_SWSCALE |
| #define CONVERSION_FILTER_ARESAMPLE |
| #define FIND_REF_INDEX | ( | ref, | |
| idx | |||
| ) |
| #define FORMATS_CHANGEREF | ( | oldref, | |
| newref | |||
| ) |
| #define SET_COMMON_FORMATS | ( | ctx, | |
| fmts, | |||
| media_type, | |||
| ref_fn, | |||
| unref_fn | |||
| ) |
| #define SET_COMMON_FORMATS2 | ( | ctx, | |
| cfg_in, | |||
| cfg_out, | |||
| fmts, | |||
| media_type, | |||
| ref_fn, | |||
| unref_fn | |||
| ) |
|
static |
Definition at line 94 of file formats.c.
Referenced by can_merge_pix_fmts(), can_merge_sample_fmts(), merge_pix_fmts(), and merge_sample_fmts().
|
static |
|
static |
Merge the formats lists if they are compatible and update all the references of a and b to point to the combined list and free the old lists as needed.
The combined list usually contains the intersection of the lists of a and b.
Both a and b must have owners (i.e. refcount > 0) for these functions.
|
static |
See can_merge_pix_fmts().
|
static |
See merge_pix_fmts().
|
static |
Definition at line 183 of file formats.c.
Referenced by can_merge_samplerates(), and merge_samplerates().
|
static |
See can_merge_pix_fmts().
|
static |
See merge_pix_fmts().
|
static |
See merge_pix_fmts().
Definition at line 212 of file formats.c.
Referenced by can_merge_channel_layouts(), and merge_channel_layouts().
|
static |
|
static |
|
static |
Definition at line 324 of file formats.c.
Referenced by can_merge_generic(), and merge_generic().
|
static |
|
static |
|
static |
| const AVFilterNegotiation* ff_filter_get_negotiation | ( | const AVFilterLink * | link | ) |
Definition at line 461 of file formats.c.
Referenced by print_filter_formats(), and query_formats().
| int ff_fmt_is_in | ( | int | fmt, |
| const int * | fmts | ||
| ) |
Tell if an integer is contained in the provided -1-terminated list of integers.
This is useful for determining (for instance) if an AVPixelFormat is in an array of supported formats.
| fmt | provided format |
| fmts | -1-terminated list of formats |
Definition at line 470 of file formats.c.
Referenced by config_input(), config_input_main(), config_input_overlay(), config_out_props(), config_props(), and filter_frame().
| AVFilterChannelLayouts* ff_make_channel_layout_list | ( | const AVChannelLayout * | fmts | ) |
Definition at line 512 of file formats.c.
Referenced by ff_set_common_channel_layouts_from_list(), ff_set_common_channel_layouts_from_list2(), movie_query_formats(), and query_formats().
| 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.
Definition at line 572 of file formats.c.
Referenced by asink_query_formats(), ff_all_alpha_modes(), ff_all_color_ranges(), ff_all_color_spaces(), ff_all_formats(), ff_draw_supported_pixel_formats(), ff_planar_sample_fmts(), hwupload_query_formats(), init(), libplacebo_query_format(), qrencodesrc_query_formats(), query_formats(), reduce_formats_on_filter(), and vsink_query_formats().
| int ff_add_channel_layout | ( | AVFilterChannelLayouts ** | l, |
| const AVChannelLayout * | channel_layout | ||
| ) |
Definition at line 589 of file formats.c.
Referenced by aeval_query_formats(), channelmap_query_formats(), join_query_formats(), query_formats(), and reduce_formats_on_filter().
| AVFilterFormats* ff_make_formats_list_singleton | ( | int | fmt | ) |
Equivalent to ff_make_format_list({const int[]}{ fmt, -1 })
Definition at line 597 of file formats.c.
Referenced by ff_default_query_formats(), libplacebo_query_format(), and query_formats().
| AVFilterFormats* ff_all_formats | ( | enum AVMediaType | type | ) |
Return a list of all formats supported by FFmpeg for the given media type.
Definition at line 603 of file formats.c.
Referenced by ff_default_query_formats(), hwmap_query_formats(), init(), and query_formats().
| AVFilterFormats* ff_formats_pixdesc_filter | ( | unsigned | want, |
| unsigned | rej | ||
| ) |
Construct a formats list containing all pixel formats with certain properties.
Definition at line 621 of file formats.c.
Referenced by ff_all_formats(), hwdownload_query_formats(), query_format(), and query_formats().
| AVFilterFormats* ff_planar_sample_fmts | ( | void | ) |
Construct a formats list containing all planar sample formats.
Definition at line 661 of file formats.c.
Referenced by channelmap_query_formats(), join_query_formats(), and query_formats().
| AVFilterFormats* ff_all_samplerates | ( | void | ) |
Definition at line 674 of file formats.c.
Referenced by ff_set_common_all_samplerates(), ff_set_common_all_samplerates2(), and query_formats().
| AVFilterChannelLayouts* ff_all_channel_layouts | ( | void | ) |
Construct an empty AVFilterChannelLayouts/AVFilterFormats struct – representing any channel layout (with known disposition)/sample rate.
Definition at line 680 of file formats.c.
Referenced by join_query_formats(), and query_formats().
| AVFilterChannelLayouts* ff_all_channel_counts | ( | void | ) |
Construct an AVFilterChannelLayouts coding for any channel layout, with known or unknown disposition.
Definition at line 689 of file formats.c.
Referenced by aeval_query_formats(), ff_set_common_all_channel_counts(), ff_set_common_all_channel_counts2(), and query_formats().
| AVFilterFormats* ff_all_color_spaces | ( | void | ) |
Construct an AVFilterFormats representing all possible color spaces.
Note: This list does not include AVCOL_SPC_RESERVED.
Definition at line 698 of file formats.c.
Referenced by ff_set_common_all_color_spaces(), ff_set_common_all_color_spaces2(), init(), libplacebo_query_format(), and query_formats().
| AVFilterFormats* ff_all_color_ranges | ( | void | ) |
Construct an AVFilterFormats representing all possible color ranges.
Definition at line 714 of file formats.c.
Referenced by ff_set_common_all_color_ranges(), ff_set_common_all_color_ranges2(), init(), libplacebo_query_format(), and query_formats().
| AVFilterFormats* ff_all_alpha_modes | ( | void | ) |
Construct an AVFilterFormats representing all possible alpha modes.
Definition at line 725 of file formats.c.
Referenced by ff_set_common_all_alpha_modes(), ff_set_common_all_alpha_modes2(), init(), libplacebo_query_format(), and query_formats().
| int ff_channel_layouts_ref | ( | AVFilterChannelLayouts * | f, |
| AVFilterChannelLayouts ** | ref | ||
| ) |
Add *ref as a new reference to f.
Definition at line 752 of file formats.c.
Referenced by aeval_query_formats(), channelmap_query_formats(), ff_set_common_channel_layouts(), ff_set_common_channel_layouts2(), join_query_formats(), movie_query_formats(), and query_formats().
| int 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| | |____| | | |____| |________| |________________________
Definition at line 757 of file formats.c.
Referenced by amf_setup_input_output_formats(), cudaupload_query_formats(), ff_set_common_alpha_modes(), ff_set_common_alpha_modes2(), ff_set_common_color_ranges(), ff_set_common_color_ranges2(), ff_set_common_color_spaces(), ff_set_common_color_spaces2(), ff_set_common_formats(), ff_set_common_formats2(), ff_set_common_samplerates(), ff_set_common_samplerates2(), hwdownload_query_formats(), hwmap_query_formats(), hwupload_query_formats(), init(), libplacebo_query_format(), movie_query_formats(), overlay_qsv_query_formats(), and query_formats().
| 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.
Before After
________ ________ NULL |formats |<-----—. |formats | ^ | ____ | ____|________________ | ____ | ____|________________ | |refs| | | __|_ | |refs| | | __|_ | |* * | | | | | | AVFilterLink | |* * | | | | | | AVFilterLink | |* ------—>|*ref| | | | | | |*ref| | |____| | | |____| | |____| | | |____| |________| |_____________________ |________| |_____________________
Definition at line 796 of file formats.c.
Referenced by ff_add_format(), ff_formats_ref(), ff_set_common_alpha_modes(), ff_set_common_alpha_modes2(), ff_set_common_color_ranges(), ff_set_common_color_ranges2(), ff_set_common_color_spaces(), ff_set_common_color_spaces2(), ff_set_common_formats(), ff_set_common_formats2(), ff_set_common_samplerates(), ff_set_common_samplerates2(), free_link(), invert_formats(), libplacebo_query_format(), pick_format(), and uninit().
| void ff_channel_layouts_unref | ( | AVFilterChannelLayouts ** | ref | ) |
Remove a reference to a channel layouts list.
Definition at line 808 of file formats.c.
Referenced by ff_add_channel_layout(), ff_channel_layouts_ref(), ff_set_common_channel_layouts(), ff_set_common_channel_layouts2(), free_link(), and pick_format().
| void ff_channel_layouts_changeref | ( | AVFilterChannelLayouts ** | oldref, |
| AVFilterChannelLayouts ** | newref | ||
| ) |
Definition at line 826 of file formats.c.
Referenced by avfilter_insert_filter().
| void ff_formats_changeref | ( | AVFilterFormats ** | oldref, |
| AVFilterFormats ** | newref | ||
| ) |
Before After
|formats |<------—. |formats |<------—. | ____ | ___|___ | ____ | ___|___ | |refs| | | | | | |refs| | | | | NULL | |* ------—>|*oldref| | | ------—>|*newref| ^ | | * | | |_______| | |* * | | |_______| ___|___ | |____| | | |____| | | | | |________| |________| |*oldref| |_______|
Definition at line 832 of file formats.c.
Referenced by avfilter_insert_filter().
| int ff_set_common_channel_layouts | ( | AVFilterContext * | ctx, |
| AVFilterChannelLayouts * | layouts | ||
| ) |
Helpers for query_formats() which set all free audio links to the same list of channel layouts/sample rates.
If there are no links hooked to this list, the list is freed.
Definition at line 869 of file formats.c.
Referenced by ff_set_common_all_channel_counts(), and ff_set_common_channel_layouts_from_list().
| int ff_set_common_channel_layouts_from_list | ( | AVFilterContext * | ctx, |
| const AVChannelLayout * | fmts | ||
| ) |
| int ff_set_common_all_channel_counts | ( | AVFilterContext * | ctx | ) |
Equivalent to ff_set_common_channel_layouts(ctx, ff_all_channel_counts())
Definition at line 882 of file formats.c.
Referenced by ff_default_query_formats().
| int ff_set_common_samplerates | ( | AVFilterContext * | ctx, |
| AVFilterFormats * | samplerates | ||
| ) |
Definition at line 887 of file formats.c.
Referenced by ff_set_common_all_samplerates(), and ff_set_common_samplerates_from_list().
| int ff_set_common_samplerates_from_list | ( | AVFilterContext * | ctx, |
| const int * | samplerates | ||
| ) |
| int ff_set_common_all_samplerates | ( | AVFilterContext * | ctx | ) |
Equivalent to ff_set_common_samplerates(ctx, ff_all_samplerates())
Definition at line 900 of file formats.c.
Referenced by ff_default_query_formats(), and query_formats().
| int ff_set_common_color_spaces | ( | AVFilterContext * | ctx, |
| AVFilterFormats * | color_spaces | ||
| ) |
Definition at line 905 of file formats.c.
Referenced by ff_set_common_all_color_spaces(), and ff_set_common_color_spaces_from_list().
| int ff_set_common_color_spaces_from_list | ( | AVFilterContext * | ctx, |
| const int * | color_spaces | ||
| ) |
| int ff_set_common_all_color_spaces | ( | AVFilterContext * | ctx | ) |
Equivalent to ff_set_common_color_spaces(ctx, ff_all_color_spaces())
Definition at line 918 of file formats.c.
Referenced by ff_default_query_formats().
| int ff_set_common_color_ranges | ( | AVFilterContext * | ctx, |
| AVFilterFormats * | color_ranges | ||
| ) |
Definition at line 923 of file formats.c.
Referenced by ff_set_common_all_color_ranges(), and ff_set_common_color_ranges_from_list().
| int ff_set_common_color_ranges_from_list | ( | AVFilterContext * | ctx, |
| const int * | color_ranges | ||
| ) |
| int ff_set_common_all_color_ranges | ( | AVFilterContext * | ctx | ) |
Equivalent to ff_set_common_color_ranges(ctx, ff_all_color_ranges())
Definition at line 936 of file formats.c.
Referenced by ff_default_query_formats().
| int ff_set_common_alpha_modes | ( | AVFilterContext * | ctx, |
| AVFilterFormats * | alpha_modes | ||
| ) |
Definition at line 941 of file formats.c.
Referenced by ff_set_common_all_alpha_modes(), and ff_set_common_alpha_modes_from_list().
| int ff_set_common_alpha_modes_from_list | ( | AVFilterContext * | ctx, |
| const int * | alpha_modes | ||
| ) |
| int ff_set_common_all_alpha_modes | ( | AVFilterContext * | ctx | ) |
Equivalent to ff_set_common_alpha_modes(ctx, ff_all_alpha_modes())
Definition at line 954 of file formats.c.
Referenced by ff_default_query_formats().
| int 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.
Definition at line 964 of file formats.c.
Referenced by ff_default_query_formats(), ff_set_common_formats_from_list(), ff_set_pixel_formats_from_list(), and ff_set_sample_formats_from_list().
| int ff_set_common_formats_from_list | ( | AVFilterContext * | ctx, |
| const int * | fmts | ||
| ) |
| int ff_set_sample_formats_from_list | ( | AVFilterContext * | ctx, |
| const enum AVSampleFormat * | fmts | ||
| ) |
Equivalent to ff_set_common_formats(ctx, ff_make_sample_format_list(fmts))
Definition at line 975 of file formats.c.
Referenced by query_formats().
| int ff_set_pixel_formats_from_list | ( | AVFilterContext * | ctx, |
| const enum AVPixelFormat * | fmts | ||
| ) |
| int ff_set_common_channel_layouts2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| AVFilterChannelLayouts * | channel_layouts | ||
| ) |
Helpers for query_formats2() which set all free audio links to the same list of channel layouts/sample rates.
If there are no links hooked to this list, the list is freed.
Definition at line 1018 of file formats.c.
Referenced by ff_set_common_all_channel_counts2(), ff_set_common_channel_layouts_from_list2(), and query_formats().
| int ff_set_common_channel_layouts_from_list2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| const AVChannelLayout * | fmts | ||
| ) |
Definition at line 1027 of file formats.c.
Referenced by asink_query_formats(), and query_formats().
| int ff_set_common_all_channel_counts2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out | ||
| ) |
Definition at line 1035 of file formats.c.
Referenced by query_formats().
| int ff_set_common_samplerates2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| AVFilterFormats * | samplerates | ||
| ) |
Definition at line 1042 of file formats.c.
Referenced by asink_query_formats(), ff_set_common_all_samplerates2(), ff_set_common_samplerates_from_list2(), and query_formats().
| int ff_set_common_samplerates_from_list2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| const int * | samplerates | ||
| ) |
Definition at line 1051 of file formats.c.
Referenced by asink_query_formats(), and query_formats().
| int ff_set_common_all_samplerates2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out | ||
| ) |
| int ff_set_common_color_spaces2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| AVFilterFormats * | color_spaces | ||
| ) |
Definition at line 1066 of file formats.c.
Referenced by ff_set_common_all_color_spaces2(), ff_set_common_color_spaces_from_list2(), query_formats(), and vsink_query_formats().
| int ff_set_common_color_spaces_from_list2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| const int * | color_spaces | ||
| ) |
Definition at line 1075 of file formats.c.
Referenced by vsink_query_formats().
| int ff_set_common_all_color_spaces2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out | ||
| ) |
| int ff_set_common_color_ranges2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| AVFilterFormats * | color_ranges | ||
| ) |
Definition at line 1090 of file formats.c.
Referenced by ff_set_common_all_color_ranges2(), ff_set_common_color_ranges_from_list2(), query_formats(), and vsink_query_formats().
| int ff_set_common_color_ranges_from_list2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| const int * | color_ranges | ||
| ) |
Definition at line 1099 of file formats.c.
Referenced by vsink_query_formats().
| int ff_set_common_all_color_ranges2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out | ||
| ) |
| int ff_set_common_alpha_modes2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| AVFilterFormats * | alpha_modes | ||
| ) |
Definition at line 1114 of file formats.c.
Referenced by ff_set_common_all_alpha_modes2(), ff_set_common_alpha_modes_from_list2(), query_formats(), and vsink_query_formats().
| int ff_set_common_alpha_modes_from_list2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| const int * | alpha_modes | ||
| ) |
Definition at line 1123 of file formats.c.
Referenced by query_formats(), and vsink_query_formats().
| int ff_set_common_all_alpha_modes2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out | ||
| ) |
| int ff_set_common_formats2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| AVFilterFormats * | formats | ||
| ) |
Definition at line 1138 of file formats.c.
Referenced by asink_query_formats(), channelmap_query_formats(), ff_set_common_formats_from_list2(), ff_set_pixel_formats_from_list2(), ff_set_sample_formats_from_list2(), join_query_formats(), qrencode_query_formats(), qrencodesrc_query_formats(), query_format(), query_formats(), and vsink_query_formats().
| int ff_set_common_formats_from_list2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| const int * | fmts | ||
| ) |
| int ff_set_sample_formats_from_list2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| const enum AVSampleFormat * | fmts | ||
| ) |
Definition at line 1155 of file formats.c.
Referenced by aeval_query_formats(), asink_query_formats(), and query_formats().
| int ff_set_pixel_formats_from_list2 | ( | const AVFilterContext * | ctx, |
| AVFilterFormatsConfig ** | cfg_in, | ||
| AVFilterFormatsConfig ** | cfg_out, | ||
| const enum AVPixelFormat * | fmts | ||
| ) |
Definition at line 1163 of file formats.c.
Referenced by ff_vaapi_vpp_query_formats(), geq_query_formats(), query_formats(), and vsink_query_formats().
| int ff_default_query_formats | ( | AVFilterContext * | ctx | ) |
Sets all remaining unset filter lists for all inputs/outputs to their corresponding ff_all_*() lists.
Definition at line 1171 of file formats.c.
Referenced by filter_query_formats(), and main().
|
static |
Definition at line 1234 of file formats.c.
Referenced by ff_formats_check_alpha_modes(), ff_formats_check_color_ranges(), ff_formats_check_color_spaces(), ff_formats_check_pixel_formats(), ff_formats_check_sample_formats(), and ff_formats_check_sample_rates().
| int ff_formats_check_pixel_formats | ( | void * | log, |
| const AVFilterFormats * | fmts | ||
| ) |
Check that fmts is a valid pixel formats list.
In particular, check for duplicates.
Definition at line 1255 of file formats.c.
Referenced by filter_link_check_formats().
| int ff_formats_check_sample_formats | ( | void * | log, |
| const AVFilterFormats * | fmts | ||
| ) |
Check that fmts is a valid sample formats list.
In particular, check for duplicates.
Definition at line 1260 of file formats.c.
Referenced by filter_link_check_formats().
| int ff_formats_check_sample_rates | ( | void * | log, |
| const AVFilterFormats * | fmts | ||
| ) |
Check that fmts is a valid sample rates list.
In particular, check for duplicates.
Definition at line 1265 of file formats.c.
Referenced by filter_link_check_formats().
| int ff_formats_check_color_spaces | ( | void * | log, |
| const AVFilterFormats * | fmts | ||
| ) |
Check that fmts is a valid formats list for YUV colorspace metadata.
In particular, check for duplicates.
Definition at line 1272 of file formats.c.
Referenced by filter_link_check_formats().
| int ff_formats_check_color_ranges | ( | void * | log, |
| const AVFilterFormats * | fmts | ||
| ) |
Definition at line 1283 of file formats.c.
Referenced by filter_link_check_formats().
| int ff_formats_check_alpha_modes | ( | void * | log, |
| const AVFilterFormats * | fmts | ||
| ) |
Check that fmts is a valid formats list for alpha modes.
In particular, check for duplicates.
Definition at line 1288 of file formats.c.
Referenced by filter_link_check_formats().
|
static |
Definition at line 1293 of file formats.c.
Referenced by ff_formats_check_channel_layouts().
| int ff_formats_check_channel_layouts | ( | void * | log, |
| const AVFilterChannelLayouts * | fmts | ||
| ) |
Check that fmts is a valid channel layouts list.
In particular, check for duplicates.
Definition at line 1300 of file formats.c.
Referenced by filter_link_check_formats().
|
static |
|
static |
Definition at line 451 of file formats.c.
Referenced by ff_filter_get_negotiation().
|
static |
Definition at line 456 of file formats.c.
Referenced by ff_filter_get_negotiation().
1.8.17