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. | |
int | w |
int | h |
width and height of the allocated buffer |
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 70 of file avfilter.h.
uint8_t* AVFilterPic::data[4] |
picture data for each plane
Definition at line 72 of file avfilter.h.
Referenced by avfilter_default_free_video_buffer().
colorspace
Definition at line 74 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 86 of file avfilter.h.
Referenced by avfilter_default_get_video_buffer(), and avfilter_unref_pic().
int AVFilterPic::h |
width and height of the allocated buffer
Definition at line 88 of file avfilter.h.
Referenced by avfilter_default_get_video_buffer().
int AVFilterPic::linesize[4] |
number of bytes per line
Definition at line 73 of file avfilter.h.
void* AVFilterPic::priv |
private data to be used by a custom free function
Definition at line 79 of file avfilter.h.
unsigned AVFilterPic::refcount |
number of references to this image
Definition at line 76 of file avfilter.h.
Referenced by avfilter_default_get_video_buffer(), avfilter_ref_pic(), and avfilter_unref_pic().
int AVFilterPic::w |
Definition at line 88 of file avfilter.h.
Referenced by avfilter_default_get_video_buffer().