37 (
int)(16 - strlen(
desc->name)),
"");
45 if (((uint8_t *)&
color)[
i] != 128)
48 printf(
"fallback color\n");
56 for (
int pass = 0; pass < 2; pass++) {
57 uint8_t
pixel[4] = { 0 };
59 int linesize[4] = { 4 };
64 ff_blend_mask(&
draw, &
color,
dst, linesize, 1, 1, &
mask, 1, 1, 1, 3, 0, 0, 0);
65 printf(
"half transparent red over transparent rgba by %s: %d %d %d %d\n",
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
static int draw(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
#define i(width, name, range_min, range_max)
__device__ int printf(const char *,...)
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.
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.
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.
#define FF_DRAW_PROCESS_ALPHA
Process alpha pixel component.
#define av_err2str(errnum)
Convenience macro, the return value should be used only directly in function arguments but never stan...
static const uint16_t mask[17]
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
AVPixelFormat
Pixel format.
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...