FFmpeg
Functions | Variables
audio.h File Reference
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Functions

AVFrameff_default_get_audio_buffer (AVFilterLink *link, int nb_samples)
 default handler for get_audio_buffer() for audio inputs More...
 
AVFrameff_null_get_audio_buffer (AVFilterLink *link, int nb_samples)
 get_audio_buffer() handler for filters which simply pass audio along More...
 
AVFrameff_get_audio_buffer (AVFilterLink *link, int nb_samples)
 Request an audio samples buffer with a specific set of permissions. More...
 

Variables

static enum AVSampleFormat ff_packed_sample_fmts_array []
 
static enum AVSampleFormat ff_planar_sample_fmts_array []
 

Function Documentation

◆ ff_default_get_audio_buffer()

AVFrame* ff_default_get_audio_buffer ( AVFilterLink link,
int  nb_samples 
)

default handler for get_audio_buffer() for audio inputs

Definition at line 38 of file audio.c.

Referenced by ff_get_audio_buffer().

◆ ff_null_get_audio_buffer()

AVFrame* ff_null_get_audio_buffer ( AVFilterLink link,
int  nb_samples 
)

get_audio_buffer() handler for filters which simply pass audio along

Definition at line 33 of file audio.c.

Referenced by init().

◆ ff_get_audio_buffer()

AVFrame* ff_get_audio_buffer ( AVFilterLink link,
int  nb_samples 
)

Request an audio samples buffer with a specific set of permissions.

Parameters
linkthe output link to the filter from which the buffer will be requested
nb_samplesthe number of samples per channel
Returns
A reference to the samples. This must be unreferenced with avfilter_unref_buffer when you are finished with it.

Definition at line 86 of file audio.c.

Referenced by activate(), compand_delay(), compand_drain(), compand_nodelay(), config_input(), config_output(), ff_inlink_make_frame_writable(), ff_null_get_audio_buffer(), filter_frame(), fir_frame(), flush(), flush_buffer(), flush_frame(), get_audio_buffer(), headphone_frame(), init_segment(), output_frame(), request_frame(), return_audio_frame(), send_silence(), spatial_activate(), take_samples(), and try_push_frame().

Variable Documentation

◆ ff_packed_sample_fmts_array

enum AVSampleFormat ff_packed_sample_fmts_array[]
static

◆ ff_planar_sample_fmts_array

enum AVSampleFormat ff_planar_sample_fmts_array[]
static
AV_SAMPLE_FMT_FLTP
@ AV_SAMPLE_FMT_FLTP
float, planar
Definition: samplefmt.h:69
AV_SAMPLE_FMT_S32P
@ AV_SAMPLE_FMT_S32P
signed 32 bits, planar
Definition: samplefmt.h:68
AV_SAMPLE_FMT_U8
AV_SAMPLE_FMT_U8
Definition: audio_convert.c:194
AV_SAMPLE_FMT_U8P
@ AV_SAMPLE_FMT_U8P
unsigned 8 bits, planar
Definition: samplefmt.h:66
AV_SAMPLE_FMT_NONE
@ AV_SAMPLE_FMT_NONE
Definition: samplefmt.h:59
AV_SAMPLE_FMT_S16P
@ AV_SAMPLE_FMT_S16P
signed 16 bits, planar
Definition: samplefmt.h:67
AV_SAMPLE_FMT_S16
@ AV_SAMPLE_FMT_S16
signed 16 bits
Definition: samplefmt.h:61
AV_SAMPLE_FMT_DBLP
@ AV_SAMPLE_FMT_DBLP
double, planar
Definition: samplefmt.h:70
AV_SAMPLE_FMT_DBL
@ AV_SAMPLE_FMT_DBL
double
Definition: samplefmt.h:64
AV_SAMPLE_FMT_S32
@ AV_SAMPLE_FMT_S32
signed 32 bits
Definition: samplefmt.h:62
AV_SAMPLE_FMT_FLT
@ AV_SAMPLE_FMT_FLT
float
Definition: samplefmt.h:63