#include <string.h>
#include "libavutil/avutil.h"
#include "libavutil/colorspace.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "drawutils.h"
#include "formats.h"
Go to the source code of this file.
Definition at line 31 of file drawutils.c.
Definition at line 33 of file drawutils.c.
Referenced by config_input(), config_input_main(), config_input_overlay(), config_input_ref(), config_output(), config_props(), ff_draw_color(), and ff_fill_line_with_color().
Definition at line 62 of file drawutils.c.
Definition at line 112 of file drawutils.c.
Definition at line 134 of file drawutils.c.
Init a draw context.
Only a limited number of pixel formats are supported, if format is not supported the function will return an error. No flags currently defined.
Definition at line 156 of file drawutils.c.
Referenced by config_input(), config_props(), and ff_draw_supported_pixel_formats().
Prepare a color.
Definition at line 198 of file drawutils.c.
Referenced by config_input(), config_props(), draw_text(), and overlay_ass_image().
Definition at line 230 of file drawutils.c.
Referenced by ff_blend_mask(), ff_blend_rectangle(), ff_copy_rectangle2(), and ff_fill_rectangle().
Copy a rectangle from an image to another.
The coordinates must be as even as the subsampling requires.
Definition at line 238 of file drawutils.c.
Referenced by filter_frame().
Fill a rectangle with an uniform color.
The coordinates must be as even as the subsampling requires. The color needs to be inited with ff_draw_color.
Definition at line 260 of file drawutils.c.
Referenced by draw_blank_frame(), and filter_frame().
Clip interval [x; x+w[ within [0; wmax[.
The resulting w may be negative if the final interval is empty. dx, if not null, return the difference between in and out value of x.
Definition at line 294 of file drawutils.c.
Referenced by ff_blend_mask(), and ff_blend_rectangle().
Decompose w pixels starting at x into start + (w starting at x) + end with x and w aligned on multiples of 1<<sub.
Definition at line 313 of file drawutils.c.
Referenced by ff_blend_mask(), and ff_blend_rectangle().
Definition at line 325 of file drawutils.c.
Referenced by ff_blend_mask(), and ff_blend_rectangle().
Definition at line 333 of file drawutils.c.
Referenced by ff_blend_rectangle().
Blend a rectangle with an uniform color.
Definition at line 355 of file drawutils.c.
Referenced by draw_text().
Definition at line 405 of file drawutils.c.
Referenced by blend_line_hv().
Definition at line 428 of file drawutils.c.
Referenced by ff_blend_mask().
Blend an alpha mask with an uniform color.
Definition at line 453 of file drawutils.c.
Referenced by draw_glyphs(), and overlay_ass_image().
Round a dimension according to subsampling.
Definition at line 513 of file drawutils.c.
Referenced by config_input().
Return the list of pixel formats supported by the draw functions.
The flags are the same as ff_draw_init, i.e., none currently.
Definition at line 525 of file drawutils.c.
Referenced by query_formats().