#include "avfilter.h"
#include "internal.h"
#include "audio.h"
#include "avcodec.h"
#include "buffersrc.h"
#include "vsrc_buffer.h"
#include "asrc_abuffer.h"
#include "libavutil/audioconvert.h"
#include "libavutil/avstring.h"
#include "libavutil/fifo.h"
#include "libavutil/imgutils.h"
Go to the source code of this file.
Data Structures | |
struct | BufferSourceContext |
Functions | |
static void | buf_free (AVFilterBuffer *ptr) |
int | av_vsrc_buffer_add_video_buffer_ref (AVFilterContext *buffer_filter, AVFilterBufferRef *picref, int flags) |
Add video buffer data in picref to buffer_src. | |
unsigned | av_vsrc_buffer_get_nb_failed_requests (AVFilterContext *buffer_src) |
Get the number of failed requests. | |
int | av_asrc_buffer_add_audio_buffer_ref (AVFilterContext *ctx, AVFilterBufferRef *samplesref, int av_unused flags) |
Queue an audio buffer to the audio buffer source. | |
int | av_asrc_buffer_add_samples (AVFilterContext *ctx, uint8_t *data[8], int linesize[8], int nb_samples, int sample_rate, int sample_fmt, int64_t channel_layout, int planar, int64_t pts, int av_unused flags) |
Queue an audio buffer to the audio buffer source. | |
int | av_asrc_buffer_add_buffer (AVFilterContext *ctx, uint8_t *buf, int buf_size, int sample_rate, int sample_fmt, int64_t channel_layout, int planar, int64_t pts, int av_unused flags) |
Queue an audio buffer to the audio buffer source. |
Definition in file src_buffer.c.
int av_asrc_buffer_add_audio_buffer_ref | ( | AVFilterContext * | abuffersrc, | |
AVFilterBufferRef * | samplesref, | |||
int av_unused | flags | |||
) |
Queue an audio buffer to the audio buffer source.
abuffersrc | audio source buffer context | |
samplesref | buffer ref to queue | |
flags | unused |
Definition at line 91 of file src_buffer.c.
Referenced by av_asrc_buffer_add_samples().
int av_asrc_buffer_add_buffer | ( | AVFilterContext * | abuffersrc, | |
uint8_t * | buf, | |||
int | buf_size, | |||
int | sample_rate, | |||
int | sample_fmt, | |||
int64_t | ch_layout, | |||
int | planar, | |||
int64_t | pts, | |||
int av_unused | flags | |||
) |
Queue an audio buffer to the audio buffer source.
This is similar to av_asrc_buffer_add_samples(), but the samples are stored in a buffer with known size.
abuffersrc | audio source buffer context | |
buf | pointer to the samples data, packed is assumed | |
size | the size in bytes of the buffer, it must contain an integer number of samples | |
sample_fmt | sample format of the audio data | |
ch_layout | channel layout of the audio data | |
pts | presentation timestamp of the audio buffer | |
flags | unused |
Definition at line 122 of file src_buffer.c.
int av_asrc_buffer_add_samples | ( | AVFilterContext * | abuffersrc, | |
uint8_t * | data[8], | |||
int | linesize[8], | |||
int | nb_samples, | |||
int | sample_rate, | |||
int | sample_fmt, | |||
int64_t | ch_layout, | |||
int | planar, | |||
int64_t | pts, | |||
int av_unused | flags | |||
) |
Queue an audio buffer to the audio buffer source.
abuffersrc | audio source buffer context | |
data | pointers to the samples planes | |
linesize | linesizes of each audio buffer plane | |
nb_samples | number of samples per channel | |
sample_fmt | sample format of the audio data | |
ch_layout | channel layout of the audio data | |
planar | flag to indicate if audio data is planar or packed | |
pts | presentation timestamp of the audio buffer | |
flags | unused |
Definition at line 98 of file src_buffer.c.
Referenced by av_asrc_buffer_add_buffer().
int av_vsrc_buffer_add_video_buffer_ref | ( | AVFilterContext * | buffer_src, | |
AVFilterBufferRef * | picref, | |||
int | flags | |||
) |
Add video buffer data in picref to buffer_src.
buffer_src | pointer to a buffer source context | |
flags | a combination of AV_VSRC_BUF_FLAG_* flags |
Definition at line 70 of file src_buffer.c.
unsigned av_vsrc_buffer_get_nb_failed_requests | ( | AVFilterContext * | buffer_src | ) |
Get the number of failed requests.
A failed request is when the request_frame method is called while no frame is present in the buffer. The number is reset when a frame is added.
Definition at line 86 of file src_buffer.c.
static void buf_free | ( | AVFilterBuffer * | ptr | ) | [static] |