FFmpeg
|
Functions | |
uint64_t | av_get_channel_layout (const char *name) |
Return a channel layout id that matches name, or 0 if no match is found. More... | |
int | av_get_extended_channel_layout (const char *name, uint64_t *channel_layout, int *nb_channels) |
Return a channel layout and the number of channels based on the specified name. More... | |
void | av_get_channel_layout_string (char *buf, int buf_size, int nb_channels, uint64_t channel_layout) |
Return a description of a channel layout. More... | |
void | av_bprint_channel_layout (struct AVBPrint *bp, int nb_channels, uint64_t channel_layout) |
Append a description of a channel layout to a bprint buffer. More... | |
int | av_get_channel_layout_nb_channels (uint64_t channel_layout) |
Return the number of channels in the channel layout. More... | |
int64_t | av_get_default_channel_layout (int nb_channels) |
Return default channel layout for a given number of channels. More... | |
int | av_get_channel_layout_channel_index (uint64_t channel_layout, uint64_t channel) |
Get the index of a channel in channel_layout. More... | |
uint64_t | av_channel_layout_extract_channel (uint64_t channel_layout, int index) |
Get the channel with the given index in channel_layout. More... | |
const char * | av_get_channel_name (uint64_t channel) |
Get the name of a given channel. More... | |
const char * | av_get_channel_description (uint64_t channel) |
Get the description of a given channel. More... | |
int | av_get_standard_channel_layout (unsigned index, uint64_t *layout, const char **name) |
Get the value and name of a standard channel layout. More... | |
#define AV_CH_LAYOUT_MONO (AV_CH_FRONT_CENTER) |
Definition at line 90 of file channel_layout.h.
#define AV_CH_LAYOUT_STEREO (AV_CH_FRONT_LEFT|AV_CH_FRONT_RIGHT) |
Definition at line 91 of file channel_layout.h.
#define AV_CH_LAYOUT_2POINT1 (AV_CH_LAYOUT_STEREO|AV_CH_LOW_FREQUENCY) |
Definition at line 92 of file channel_layout.h.
#define AV_CH_LAYOUT_2_1 (AV_CH_LAYOUT_STEREO|AV_CH_BACK_CENTER) |
Definition at line 93 of file channel_layout.h.
#define AV_CH_LAYOUT_SURROUND (AV_CH_LAYOUT_STEREO|AV_CH_FRONT_CENTER) |
Definition at line 94 of file channel_layout.h.
#define AV_CH_LAYOUT_3POINT1 (AV_CH_LAYOUT_SURROUND|AV_CH_LOW_FREQUENCY) |
Definition at line 95 of file channel_layout.h.
#define AV_CH_LAYOUT_4POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_CENTER) |
Definition at line 96 of file channel_layout.h.
#define AV_CH_LAYOUT_4POINT1 (AV_CH_LAYOUT_4POINT0|AV_CH_LOW_FREQUENCY) |
Definition at line 97 of file channel_layout.h.
#define AV_CH_LAYOUT_2_2 (AV_CH_LAYOUT_STEREO|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT) |
Definition at line 98 of file channel_layout.h.
#define AV_CH_LAYOUT_QUAD (AV_CH_LAYOUT_STEREO|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 99 of file channel_layout.h.
#define AV_CH_LAYOUT_5POINT0 (AV_CH_LAYOUT_SURROUND|AV_CH_SIDE_LEFT|AV_CH_SIDE_RIGHT) |
Definition at line 100 of file channel_layout.h.
#define AV_CH_LAYOUT_5POINT1 (AV_CH_LAYOUT_5POINT0|AV_CH_LOW_FREQUENCY) |
Definition at line 101 of file channel_layout.h.
#define AV_CH_LAYOUT_5POINT0_BACK (AV_CH_LAYOUT_SURROUND|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 102 of file channel_layout.h.
#define AV_CH_LAYOUT_5POINT1_BACK (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_LOW_FREQUENCY) |
Definition at line 103 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_CENTER) |
Definition at line 104 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT0_FRONT (AV_CH_LAYOUT_2_2|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 105 of file channel_layout.h.
#define AV_CH_LAYOUT_HEXAGONAL (AV_CH_LAYOUT_5POINT0_BACK|AV_CH_BACK_CENTER) |
Definition at line 106 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_CENTER) |
Definition at line 107 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT1_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_BACK_CENTER) |
Definition at line 108 of file channel_layout.h.
#define AV_CH_LAYOUT_6POINT1_FRONT (AV_CH_LAYOUT_6POINT0_FRONT|AV_CH_LOW_FREQUENCY) |
Definition at line 109 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT0 (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 110 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT0_FRONT (AV_CH_LAYOUT_5POINT0|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 111 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT1 (AV_CH_LAYOUT_5POINT1|AV_CH_BACK_LEFT|AV_CH_BACK_RIGHT) |
Definition at line 112 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT1_WIDE (AV_CH_LAYOUT_5POINT1|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 113 of file channel_layout.h.
#define AV_CH_LAYOUT_7POINT1_WIDE_BACK (AV_CH_LAYOUT_5POINT1_BACK|AV_CH_FRONT_LEFT_OF_CENTER|AV_CH_FRONT_RIGHT_OF_CENTER) |
Definition at line 114 of file channel_layout.h.
#define AV_CH_LAYOUT_OCTAGONAL (AV_CH_LAYOUT_5POINT0|AV_CH_BACK_LEFT|AV_CH_BACK_CENTER|AV_CH_BACK_RIGHT) |
Definition at line 115 of file channel_layout.h.
#define AV_CH_LAYOUT_HEXADECAGONAL (AV_CH_LAYOUT_OCTAGONAL|AV_CH_WIDE_LEFT|AV_CH_WIDE_RIGHT|AV_CH_TOP_BACK_LEFT|AV_CH_TOP_BACK_RIGHT|AV_CH_TOP_BACK_CENTER|AV_CH_TOP_FRONT_CENTER|AV_CH_TOP_FRONT_LEFT|AV_CH_TOP_FRONT_RIGHT) |
Definition at line 116 of file channel_layout.h.
#define AV_CH_LAYOUT_STEREO_DOWNMIX (AV_CH_STEREO_LEFT|AV_CH_STEREO_RIGHT) |
Definition at line 117 of file channel_layout.h.
Definition at line 118 of file channel_layout.h.
enum AVMatrixEncoding |
Definition at line 120 of file channel_layout.h.
uint64_t av_get_channel_layout | ( | const char * | name | ) |
Return a channel layout id that matches name, or 0 if no match is found.
name can be one or several of the following notations, separated by '+' or '|':
Example: "stereo+FC" = "2c+FC" = "2c+1c" = "0x7"
Definition at line 145 of file channel_layout.c.
Referenced by av_get_extended_channel_layout(), av_opt_set(), channelmap_init(), get_channel(), init(), init_audio(), join_init(), opt_channel_layout(), and parse_channel_name().
int av_get_extended_channel_layout | ( | const char * | name, |
uint64_t * | channel_layout, | ||
int * | nb_channels | ||
) |
Return a channel layout and the number of channels based on the specified name.
This function is similar to (
[in] | name | channel layout specification string |
[out] | channel_layout | parsed channel layout (0 if unknown) |
[out] | nb_channels | number of channels |
Definition at line 161 of file channel_layout.c.
Referenced by ff_parse_channel_layout(), and init().
void av_get_channel_layout_string | ( | char * | buf, |
int | buf_size, | ||
int | nb_channels, | ||
uint64_t | channel_layout | ||
) |
Return a description of a channel layout.
If nb_channels is <= 0, it is guessed from the channel_layout.
buf | put here the string containing the channel layout |
buf_size | size in bytes of the buffer |
Definition at line 217 of file channel_layout.c.
Referenced by aac_encode_init(), audio_thread(), avcodec_open2(), channelmap_config_input(), channelmap_init(), clean_layout(), config_output(), config_props(), dprint_options(), draw_legend(), ff_alsa_open(), ff_encode_preinit(), ff_framehash_write_header(), ff_tlog_link(), filter_frame(), guess_channel_layout(), guess_input_channel_layout(), init_encoder(), init_filter_graph(), init_filters(), libopus_check_vorbis_layout(), libvorbis_setup(), main(), print_digraph(), print_formats_internal(), query_formats(), swr_build_matrix(), and swr_init().
void av_bprint_channel_layout | ( | struct AVBPrint * | bp, |
int | nb_channels, | ||
uint64_t | channel_layout | ||
) |
Append a description of a channel layout to a bprint buffer.
Definition at line 183 of file channel_layout.c.
Referenced by av_get_channel_layout_string(), avcodec_string(), config_output(), print_link_prop(), show_frame(), and show_stream().
int av_get_channel_layout_nb_channels | ( | uint64_t | channel_layout | ) |
Return the number of channels in the channel layout.
Definition at line 226 of file channel_layout.c.
Referenced by ac3_decode_frame(), add_stream(), atrac9_decode_init(), audio_decode_frame(), audio_open(), av_bprint_channel_layout(), av_buffersrc_add_frame_flags(), av_channel_layout_extract_channel(), av_get_channel_description(), av_get_channel_layout_channel_index(), av_get_channel_name(), av_get_extended_channel_layout(), available_samples(), avcodec_open2(), channelmap_init(), cleanup_redundant_layouts(), config_audio_output(), cook_decode_init(), ff_decode_frame_props(), ff_default_get_audio_buffer(), ff_encode_preinit(), ff_flac_parse_streaminfo(), ff_hls_senc_parse_audio_setup_info(), ff_mov_get_channel_layout_tag(), flac_read_header(), get_audio_buffer(), get_channel(), get_stream_info(), get_valid_channel_layout(), init(), init_audio(), join_init(), layouts_compatible(), main(), merge_channel_layouts(), mov_read_ddts(), mov_read_dec3(), open_output_file(), opt_channel_layout(), parse_channel_name(), parse_dsd_prop(), parse_mca_labels(), pick_format(), print_frame(), process_output(), pulse_write_header(), query_formats(), read_header_openmpt(), sane_layout(), select_channel_layout(), swap_channel_layouts_on_filter(), swr_alloc_set_opts(), swr_build_matrix(), swr_init(), swr_set_matrix(), swri_rematrix(), thd_channel_layout_extract_channel(), and wavpack_decode_block().
int64_t av_get_default_channel_layout | ( | int | nb_channels | ) |
Return default channel layout for a given number of channels.
Definition at line 231 of file channel_layout.c.
Referenced by audio_decode_frame(), audio_open(), channelmap_init(), configure_output_audio_filter(), encode_init(), ffat_init_encoder(), ffat_update_ctx(), get_audio_config(), get_channel_layout_single(), guess_channel_layout(), guess_input_channel_layout(), init(), init_filter(), init_filters(), init_resampler(), open_output_file(), query_formats(), set_channel_info(), and swr_init().
int av_get_channel_layout_channel_index | ( | uint64_t | channel_layout, |
uint64_t | channel | ||
) |
Get the index of a channel in channel_layout.
channel | a channel layout describing exactly one channel which must be present in channel_layout. |
Definition at line 239 of file channel_layout.c.
Referenced by ac3_decode_frame(), channelmap_config_input(), channelmap_init(), config_input(), config_output(), convert_coeffs(), init(), join_config_output(), parse_maps(), and read_restart_header().
uint64_t av_channel_layout_extract_channel | ( | uint64_t | channel_layout, |
int | index | ||
) |
Get the channel with the given index in channel_layout.
Definition at line 271 of file channel_layout.c.
Referenced by config_audio_output(), filter_channel(), filter_frame(), generate_kernel(), guess_map_any(), init(), join_config_output(), join_init(), query_formats(), and swr_build_matrix().
const char* av_get_channel_name | ( | uint64_t | channel | ) |
Get the name of a given channel.
Definition at line 249 of file channel_layout.c.
Referenced by channelmap_config_input(), dump_paramchange(), filter_frame(), init(), join_config_output(), parse_mca_labels(), show_layouts(), and swr_build_matrix().
const char* av_get_channel_description | ( | uint64_t | channel | ) |
Get the description of a given channel.
channel | a channel layout with a single channel |
Definition at line 260 of file channel_layout.c.
Referenced by show_layouts().
int av_get_standard_channel_layout | ( | unsigned | index, |
uint64_t * | layout, | ||
const char ** | name | ||
) |
Get the value and name of a standard channel layout.
[in] | index | index in an internal list, starting at 0 |
[out] | layout | channel layout mask |
[out] | name | name of the layout |
Definition at line 285 of file channel_layout.c.
Referenced by show_layouts().