#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) |
int64_t | av_get_channel_layout (const char *name) |
Return a channel layout id that matches name, 0 if no match. | |
void | av_get_channel_layout_string (char *buf, int buf_size, int nb_channels, int64_t channel_layout) |
Return a description of a channel layout. | |
int | av_get_channel_layout_nb_channels (int64_t channel_layout) |
Return the number of channels in the channel layout. | |
Variables | |
static const char *const | channel_names [] |
struct { | |
const char * name | |
int nb_channels | |
int64_t layout | |
} | channel_layout_map [] |
Definition in file audioconvert.c.
int64_t av_get_channel_layout | ( | const char * | name | ) |
Return a channel layout id that matches name, 0 if no match.
Definition at line 65 of file audioconvert.c.
Referenced by avcodec_get_channel_layout(), and init().
int av_get_channel_layout_nb_channels | ( | int64_t | channel_layout | ) |
Return the number of channels in the channel layout.
Definition at line 110 of file audioconvert.c.
Referenced by av_get_channel_layout_string(), avcodec_channel_layout_num_channels(), avcodec_open2(), avfilter_default_get_audio_buffer(), config_props(), read_major_sync(), and transcode().
void av_get_channel_layout_string | ( | char * | buf, | |
int | buf_size, | |||
int | nb_channels, | |||
int64_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 77 of file audioconvert.c.
Referenced by avcodec_get_channel_layout_string(), avcodec_string(), config_props(), dprint_options(), ff_alsa_open(), ff_dlog_link(), oggvorbis_init_encoder(), and print_digraph().
static const char* get_channel_name | ( | int | channel_id | ) | [static] |
struct { ... } channel_layout_map[] [static] |
Referenced by av_get_channel_layout(), and av_get_channel_layout_string().
const char* const channel_names[] [static] |
Initial value:
{ "FL", "FR", "FC", "LFE", "BL", "BR", "FLC", "FRC", "BC", "SL", "SR", "TC", "TFL", "TFC", "TFR", "TBL", "TBC", "TBR", [29] = "DL", [30] = "DR", }
Definition at line 30 of file audioconvert.c.
Referenced by get_channel_name().
int64_t layout |
Definition at line 48 of file audioconvert.c.
Referenced by av_get_channel_layout_string(), ff_alsa_open(), ff_truehd_layout(), and mxf_read_pixel_layout().
const char* name |
Definition at line 46 of file audioconvert.c.
int nb_channels |
Definition at line 47 of file audioconvert.c.
Referenced by avfilter_default_get_audio_buffer(), celt_header(), and main().