libavfilter/vf_crop.c File Reference

video crop filter More...

#include "avfilter.h"
#include "libavutil/pixdesc.h"

Go to the source code of this file.

Data Structures

struct  CropContext


static int query_formats (AVFilterContext *ctx)
static av_cold int init (AVFilterContext *ctx, const char *args, void *opaque)
static int config_input (AVFilterLink *link)
static int config_output (AVFilterLink *link)
static void start_frame (AVFilterLink *link, AVFilterPicRef *picref)
static void draw_slice (AVFilterLink *link, int y, int h, int slice_dir)


AVFilter avfilter_vf_crop

Detailed Description

video crop filter

Definition in file vf_crop.c.

Function Documentation

static int config_input ( AVFilterLink link  )  [static]

Definition at line 81 of file vf_crop.c.

static int config_output ( AVFilterLink link  )  [static]

Definition at line 149 of file vf_crop.c.

static void draw_slice ( AVFilterLink link,
int  y,
int  h,
int  slice_dir 
) [static]

Definition at line 189 of file vf_crop.c.

Referenced by avfilter_draw_slice().

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

Definition at line 71 of file vf_crop.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 39 of file vf_crop.c.

static void start_frame ( AVFilterLink link,
AVFilterPicRef picref 
) [static]

Definition at line 159 of file vf_crop.c.

Variable Documentation

Initial value:

    .name      = "crop",
    .description = NULL_IF_CONFIG_SMALL("Crop the input video to x:y:width:height."),

    .priv_size = sizeof(CropContext),

    .query_formats = query_formats,
    .init          = init,

    .inputs    = (AVFilterPad[]) {{ .name             = "default",
                                    .type             = AVMEDIA_TYPE_VIDEO,
                                    .start_frame      = start_frame,
                                    .draw_slice       = draw_slice,
                                    .get_video_buffer = avfilter_null_get_video_buffer,
                                    .config_props     = config_input, },
                                  { .name = NULL}},
    .outputs   = (AVFilterPad[]) {{ .name             = "default",
                                    .type             = AVMEDIA_TYPE_VIDEO,
                                    .config_props     = config_output, },
                                  { .name = NULL}},

Definition at line 207 of file vf_crop.c.

Generated on Fri Oct 26 02:36:54 2012 for FFmpeg by  doxygen 1.5.8