#include "avstring.h"
#include "avutil.h"
#include "audioconvert.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. | |
| 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. | |
| int | av_get_channel_layout_nb_channels (uint64_t channel_layout) |
| Return the number of channels in the channel layout. | |
| int64_t | av_get_default_channel_layout (int nb_channels) |
| Return default channel layout for a given number of channels. | |
Variables | |
| static const char *const | channel_names [] |
| struct { | |
| const char * name | |
| int nb_channels | |
| uint64_t layout | |
| } | channel_layout_map [] |
Definition in file audioconvert.c.
| static uint64_t get_channel_layout_single | ( | const char * | name, | |
| int | name_len | |||
| ) | [static] |
| static const char* get_channel_name | ( | int | channel_id | ) | [static] |
struct { ... } channel_layout_map[] [static] |
Referenced by av_get_channel_layout_string(), av_get_default_channel_layout(), and get_channel_layout_single().
const char* const channel_names[] [static] |
Initial value:
{
[0] = "FL",
[1] = "FR",
[2] = "FC",
[3] = "LFE",
[4] = "BL",
[5] = "BR",
[6] = "FLC",
[7] = "FRC",
[8] = "BC",
[9] = "SL",
[10] = "SR",
[11] = "TC",
[12] = "TFL",
[13] = "TFC",
[14] = "TFR",
[15] = "TBL",
[16] = "TBC",
[17] = "TBR",
[29] = "DL",
[30] = "DR",
[31] = "WL",
[32] = "WR",
[33] = "SDL",
[34] = "SDR",
}
Definition at line 30 of file audioconvert.c.
Referenced by get_channel_layout_single(), and get_channel_name().
| uint64_t layout |
Definition at line 67 of file audioconvert.c.
Referenced by av_get_channel_layout(), av_get_channel_layout_string(), config_output(), count_channels(), encode_init(), ff_alsa_open(), ff_mov_get_channel_layout_tag(), ff_truehd_layout(), get_channel_layout_single(), mxf_read_pixel_layout(), opt_channel_layout(), output_configure(), parse_channel_name(), print_link_prop(), query_formats(), and sniff_channel_order().
| const char* name |
Definition at line 65 of file audioconvert.c.
| int nb_channels |
Definition at line 66 of file audioconvert.c.
Referenced by av_asrc_buffer_add_buffer(), av_buffersink_read_samples(), avfilter_copy_buf_props(), avfilter_ref_buffer(), celt_header(), ff_default_get_audio_buffer(), filter_samples(), main(), and MPA_encode_frame().
1.5.8