FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
utils.c File Reference
#include "libavutil/common.h"
#include "libavutil/dict.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avresample.h"
#include "internal.h"
#include "audio_data.h"
#include "audio_convert.h"
#include "audio_mix.h"
#include "resample.h"

Go to the source code of this file.

Macros

#define LICENSE_PREFIX   "libavresample license: "
 

Functions

int avresample_open (AVAudioResampleContext *avr)
 Initialize AVAudioResampleContext.
 
void avresample_close (AVAudioResampleContext *avr)
 Close AVAudioResampleContext.
 
void avresample_free (AVAudioResampleContext **avr)
 Free AVAudioResampleContext and associated AVOption values.
 
static int handle_buffered_output (AVAudioResampleContext *avr, AudioData *output, AudioData *converted)
 
int attribute_align_arg avresample_convert (AVAudioResampleContext *avr, uint8_t **output, int out_plane_size, int out_samples, uint8_t **input, int in_plane_size, int in_samples)
 Convert input samples and write them to the output FIFO.
 
int avresample_get_matrix (AVAudioResampleContext *avr, double *matrix, int stride)
 Get the current channel mixing matrix.
 
int avresample_set_matrix (AVAudioResampleContext *avr, const double *matrix, int stride)
 Set channel mixing matrix.
 
int avresample_set_channel_mapping (AVAudioResampleContext *avr, const int *channel_map)
 Set a customized input channel mapping.
 
int avresample_available (AVAudioResampleContext *avr)
 Return the number of available samples in the output FIFO.
 
int avresample_read (AVAudioResampleContext *avr, uint8_t **output, int nb_samples)
 Read samples from the output FIFO.
 
unsigned avresample_version (void)
 Return the LIBAVRESAMPLE_VERSION_INT constant.
 
const char * avresample_license (void)
 Return the libavresample license.
 
const char * avresample_configuration (void)
 Return the libavresample build-time configuration.
 

Macro Definition Documentation

#define LICENSE_PREFIX   "libavresample license: "

Function Documentation

static int handle_buffered_output ( AVAudioResampleContext avr,
AudioData output,
AudioData converted 
)
static

Definition at line 282 of file utils.c.

Referenced by avresample_convert().