FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
vf_bbox.c File Reference

bounding box detection filter More...

#include "libavutil/pixdesc.h"
#include "libavutil/timestamp.h"
#include "avfilter.h"
#include "bbox.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  BBoxContext
 

Functions

static av_cold int init (AVFilterContext *ctx, const char *args)
 
static int query_formats (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFilterBufferRef *picref)
 

Variables

static const AVFilterPad bbox_inputs []
 
static const AVFilterPad bbox_outputs []
 
AVFilter avfilter_vf_bbox
 

Detailed Description

bounding box detection filter

Definition in file vf_bbox.c.

Function Documentation

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

Definition at line 37 of file vf_bbox.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 44 of file vf_bbox.c.

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef picref 
)
static

Definition at line 59 of file vf_bbox.c.

Variable Documentation

const AVFilterPad bbox_inputs[]
static
Initial value:
= {
{
.name = "default",
.get_video_buffer = ff_null_get_video_buffer,
.filter_frame = filter_frame,
.min_perms = AV_PERM_READ,
},
{ NULL }
}

Definition at line 91 of file vf_bbox.c.

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

Definition at line 102 of file vf_bbox.c.

AVFilter avfilter_vf_bbox
Initial value:
= {
.name = "bbox",
.description = NULL_IF_CONFIG_SMALL("Compute bounding box for each frame."),
.priv_size = sizeof(BBoxContext),
.init = init,
}

Definition at line 110 of file vf_bbox.c.