Libav
|
audio channel layout utility functions More...
#include <stdint.h>
#include "avstring.h"
#include "avutil.h"
#include "channel_layout.h"
#include "common.h"
Go to the source code of this file.
Functions | |
static const char * | get_channel_name (int channel_id) |
static uint64_t | get_channel_layout_single (const char *name, int name_len) |
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... | |
const char * | av_get_channel_name (uint64_t channel) |
Get the name of a given channel. 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... | |
Variables | |
static const char *const | channel_names [] |
struct { | |
const char * name | |
int nb_channels | |
uint64_t layout | |
} | channel_layout_map [] |
audio channel layout utility functions
Definition in file channel_layout.c.
|
static |
Definition at line 61 of file channel_layout.c.
Referenced by av_get_channel_layout_string(), and av_get_channel_name().
|
static |
Definition at line 104 of file channel_layout.c.
Referenced by av_get_channel_layout().
|
static |
Definition at line 33 of file channel_layout.c.
Referenced by get_channel_layout_single(), and get_channel_name().
const char* name |
Definition at line 69 of file channel_layout.c.
Referenced by add_input_streams(), asf_read_ext_content_desc(), asf_read_marker(), asf_read_metadata(), av_dump_format(), av_get_channel_layout_string(), av_opt_next(), avconv_cleanup(), avi_read_nikon(), color_table_compare(), configure_input_audio_filter(), configure_input_video_filter(), configure_output_audio_filter(), configure_output_video_filter(), decode_info_header(), ff_alsa_open(), graph_insert_fifos(), init(), insert_trim(), join_init(), main(), matroska_convert_tag(), opt_loglevel(), parse_filter(), parse_inputs(), parse_link_name(), parse_outputs(), probe_group_enter(), rtmp_send_packet(), sdt_cb(), set_codec_from_probe_data(), show_formats(), show_protocols(), split_commandline(), split_init(), and wtvfile_open2().
int nb_channels |
Definition at line 70 of file channel_layout.c.
Referenced by av_buffersink_get_samples(), av_samples_copy(), av_samples_fill_arrays(), av_samples_set_silence(), buffer_offset(), celt_header(), channelmap_config_input(), ff_mpa_l2_select_table(), fill_coding_method_array(), filter_frame(), get_audio_frame(), init(), main(), MPA_encode_frame(), return_audio_frame(), and select_channel_layout().
uint64_t layout |
Definition at line 71 of file channel_layout.c.
Referenced by av_get_channel_layout(), av_get_channel_layout_string(), count_channels(), ff_alsa_open(), ff_mov_get_channel_layout_tag(), get_channel_layout_single(), mxf_read_pixel_layout(), opt_channel_layout(), output_configure(), sniff_channel_order(), and truehd_layout().
const { ... } channel_layout_map[] |
Referenced by av_get_channel_layout_string(), and get_channel_layout_single().