libavcodec/resample.c File Reference

samplerate conversion for both audio and video More...

#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  ReSampleContext

Defines

#define TAPS   16

Functions

static void stereo_to_mono (short *output, short *input, int n1)
static void mono_to_stereo (short *output, short *input, int n1)
static void stereo_split (short *output1, short *output2, short *input, int n)
static void stereo_mux (short *output, short *input1, short *input2, int n)
static void ac3_5p1_mux (short *output, short *input1, short *input2, int n)
ReSampleContextaudio_resample_init (int output_channels, int input_channels, int output_rate, int input_rate)
int audio_resample (ReSampleContext *s, short *output, short *input, int nb_samples)
void audio_resample_close (ReSampleContext *s)


Detailed Description

samplerate conversion for both audio and video

Definition in file resample.c.


Define Documentation

#define TAPS   16

Referenced by audio_resample_init().


Function Documentation

static void ac3_5p1_mux ( short *  output,
short *  input1,
short *  input2,
int  n 
) [static]

Definition at line 112 of file resample.c.

Referenced by audio_resample().

int audio_resample ( ReSampleContext s,
short *  output,
short *  input,
int  nb_samples 
)

Definition at line 172 of file resample.c.

Referenced by do_audio_out().

void audio_resample_close ( ReSampleContext s  ) 

Definition at line 244 of file resample.c.

Referenced by av_encode().

ReSampleContext* audio_resample_init ( int  output_channels,
int  input_channels,
int  output_rate,
int  input_rate 
)

Definition at line 129 of file resample.c.

Referenced by do_audio_out().

static void mono_to_stereo ( short *  output,
short *  input,
int  n1 
) [static]

Definition at line 66 of file resample.c.

Referenced by audio_resample().

static void stereo_mux ( short *  output,
short *  input1,
short *  input2,
int  n 
) [static]

Definition at line 102 of file resample.c.

Referenced by audio_resample().

static void stereo_split ( short *  output1,
short *  output2,
short *  input,
int  n 
) [static]

Definition at line 92 of file resample.c.

Referenced by audio_resample().

static void stereo_to_mono ( short *  output,
short *  input,
int  n1 
) [static]

Definition at line 41 of file resample.c.

Referenced by audio_resample().


Generated on Fri Apr 23 15:12:01 2010 for ffmpeg by  doxygen 1.5.6