36 #define BUFFER_ALIGN 32 74 &pool_width, &pool_height,
75 &pool_format, &pool_align) < 0) {
79 if (pool_width != w || pool_height != h ||
This structure describes decoded (raw) audio or video data.
AVFrame * ff_frame_pool_get(FFFramePool *pool)
Allocate a new AVFrame, reussing old buffers from the pool when available.
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
void ff_frame_pool_uninit(FFFramePool **pool)
Deallocate the frame pool.
AVFrame * av_frame_alloc(void)
Allocate an AVFrame and set its fields to default values.
static AVFrame * get_video_buffer(AVFilterLink *inlink, int w, int h)
A link between two filters.
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
simple assert() macros that are a bit more flexible than ISO C assert().
#define FF_TPRINTF_START(ctx, func)
FFFramePool * ff_frame_pool_video_init(AVBufferRef *(*alloc)(int size), int width, int height, enum AVPixelFormat format, int align)
Allocate and initialize a video frame pool.
int av_hwframe_get_buffer(AVBufferRef *hwframe_ref, AVFrame *frame, int flags)
Allocate a new frame attached to the given AVHWFramesContext.
AVFrame *(* get_video_buffer)(AVFilterLink *link, int w, int h)
Callback function to get a video buffer.
AVBufferRef * hw_frames_ctx
For hwaccel pixel formats, this should be a reference to the AVHWFramesContext describing the frames...
int format
agreed upon media format
void ff_tlog_link(void *ctx, AVFilterLink *link, int end)
uint8_t * data
The data buffer.
AVRational sample_aspect_ratio
Sample aspect ratio for the video frame, 0/1 if unknown/unspecified.
AVBufferRef * av_buffer_allocz(int size)
Same as av_buffer_alloc(), except the returned buffer will be initialized to zero.
This struct describes a set or pool of "hardware" frames (i.e.
refcounted data buffer API
AVRational sample_aspect_ratio
agreed upon sample aspect ratio
AVFilterLink ** outputs
array of pointers to output links
void * frame_pool
A pointer to a FFFramePool struct.
int ff_frame_pool_get_video_config(FFFramePool *pool, int *width, int *height, enum AVPixelFormat *format, int *align)
Get the video frame pool configuration.
AVFrame * ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
AVFilterContext * dst
dest filter
AVPixelFormat
Pixel format.