#include "libavutil/colorspace.h"
#include "libavutil/pixdesc.h"
#include "libavutil/parseutils.h"
#include "avfilter.h"
Go to the source code of this file.
Data Structures | |
struct | DrawBoxContext |
Enumerations | |
enum | { Y, U, V, A } |
Functions | |
static av_cold int | init (AVFilterContext *ctx, const char *args, void *opaque) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_input (AVFilterLink *inlink) |
static void | draw_slice (AVFilterLink *inlink, int y0, int h, int slice_dir) |
Variables | |
AVFilter | avfilter_vf_drawbox |
Also a nice template for a filter that needs to write in the input frame.
Definition in file vf_drawbox.c.
anonymous enum |
static int config_input | ( | AVFilterLink * | inlink | ) | [static] |
Definition at line 77 of file vf_drawbox.c.
static void draw_slice | ( | AVFilterLink * | inlink, | |
int | y0, | |||
int | h, | |||
int | slice_dir | |||
) | [static] |
Definition at line 94 of file vf_drawbox.c.
static av_cold int init | ( | AVFilterContext * | ctx, | |
const char * | args, | |||
void * | opaque | |||
) | [static] |
Definition at line 40 of file vf_drawbox.c.
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 63 of file vf_drawbox.c.
Initial value:
{ .name = "drawbox", .description = NULL_IF_CONFIG_SMALL("Draw a colored box on the input video."), .priv_size = sizeof(DrawBoxContext), .init = init, .query_formats = query_formats, .inputs = (AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_VIDEO, .config_props = config_input, .get_video_buffer = avfilter_null_get_video_buffer, .start_frame = avfilter_null_start_frame, .draw_slice = draw_slice, .end_frame = avfilter_null_end_frame, .min_perms = AV_PERM_WRITE | AV_PERM_READ, .rej_perms = AV_PERM_PRESERVE }, { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", .type = AVMEDIA_TYPE_VIDEO, }, { .name = NULL}}, }
Definition at line 123 of file vf_drawbox.c.