libavfilter/vf_cropdetect.c File Reference

border detection filter Ported from MPlayer libmpcodecs/vf_cropdetect.c. More...

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

Go to the source code of this file.

Data Structures

struct  CropDetectContext


static int query_formats (AVFilterContext *ctx)
static int checkline (void *ctx, const unsigned char *src, int stride, int len, int bpp)
static av_cold int init (AVFilterContext *ctx, const char *args, void *opaque)
static int config_input (AVFilterLink *inlink)
static void end_frame (AVFilterLink *inlink)


AVFilter avfilter_vf_cropdetect

Detailed Description

border detection filter Ported from MPlayer libmpcodecs/vf_cropdetect.c.

Definition in file vf_cropdetect.c.

Function Documentation

static int checkline ( void *  ctx,
const unsigned char *  src,
int  stride,
int  len,
int  bpp 
) [static]

Definition at line 53 of file vf_cropdetect.c.

Referenced by end_frame().

static int config_input ( AVFilterLink inlink  )  [static]

Definition at line 98 of file vf_cropdetect.c.

static void end_frame ( AVFilterLink inlink  )  [static]

Definition at line 114 of file vf_cropdetect.c.

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

Definition at line 80 of file vf_cropdetect.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 38 of file vf_cropdetect.c.

Variable Documentation

Initial value:

    .name        = "cropdetect",
    .description = NULL_IF_CONFIG_SMALL("Auto-detect crop size."),

    .priv_size = sizeof(CropDetectContext),
    .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,
                                    .end_frame        = end_frame, },
                                  { .name = NULL}},

    .outputs   = (const AVFilterPad[]) {{ .name       = "default",
                                    .type             = AVMEDIA_TYPE_VIDEO },
                                  { .name = NULL}},

Definition at line 194 of file vf_cropdetect.c.

Generated on Fri Oct 26 02:43:51 2012 for FFmpeg by  doxygen 1.5.8