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"
Include dependency graph for vf_bbox.c:

Go to the source code of this file.

Data Structures

struct  BBoxContext
 

Functions

static int query_formats (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
 

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

Definition at line 51 of file vf_bbox.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 36 of file vf_bbox.c.

Variable Documentation

AVFilter avfilter_vf_bbox
Initial value:
= {
.name = "bbox",
.description = NULL_IF_CONFIG_SMALL("Compute bounding box for each frame."),
.priv_size = sizeof(BBoxContext),
}
static const AVFilterPad bbox_inputs[]
Definition: vf_bbox.c:83
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:117
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int query_formats(AVFilterContext *ctx)
Definition: vf_bbox.c:36
static const AVFilterPad bbox_outputs[]
Definition: vf_bbox.c:92
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs

Definition at line 100 of file vf_bbox.c.

const AVFilterPad bbox_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_bbox.c:51
NULL
Definition: eval.c:55

Definition at line 83 of file vf_bbox.c.

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

Definition at line 92 of file vf_bbox.c.