libavutil/audioconvert.c File Reference

audio conversion routines More...

#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 []


Detailed Description

audio conversion routines

Definition in file audioconvert.c.


Function Documentation

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  ) 

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.

Parameters:
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]

Definition at line 38 of file audioconvert.c.

Referenced by av_get_channel_layout_string().


Variable Documentation

struct { ... } channel_layout_map[] [static]

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

const char* name

Definition at line 46 of file audioconvert.c.

Definition at line 47 of file audioconvert.c.

Referenced by avfilter_default_get_audio_buffer(), celt_header(), and main().


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