#include "libavutil/avassert.h"
#include "libavutil/audioconvert.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"
Go to the source code of this file.
Functions | |
AVFilterBufferRef * | ff_null_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples) |
get_audio_buffer() handler for filters which simply pass audio along | |
AVFilterBufferRef * | ff_default_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples) |
default handler for get_audio_buffer() for audio inputs | |
AVFilterBufferRef * | ff_get_audio_buffer (AVFilterLink *link, int perms, int nb_samples) |
Request an audio samples buffer with a specific set of permissions. | |
AVFilterBufferRef * | avfilter_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. | |
void | ff_null_filter_samples (AVFilterLink *link, AVFilterBufferRef *samplesref) |
filter_samples() handler for filters which simply pass audio along | |
void | ff_default_filter_samples (AVFilterLink *inlink, AVFilterBufferRef *samplesref) |
default handler for filter_samples() for audio inputs | |
void | ff_filter_samples (AVFilterLink *link, AVFilterBufferRef *samplesref) |
Send a buffer of audio samples to the next filter. |
AVFilterBufferRef* avfilter_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.
data | pointers to the samples plane buffers | |
linesize | linesize for the samples plane buffers | |
perms | the required access permissions | |
nb_samples | number of samples per channel | |
sample_fmt | the format of each sample in the buffer to allocate | |
channel_layout | the channel layout of the buffer |
Definition at line 83 of file audio.c.
Referenced by av_asrc_buffer_add_samples(), avfilter_get_audio_buffer_ref_from_frame(), and ff_default_get_audio_buffer().
void ff_default_filter_samples | ( | AVFilterLink * | inlink, | |
AVFilterBufferRef * | samplesref | |||
) |
default handler for filter_samples() for audio inputs
Definition at line 159 of file audio.c.
Referenced by ff_filter_samples().
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 35 of file audio.c.
Referenced by ff_default_filter_samples(), ff_filter_samples(), and ff_get_audio_buffer().
void ff_filter_samples | ( | AVFilterLink * | link, | |
AVFilterBufferRef * | samplesref | |||
) |
Send a buffer of audio samples to the next filter.
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. |
Definition at line 179 of file audio.c.
Referenced by ff_default_filter_samples(), ff_null_filter_samples(), filter_samples(), output_frame(), request_frame(), and send_out().
AVFilterBufferRef* ff_get_audio_buffer | ( | AVFilterLink * | link, | |
int | perms, | |||
int | nb_samples | |||
) |
Request an audio samples buffer with a specific set of permissions.
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 |
Definition at line 66 of file audio.c.
Referenced by copy_buffer_ref(), ff_null_get_audio_buffer(), filter_samples(), output_frame(), read_from_fifo(), and request_frame().
void ff_null_filter_samples | ( | AVFilterLink * | link, | |
AVFilterBufferRef * | samplesref | |||
) |
filter_samples() handler for filters which simply pass audio along
AVFilterBufferRef* ff_null_get_audio_buffer | ( | AVFilterLink * | link, | |
int | perms, | |||
int | nb_samples | |||
) |