libavfilter/vf_cropdetect.c File Reference

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

#include <stdio.h>
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"

Go to the source code of this file.

Data Structures

struct  CropDetectContext

Functions

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)
static int config_input (AVFilterLink *inlink)
static int end_frame (AVFilterLink *inlink)

Variables

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 59 of file vf_cropdetect.c.

Referenced by end_frame().

static int config_input ( AVFilterLink inlink  )  [static]

Definition at line 104 of file vf_cropdetect.c.

static int end_frame ( AVFilterLink inlink  )  [static]

Definition at line 120 of file vf_cropdetect.c.

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

Definition at line 86 of file vf_cropdetect.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 44 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 = ff_null_get_video_buffer,
                                          .start_frame      = ff_null_start_frame,
                                          .end_frame        = end_frame, },
                                        { .name = NULL}},

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

Definition at line 200 of file vf_cropdetect.c.


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