#include "avcodec.h"
#include "audioconvert.h"
#include "opt.h"
Go to the source code of this file.
Data Structures | |
| struct | ReSampleContext |
Defines | |
| #define | TAPS 16 |
Functions | |
| static const char * | context_to_name (void *ptr) |
| 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) |
| ReSampleContext * | av_audio_resample_init (int output_channels, int input_channels, int output_rate, int input_rate, enum SampleFormat sample_fmt_out, enum SampleFormat sample_fmt_in, int filter_length, int log2_phase_count, int linear, double cutoff) |
| Initializes audio resampling context. | |
| ReSampleContext * | audio_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) |
Variables | |
| static const AVOption | options [] = {{NULL}} |
| static const AVClass | audioresample_context_class = { "ReSampleContext", context_to_name, options, LIBAVUTIL_VERSION_INT } |
Definition in file resample.c.
| #define TAPS 16 |
Referenced by audio_resample_init().
| static void ac3_5p1_mux | ( | short * | output, | |
| short * | input1, | |||
| short * | input2, | |||
| int | n | |||
| ) | [static] |
| int audio_resample | ( | ReSampleContext * | s, | |
| short * | output, | |||
| short * | input, | |||
| int | nb_samples | |||
| ) |
| void audio_resample_close | ( | ReSampleContext * | s | ) |
Definition at line 364 of file resample.c.
| ReSampleContext* audio_resample_init | ( | int | output_channels, | |
| int | input_channels, | |||
| int | output_rate, | |||
| int | input_rate | |||
| ) |
| ReSampleContext* av_audio_resample_init | ( | int | output_channels, | |
| int | input_channels, | |||
| int | output_rate, | |||
| int | input_rate, | |||
| enum SampleFormat | sample_fmt_out, | |||
| enum SampleFormat | sample_fmt_in, | |||
| int | filter_length, | |||
| int | log2_phase_count, | |||
| int | linear, | |||
| double | cutoff | |||
| ) |
Initializes audio resampling context.
| output_channels | number of output channels | |
| input_channels | number of input channels | |
| output_rate | output sample rate | |
| input_rate | input sample rate | |
| sample_fmt_out | requested output sample format | |
| sample_fmt_in | input sample format | |
| filter_length | length of each FIR filter in the filterbank relative to the cutoff freq | |
| log2_phase_count | log2 of the number of entries in the polyphase filterbank | |
| linear | If 1 then the used FIR filter will be linearly interpolated between the 2 closest, if 0 the closest will be used | |
| cutoff | cutoff frequency, 1.0 corresponds to half the output sampling rate |
Definition at line 144 of file resample.c.
Referenced by audio_resample_init(), and do_audio_out().
| static const char* context_to_name | ( | void * | ptr | ) | [static] |
Definition at line 33 of file resample.c.
| static void mono_to_stereo | ( | short * | output, | |
| short * | input, | |||
| int | n1 | |||
| ) | [static] |
| static void stereo_mux | ( | short * | output, | |
| short * | input1, | |||
| short * | input2, | |||
| int | n | |||
| ) | [static] |
| static void stereo_split | ( | short * | output1, | |
| short * | output2, | |||
| short * | input, | |||
| int | n | |||
| ) | [static] |
| static void stereo_to_mono | ( | short * | output, | |
| short * | input, | |||
| int | n1 | |||
| ) | [static] |
const AVClass audioresample_context_class = { "ReSampleContext", context_to_name, options, LIBAVUTIL_VERSION_INT } [static] |
Definition at line 39 of file resample.c.
Definition at line 38 of file resample.c.
1.5.8