Libav
|
Modules | |
Audio FIFO Buffer | |
Audio channel masks | |
Audio channel convenience macros | |
Audio downmix metadata | |
Audio sample formats | |
Audio sample format enumeration and related convenience functions. | |
Samples manipulation | |
Functions that manipulate audio samples. | |
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... | |
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... | |
int | av_get_channel_layout_nb_channels (uint64_t channel_layout) |
Return the number of channels in the channel layout. More... | |
uint64_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... | |
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" = "2+FC" = "2c+1c" = "0x7"
Definition at line 130 of file channel_layout.c.
Referenced by channelmap_init(), get_channel(), init(), init_audio(), join_init(), and opt_channel_layout().
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 146 of file channel_layout.c.
Referenced by avcodec_string(), channelmap_config_input(), channelmap_init(), config_output(), decode_audio(), dprint_options(), ff_alsa_open(), ff_audio_mix_set_matrix(), ff_dlog_link(), filter_frame(), guess_input_channel_layout(), init_filter_graph(), and print_digraph().
int av_get_channel_layout_nb_channels | ( | uint64_t | channel_layout | ) |
Return the number of channels in the channel layout.
Definition at line 180 of file channel_layout.c.
Referenced by add_audio_stream(), audio_encode_example(), av_buffersink_get_samples(), av_channel_layout_extract_channel(), av_frame_get_plane_buffer(), av_frame_ref(), av_get_channel_layout_channel_index(), av_get_channel_layout_string(), av_get_channel_name(), available_samples(), avcodec_open2(), avpriv_flac_parse_streaminfo(), avresample_build_matrix(), avresample_get_matrix(), avresample_open(), avresample_set_channel_mapping(), avresample_set_matrix(), buffer_offset(), calc_ptr_alignment(), channelmap_config_input(), channelmap_filter_frame(), channelmap_init(), config_input(), config_output(), cook_decode_init(), ff_default_get_audio_buffer(), ff_filter_frame(), ff_get_buffer(), ff_mov_get_channel_layout_tag(), filter_frame(), frame_copy_audio(), get_audio_buffer(), get_channel(), get_stream_info(), init(), join_init(), main(), mov_read_dec3(), opt_channel_layout(), process_output(), return_audio_frame(), select_channel_layout(), stream_component_open(), swap_channel_layouts_on_filter(), thd_channel_layout_extract_channel(), transcode_init(), unrefcount_frame(), and update_frame_pool().
uint64_t av_get_default_channel_layout | ( | int | nb_channels | ) |
Return default channel layout for a given number of channels.
Definition at line 185 of file channel_layout.c.
Referenced by channelmap_init(), configure_output_audio_filter(), ff_get_buffer(), get_channel_layout_single(), guess_input_channel_layout(), init_resampler(), open_output_file(), set_channel_info(), and stream_component_open().
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 200 of file channel_layout.c.
Referenced by channelmap_config_input(), channelmap_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 221 of file channel_layout.c.
Referenced by filter_frame(), guess_map_any(), init(), join_config_output(), join_init(), and query_formats().
const char* av_get_channel_name | ( | uint64_t | channel | ) |
Get the name of a given channel.
Definition at line 210 of file channel_layout.c.
Referenced by channelmap_config_input(), dump_paramchange(), init(), and join_config_output().