libavfilter/vf_drawbox.c File Reference

Box drawing filter. More...

#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


Detailed Description

Box drawing filter.

Also a nice template for a filter that needs to write in the input frame.

Definition in file vf_drawbox.c.


Enumeration Type Documentation

anonymous enum

Enumerator:
Y 
U 
V 
A 

Definition at line 32 of file vf_drawbox.c.


Function Documentation

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.


Variable Documentation

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    = (const 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   = (const AVFilterPad[]) {{ .name       = "default",
                                    .type             = AVMEDIA_TYPE_VIDEO, },
                                  { .name = NULL}},
}

Definition at line 123 of file vf_drawbox.c.


Generated on Fri Oct 26 02:46:12 2012 for FFmpeg by  doxygen 1.5.8