FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
audio.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Functions

int avfilter_ref_get_channels (AVFilterBufferRef *ref)
 Get the number of channels of a buffer reference.
 
AVFilterBufferRefff_null_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples)
 get_audio_buffer() handler for filters which simply pass audio along
 
AVFilterBufferRefff_default_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples)
 default handler for get_audio_buffer() for audio inputs
 
AVFilterBufferRefff_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples)
 Request an audio samples buffer with a specific set of permissions.
 
AVFilterBufferRefavfilter_get_audio_buffer_ref_from_arrays_channels (uint8_t **data, int linesize, int perms, int nb_samples, enum AVSampleFormat sample_fmt, int channels, uint64_t channel_layout)
 Create an audio buffer reference wrapped around an already allocated samples buffer.
 
AVFilterBufferRefavfilter_get_audio_buffer_ref_from_arrays (uint8_t **data, int linesize, int perms, int nb_samples, enum AVSampleFormat sample_fmt, uint64_t channel_layout)
 Create an audio buffer reference wrapped around an already allocated samples buffer.
 

Function Documentation

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 35 of file audio.c.

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 41 of file audio.c.

Referenced by ff_get_audio_buffer().

AVFilterBufferRef* ff_get_audio_buffer ( AVFilterLink link,
int  perms,
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
permsthe required access permissions
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 78 of file audio.c.

Referenced by av_buffersink_read_samples(), ff_copy_buffer_ref(), ff_filter_frame_framed(), ff_filter_frame_needs_framing(), ff_null_get_audio_buffer(), filter_frame(), get_audio_buffer(), output_frame(), push_samples(), read_from_fifo(), request_frame(), return_audio_frame(), and send_silence().