19#ifndef AVFILTER_DRAWUTILS_H
20#define AVFILTER_DRAWUTILS_H
64#define FF_DRAW_PROCESS_ALPHA 1
110 uint8_t *
dst[],
int dst_linesize[],
111 uint8_t *
src[],
int src_linesize[],
112 int dst_x,
int dst_y,
int src_x,
int src_y,
122 uint8_t *
dst[],
int dst_linesize[],
123 int dst_x,
int dst_y,
int w,
int h);
129 uint8_t *
dst[],
int dst_linesize[],
130 int dst_w,
int dst_h,
131 int x0,
int y0,
int w,
int h);
152 uint8_t *
dst[],
int dst_linesize[],
int dst_w,
int dst_h,
153 const uint8_t *
mask,
int mask_linesize,
int mask_w,
int mask_h,
154 int l2depth,
unsigned endianness,
int x0,
int y0);
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
static const char *const format[]
static int draw(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
Main libavfilter public API header.
#define flags(name, subs,...)
static enum AVPixelFormat pix_fmt
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_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_ayuv_map(uint8_t *ayuv_map, enum AVPixelFormat pix_fmt)
int ff_draw_round_to_sub(FFDrawContext *draw, int sub_dir, int round_dir, int value)
Round a dimension according to subsampling.
int ff_draw_init(FFDrawContext *draw, enum AVPixelFormat format, unsigned flags)
void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4])
Prepare a color.
int ff_draw_init2(FFDrawContext *draw, enum AVPixelFormat format, enum AVColorSpace csp, enum AVColorRange range, enum AVAlphaMode alpha, unsigned flags)
Init a draw context.
int ff_fill_rgba_map(uint8_t *rgba_map, enum AVPixelFormat pix_fmt)
AVFilterFormats * ff_draw_supported_pixel_formats(unsigned flags)
Return the list of pixel formats supported by the draw functions.
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 ff_draw_init_from_link(FFDrawContext *draw, const AVFilterLink *link, unsigned flags)
Init a draw context, taking the format, colorspace and range from the given filter link.
void ff_blend_mask(FFDrawContext *draw, FFDrawColor *color, uint8_t *dst[], int dst_linesize[], int dst_w, int dst_h, const 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.
static void comp(unsigned char *dst, ptrdiff_t dst_stride, unsigned char *src, ptrdiff_t src_stride, int add)
static const int16_t alpha[]
static const uint16_t mask[17]
AVColorRange
Visual content value range.
AVAlphaMode
Correlation between the alpha channel and color values.
AVPixelFormat
Pixel format.
AVColorSpace
YUV colorspace type.
A link between two filters.
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
const struct AVPixFmtDescriptor * desc
enum AVPixelFormat format
int pixelstep[MAX_PLANES]