Go to the source code of this file.
FFBufQueue: simple AVFrame queue API.
Note: this API is not thread-safe. Concurrent access to the same queue must be protected by a mutex or any synchronization mechanism. Maximum size of the queue.
This value can be overridden by definying it before including this header. Powers of 2 are recommended.
Definition at line 40 of file bufferqueue.h.
Referenced by ff_bufqueue_get(), and ff_bufqueue_is_full().
Definition at line 55 of file bufferqueue.h.
Referenced by ff_bufqueue_add(), and ff_bufqueue_peek().
Test if a buffer queue is full.
Definition at line 60 of file bufferqueue.h.
Referenced by ff_bufqueue_add(), and filter_frame().
Add a buffer to the queue.
If the queue is already full, then the current last buffer is dropped (and unrefed) with a warning before adding the new buffer.
Definition at line 71 of file bufferqueue.h.
Referenced by ff_framesync_add_frame(), filter_frame(), and process_frame().
Get a buffer from the queue without altering it.
Buffer with index 0 is the first buffer in the queue. Return NULL if the queue has not enough buffers.
Definition at line 87 of file bufferqueue.h.
Referenced by filter_frame(), push_frame(), and request_frame().
Get the first buffer from the queue and remove it.
Do not use on an empty queue.
Definition at line 98 of file bufferqueue.h.
Referenced by ff_bufqueue_discard_all(), ff_framesync_next(), filter_frame(), flush_segment(), and push_frame().
Unref and remove all buffers from the queue.
Definition at line 111 of file bufferqueue.h.
Referenced by ff_framesync_uninit(), and uninit().