FFmpeg  1.2.12
Data Structures | Functions | Variables
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 filter_frame (AVFilterLink *inlink, AVFilterBufferRef *frame)

Variables

static const AVFilterPad avfilter_vf_cropdetect_inputs []
static const AVFilterPad avfilter_vf_cropdetect_outputs []
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 filter_frame().

static int config_input ( AVFilterLink inlink)
static

Definition at line 104 of file vf_cropdetect.c.

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef frame 
)
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

AVFilter avfilter_vf_cropdetect
Initial value:
{
.name = "cropdetect",
.description = NULL_IF_CONFIG_SMALL("Auto-detect crop size."),
.priv_size = sizeof(CropDetectContext),
.init = init,
}

Definition at line 218 of file vf_cropdetect.c.

const AVFilterPad avfilter_vf_cropdetect_inputs[]
static
Initial value:
{
{
.name = "default",
.config_props = config_input,
.get_video_buffer = ff_null_get_video_buffer,
.filter_frame = filter_frame,
},
{ NULL }
}

Definition at line 199 of file vf_cropdetect.c.

const AVFilterPad avfilter_vf_cropdetect_outputs[]
static
Initial value:
{
{
.name = "default",
},
{ NULL }
}

Definition at line 210 of file vf_cropdetect.c.