libavfilter/audio.h File Reference

#include "avfilter.h"

Go to the source code of this file.

Functions

AVFilterBufferRefff_default_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples)
 default handler for get_audio_buffer() for audio inputs
AVFilterBufferRefff_null_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples)
 get_audio_buffer() handler for filters which simply pass audio along
AVFilterBufferRefff_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples)
 Request an audio samples buffer with a specific set of permissions.
int ff_filter_samples (AVFilterLink *link, AVFilterBufferRef *samplesref)
 Send a buffer of audio samples to the next filter.
int ff_filter_samples_framed (AVFilterLink *link, AVFilterBufferRef *samplesref)
 Send a buffer of audio samples to the next link, without checking min_samples.

Variables

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


Function Documentation

AVFilterBufferRef* ff_default_get_audio_buffer ( AVFilterLink link,
int  perms,
int  nb_samples 
)

default handler for get_audio_buffer() for audio inputs

Definition at line 36 of file audio.c.

Referenced by ff_filter_samples_framed(), and ff_get_audio_buffer().

int ff_filter_samples ( AVFilterLink link,
AVFilterBufferRef samplesref 
)

Send a buffer of audio samples to the next filter.

Parameters:
link the output link over which the audio samples are being sent
samplesref a reference to the buffer of audio samples being sent. The receiving filter will free this reference when it no longer needs it or pass it on to the next filter.
Returns:
>= 0 on success, a negative AVERROR on error. The receiving filter is responsible for unreferencing samplesref in case of error.

Definition at line 221 of file audio.c.

Referenced by channelmap_filter_samples(), default_filter_samples(), filter_frame(), filter_samples(), join_request_frame(), movie_push_frame(), output_frame(), process_frame(), push_samples(), request_frame(), return_audio_frame(), send_out(), and send_silence().

int ff_filter_samples_framed ( AVFilterLink link,
AVFilterBufferRef samplesref 
)

Send a buffer of audio samples to the next link, without checking min_samples.

Definition at line 166 of file audio.c.

Referenced by ff_filter_samples(), and ff_request_frame().

AVFilterBufferRef* ff_get_audio_buffer ( AVFilterLink link,
int  perms,
int  nb_samples 
)

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

Parameters:
link the output link to the filter from which the buffer will be requested
perms the required access permissions
nb_samples the 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 73 of file audio.c.

Referenced by av_buffersink_read_samples(), ff_copy_buffer_ref(), ff_filter_samples(), ff_null_get_audio_buffer(), filter_samples(), get_audio_buffer(), output_frame(), push_samples(), read_from_fifo(), request_frame(), return_audio_frame(), and send_silence().

AVFilterBufferRef* ff_null_get_audio_buffer ( AVFilterLink link,
int  perms,
int  nb_samples 
)

get_audio_buffer() handler for filters which simply pass audio along

Definition at line 30 of file audio.c.


Variable Documentation


Generated on Fri Oct 26 02:50:09 2012 for FFmpeg by  doxygen 1.5.8