FFmpeg
|
resample.h File Reference
Include dependency graph for resample.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
ResampleContext * | ff_audio_resample_init (AVAudioResampleContext *avr) |
Allocate and initialize a ResampleContext. More... | |
void | ff_audio_resample_free (ResampleContext **c) |
Free a ResampleContext. More... | |
int | ff_audio_resample (ResampleContext *c, AudioData *dst, AudioData *src) |
Resample audio data. More... | |
Function Documentation
int ff_audio_resample | ( | ResampleContext * | c, |
AudioData * | dst, | ||
AudioData * | src | ||
) |
Resample audio data.
Changes the sample rate.
- All samples in the source data may not be consumed depending on the resampling parameters and the size of the output buffer. The unconsumed samples are automatically added to the start of the source in the next call. If the destination data can be reallocated, that may be done in this function in order to fit all available output. If it cannot be reallocated, fewer input samples will be consumed in order to have the output fit in the destination data buffers.
- Parameters
-
c ResampleContext dst destination audio data src source audio data
- Returns
- 0 on success, negative AVERROR code on failure
Definition at line 409 of file libavresample/resample.c.
Referenced by avresample_convert().
void ff_audio_resample_free | ( | ResampleContext ** | c | ) |
Free a ResampleContext.
- Parameters
-
c ResampleContext
Definition at line 238 of file libavresample/resample.c.
Referenced by avresample_close().
ResampleContext* ff_audio_resample_init | ( | AVAudioResampleContext * | avr | ) |
Allocate and initialize a ResampleContext.
The parameters in the AVAudioResampleContext are used to initialize the ResampleContext.
- Parameters
-
avr AVAudioResampleContext
- Returns
- newly-allocated ResampleContext
Definition at line 146 of file libavresample/resample.c.
Referenced by avresample_open().
Generated on Mon Nov 18 2024 06:52:08 for FFmpeg by 1.8.11