FFmpeg
|
audio channel layout utility functions More...
#include <stdint.h>
#include "avstring.h"
#include "avutil.h"
#include "channel_layout.h"
#include "bprint.h"
#include "common.h"
Go to the source code of this file.
Data Structures | |
struct | channel_name |
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... | |
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_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... | |
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... | |
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... | |
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... | |
uint64_t | av_channel_layout_extract_channel (uint64_t channel_layout, int index) |
Get the channel with the given index in channel_layout. 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... | |
Variables | |
static const struct channel_name | 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 67 of file channel_layout.c.
Referenced by av_bprint_channel_layout(), and av_get_channel_name().
|
static |
Definition at line 109 of file channel_layout.c.
Referenced by av_get_channel_layout().
|
static |
Definition at line 39 of file channel_layout.c.
const char* name |
Definition at line 75 of file channel_layout.c.
int nb_channels |
Definition at line 76 of file channel_layout.c.
Referenced by av_samples_copy(), av_samples_fill_arrays(), av_samples_set_silence(), buffer_offset(), celt_header(), channelmap_config_input(), config_audio_output(), config_output(), ff_mpa_l2_select_table(), ff_parse_channel_layout(), fill_coding_method_array(), fill_samples(), filter_frame(), init(), libopus_copy_samples_with_channel_map(), main(), MPA_encode_frame(), push_frame(), push_single_pic(), return_audio_frame(), select_channel_layout(), and stream_component_open().
uint64_t layout |
Definition at line 77 of file channel_layout.c.
Referenced by av_bprint_channel_layout(), av_get_channel_layout(), av_get_extended_channel_layout(), clean_layout(), count_channels(), dump_paramchange(), encode_init(), ff_mov_get_channel_layout_tag(), ff_opus_parse_extradata(), ff_truehd_layout(), ffat_convert_layout(), ffat_update_ctx(), get_channel_layout_single(), main(), MAKE_REORDER_FUNCS(), mjpeg_decode_app(), mkv_parse_video_projection(), mov_read_sv3d(), mxf_read_pixel_layout(), opt_channel_layout(), opus_decode_init(), output_configure(), parse_channel_name(), print_link_prop(), query_formats(), show_layouts(), and sniff_channel_order().
const { ... } channel_layout_map[] |
Referenced by av_bprint_channel_layout(), av_get_default_channel_layout(), av_get_standard_channel_layout(), and get_channel_layout_single().