Audio related
[Common utility functions]


Modules

 Audio channel masks
 Audio channel convenience macros

Functions

uint64_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, 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.

Function Documentation

uint64_t av_get_channel_layout ( const char *  name  ) 

Return a channel layout id that matches name, 0 if no match.

name can be one or several of the following notations, separated by '+' or '|':

  • the name of an usual channel layout (mono, stereo, 4.0, quad, 5.0, 5.0(side), 5.1, 5.1(side), 7.1, 7.1(wide), downmix);
  • the name of a single channel (FL, FR, FC, LFE, BL, BR, FLC, FRC, BC, SL, SR, TC, TFL, TFC, TFR, TBL, TBC, TBR, DL, DR);
  • a number of channels, in decimal, optionnally followed by 'c', yielding the default channel layout for that number of channels (
    See also:
    av_get_default_channel_layout);
  • a channel layout mask, in hexadecimal starting with "0x" (see the AV_CH_* macros). + Example: "stereo+FC" = "2+FC" = "2c+1c" = "0x7"

Definition at line 105 of file audioconvert.c.

Referenced by avcodec_get_channel_layout(), ff_parse_channel_layout(), init(), and parse_channel_name().

int av_get_channel_layout_nb_channels ( uint64_t  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.

Parameters:
buf put here the string containing the channel layout
buf_size size in bytes of the buffer

Definition at line 121 of file audioconvert.c.

Referenced by avcodec_get_channel_layout_string(), avcodec_string(), config_output(), config_props(), dprint_options(), ff_alsa_open(), ff_dlog_link(), filter_samples(), init(), log_input_change(), oggvorbis_init_encoder(), and print_digraph().

int64_t av_get_default_channel_layout ( int  nb_channels  ) 

Return default channel layout for a given number of channels.

Definition at line 164 of file audioconvert.c.

Referenced by audio_decode_frame(), do_audio_out(), get_channel_layout_single(), init(), stream_component_open(), swr_init(), and transcode_init().


Generated on Fri Oct 26 02:43:54 2012 for FFmpeg by  doxygen 1.5.8