libavfilter/vf_drawbox.c File Reference

Box drawing filter. More...

#include "libavutil/colorspace.h"
#include "libavutil/common.h"
#include "libavutil/pixdesc.h"
#include "libavutil/parseutils.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  DrawBoxContext


enum  { Y, U, V, A }


static av_cold int init (AVFilterContext *ctx, const char *args)
static int query_formats (AVFilterContext *ctx)
static int config_input (AVFilterLink *inlink)
static int draw_slice (AVFilterLink *inlink, int y0, int h, int slice_dir)


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


Definition at line 36 of file vf_drawbox.c.

Function Documentation

static int config_input ( AVFilterLink inlink  )  [static]

Definition at line 81 of file vf_drawbox.c.

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

Definition at line 98 of file vf_drawbox.c.

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

Definition at line 44 of file vf_drawbox.c.

static int query_formats ( AVFilterContext ctx  )  [static]

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

Definition at line 127 of file vf_drawbox.c.

Generated on Fri Oct 26 02:50:10 2012 for FFmpeg by  doxygen 1.5.8