FFmpeg
|
Memory buffer source API. More...
Go to the source code of this file.
Enumerations | |
enum | { AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT = 1, AV_BUFFERSRC_FLAG_NO_COPY = 2, AV_BUFFERSRC_FLAG_PUSH = 4 } |
Functions | |
int | av_buffersrc_add_ref (AVFilterContext *buffer_src, AVFilterBufferRef *picref, int flags) |
Add buffer data in picref to buffer_src. | |
unsigned | av_buffersrc_get_nb_failed_requests (AVFilterContext *buffer_src) |
Get the number of failed requests. | |
int | av_buffersrc_write_frame (AVFilterContext *s, const AVFrame *frame) |
Add a frame to the buffer source. | |
Memory buffer source API.
Definition in file buffersrc.h.
anonymous enum |
AV_BUFFERSRC_FLAG_NO_CHECK_FORMAT |
Do not check for format changes. |
AV_BUFFERSRC_FLAG_NO_COPY |
Do not copy buffer data. |
AV_BUFFERSRC_FLAG_PUSH |
Immediately push the frame to the output. |
Definition at line 31 of file buffersrc.h.
int av_buffersrc_add_ref | ( | AVFilterContext * | buffer_src, |
AVFilterBufferRef * | picref, | ||
int | flags | ||
) |
Add buffer data in picref to buffer_src.
buffer_src | pointer to a buffer source context |
picref | a buffer reference, or NULL to mark EOF |
flags | a combination of AV_BUFFERSRC_FLAG_* |
Definition at line 101 of file buffersrc.c.
Referenced by av_asrc_buffer_add_audio_buffer_ref(), av_buffersrc_add_frame(), decode_audio(), decode_video(), sub2video_flush(), sub2video_push_ref(), and video_thread().
unsigned av_buffersrc_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 166 of file buffersrc.c.
Referenced by sub2video_heartbeat(), and transcode_from_filter().
int av_buffersrc_write_frame | ( | AVFilterContext * | s, |
const AVFrame * | frame | ||
) |
Add a frame to the buffer source.
s | an instance of the buffersrc filter. |
frame | frame to be added. |
Definition at line 96 of file buffersrc.c.
Referenced by video_thread().