| 
    FFmpeg
    
   | 
 
#include "libavutil/common.h"#include "libavutil/libm.h"#include "libavutil/log.h"#include "internal.h"#include "resample.h"#include "audio_data.h"#include "resample_template.c"Go to the source code of this file.
Macros | |
| #define | CONFIG_RESAMPLE_DBL | 
| #define | CONFIG_RESAMPLE_FLT | 
| #define | CONFIG_RESAMPLE_S32 | 
Functions | |
| static double | bessel (double x) | 
| static int | build_filter (ResampleContext *c, double factor) | 
| 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 | avresample_set_compensation (AVAudioResampleContext *avr, int sample_delta, int compensation_distance) | 
| static int | resample (ResampleContext *c, void *dst, const void *src, int *consumed, int src_size, int dst_size, int update_ctx, int nearest_neighbour) | 
| int | ff_audio_resample (ResampleContext *c, AudioData *dst, AudioData *src) | 
| Resample audio data.  More... | |
| int | avresample_get_delay (AVAudioResampleContext *avr) | 
| #define CONFIG_RESAMPLE_DBL | 
Definition at line 31 of file resample.c.
| #define CONFIG_RESAMPLE_FLT | 
Definition at line 36 of file resample.c.
| #define CONFIG_RESAMPLE_S32 | 
Definition at line 41 of file resample.c.
      
  | 
  static | 
Definition at line 50 of file resample.c.
Referenced by build_filter(), and ff_kbd_window_init().
      
  | 
  static | 
Definition at line 67 of file resample.c.
Referenced by ff_audio_resample_init().
| ResampleContext* ff_audio_resample_init | ( | AVAudioResampleContext * | avr | ) | 
Allocate and initialize a ResampleContext.
The parameters in the AVAudioResampleContext are used to initialize the ResampleContext.
| avr | AVAudioResampleContext | 
Definition at line 120 of file resample.c.
Referenced by avresample_open().
| void ff_audio_resample_free | ( | ResampleContext ** | c | ) | 
Free a ResampleContext.
| c | ResampleContext | 
Definition at line 224 of file resample.c.
Referenced by avresample_close().
      
  | 
  static | 
Definition at line 259 of file resample.c.
Referenced by ff_audio_resample().
| int ff_audio_resample | ( | ResampleContext * | c, | 
| AudioData * | dst, | ||
| AudioData * | src | ||
| ) | 
Resample audio data.
Changes the sample rate.
| c | ResampleContext | 
| dst | destination audio data | 
| src | source audio data | 
Definition at line 334 of file resample.c.
Referenced by avresample_convert().
 1.8.17