19 #ifndef AVFILTER_DRAWUTILS_H
20 #define AVFILTER_DRAWUTILS_H
36 int *is_packed_rgba,
uint8_t rgba_map[4]);
40 int hsub,
int vsub,
int x,
int y,
int w,
int h);
43 uint8_t *
src[4],
int src_linesize[4],
int pixelstep[4],
44 int hsub,
int vsub,
int x,
int y,
int y2,
int w,
int h);
90 uint8_t *dst[],
int dst_linesize[],
92 int dst_x,
int dst_y,
int src_x,
int src_y,
102 uint8_t *dst[],
int dst_linesize[],
103 int dst_x,
int dst_y,
int w,
int h);
109 uint8_t *dst[],
int dst_linesize[],
110 int dst_w,
int dst_h,
111 int x0,
int y0,
int w,
int h);
132 uint8_t *dst[],
int dst_linesize[],
int dst_w,
int dst_h,
133 uint8_t *
mask,
int mask_linesize,
int mask_w,
int mask_h,
134 int l2depth,
unsigned endianness,
int x0,
int y0);
static enum AVPixelFormat pix_fmt
Main libavfilter public API header.
int ff_draw_init(FFDrawContext *draw, enum AVPixelFormat format, unsigned flags)
Init a draw context.
int ff_fill_line_with_color(uint8_t *line[4], int pixel_step[4], int w, uint8_t dst_color[4], enum AVPixelFormat pix_fmt, uint8_t rgba_color[4], int *is_packed_rgba, uint8_t rgba_map[4])
AVFilterFormats * ff_draw_supported_pixel_formats(unsigned flags)
Return the list of pixel formats supported by the draw functions.
void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4])
Prepare a color.
uint8_t comp_mask[MAX_PLANES]
static const uint16_t mask[17]
GLsizei GLboolean const GLfloat * value
union FFDrawColor::@122 comp[MAX_PLANES]
void ff_blend_mask(FFDrawContext *draw, FFDrawColor *color, uint8_t *dst[], int dst_linesize[], int dst_w, int dst_h, uint8_t *mask, int mask_linesize, int mask_w, int mask_h, int l2depth, unsigned endianness, int x0, int y0)
Blend an alpha mask with an uniform color.
void ff_copy_rectangle2(FFDrawContext *draw, uint8_t *dst[], int dst_linesize[], uint8_t *src[], int src_linesize[], int dst_x, int dst_y, int src_x, int src_y, int w, int h)
Copy a rectangle from an image to another.
int ff_fill_rgba_map(uint8_t *rgba_map, enum AVPixelFormat pix_fmt)
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
void ff_copy_rectangle(uint8_t *dst[4], int dst_linesize[4], uint8_t *src[4], int src_linesize[4], int pixelstep[4], int hsub, int vsub, int x, int y, int y2, int w, int h)
void ff_blend_rectangle(FFDrawContext *draw, FFDrawColor *color, uint8_t *dst[], int dst_linesize[], int dst_w, int dst_h, int x0, int y0, int w, int h)
Blend a rectangle with an uniform color.
void ff_fill_rectangle(FFDrawContext *draw, FFDrawColor *color, uint8_t *dst[], int dst_linesize[], int dst_x, int dst_y, int w, int h)
Fill a rectangle with an uniform color.
int pixelstep[MAX_PLANES]
const struct AVPixFmtDescriptor * desc
void ff_draw_rectangle(uint8_t *dst[4], int dst_linesize[4], uint8_t *src[4], int pixelstep[4], int hsub, int vsub, int x, int y, int w, int h)
AVPixelFormat
Pixel format.
int ff_draw_round_to_sub(FFDrawContext *draw, int sub_dir, int round_dir, int value)
Round a dimension according to subsampling.
enum AVPixelFormat format