35 #define BUFFER_ALIGN 32
57 &pool_width, &pool_height,
58 &pool_format, &pool_align) < 0) {
62 if (pool_width != w || pool_height != h ||
This structure describes decoded (raw) audio or video data.
void ff_video_frame_pool_uninit(FFVideoFramePool **pool)
Deallocate the video frame pool.
Main libavfilter public API header.
memory handling functions
AVFrame * ff_null_get_video_buffer(AVFilterLink *link, int w, int h)
AVFrame * ff_get_video_buffer(AVFilterLink *link, int w, int h)
Request a picture buffer with a specific set of permissions.
AVFilterPad * dstpad
input pad on the dest filter
FFVideoFramePool * ff_video_frame_pool_init(AVBufferRef *(*alloc)(int size), int width, int height, enum AVPixelFormat format, int align)
Allocate and initialize a video frame pool.
static AVFrame * get_video_buffer(AVFilterLink *inlink, int w, int h)
int ff_video_frame_pool_get_config(FFVideoFramePool *pool, int *width, int *height, enum AVPixelFormat *format, int *align)
Get the video frame pool configuration.
A link between two filters.
AVFrame * ff_video_frame_pool_get(FFVideoFramePool *pool)
Allocate a new AVFrame, reussing old buffers from the pool when available.
simple assert() macros that are a bit more flexible than ISO C assert().
#define FF_TPRINTF_START(ctx, func)
int format
agreed upon media format
AVFrame *(* get_video_buffer)(AVFilterLink *link, int w, int h)
Callback function to get a video buffer.
void ff_tlog_link(void *ctx, AVFilterLink *link, int end)
void * video_frame_pool
A pointer to a FFVideoFramePool struct.
AVBufferRef * av_buffer_allocz(int size)
Same as av_buffer_alloc(), except the returned buffer will be initialized to zero.
refcounted data buffer API
AVFilterLink ** outputs
array of pointers to output links
AVFrame * ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
AVFilterContext * dst
dest filter
AVPixelFormat
Pixel format.