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"
#include "video.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 33 of file vf_drawbox.c.


Function Documentation

static int config_input ( AVFilterLink inlink  )  [static]

Definition at line 78 of file vf_drawbox.c.

static void draw_slice ( AVFilterLink inlink,
int  y0,
int  h,
int  slice_dir 
) [static]

Definition at line 95 of file vf_drawbox.c.

static av_cold int init ( AVFilterContext ctx,
const char *  args,
void *  opaque 
) [static]

Definition at line 41 of file vf_drawbox.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 64 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 = ff_null_get_video_buffer,
                                    .start_frame      = ff_null_start_frame,
                                    .draw_slice       = draw_slice,
                                    .end_frame        = ff_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 124 of file vf_drawbox.c.


Generated on Fri Oct 26 02:48:01 2012 for FFmpeg by  doxygen 1.5.8