A reference-counted picture data type used by the filter system. More...
#include <avfilter.h>
Data Fields | |
uint8_t * | data [4] |
picture data for each plane | |
int | linesize [4] |
number of bytes per line | |
enum PixelFormat | format |
colorspace | |
unsigned | refcount |
number of references to this image | |
void * | priv |
private data to be used by a custom free function | |
void(* | free )(struct AVFilterPic *pic) |
A pointer to the function to deallocate this image if the default function is not sufficient. |
A reference-counted picture data type used by the filter system.
Filters should not store pointers to this structure directly, but instead use the AVFilterPicRef structure below.
Definition at line 57 of file avfilter.h.
uint8_t* AVFilterPic::data[4] |
picture data for each plane
Definition at line 59 of file avfilter.h.
Referenced by avfilter_default_free_video_buffer().
colorspace
Definition at line 61 of file avfilter.h.
Referenced by avfilter_default_get_video_buffer().
void(* AVFilterPic::free)(struct AVFilterPic *pic) |
A pointer to the function to deallocate this image if the default function is not sufficient.
This could, for example, add the memory back into a memory pool to be reused later without the overhead of reallocating it from scratch.
Definition at line 73 of file avfilter.h.
Referenced by avfilter_default_get_video_buffer(), and avfilter_unref_pic().
int AVFilterPic::linesize[4] |
number of bytes per line
Definition at line 60 of file avfilter.h.
void* AVFilterPic::priv |
private data to be used by a custom free function
Definition at line 66 of file avfilter.h.
unsigned AVFilterPic::refcount |
number of references to this image
Definition at line 63 of file avfilter.h.
Referenced by avfilter_default_get_video_buffer(), avfilter_ref_pic(), and avfilter_unref_pic().