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

bounding box detection filter More...

#include "libavutil/opt.h"
#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
 

Macros

#define OFFSET(x)   offsetof(BBoxContext, x)
 
#define FLAGS   AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 
#define SET_META(key, value)   av_dict_set_int(metadata, key, value, 0);
 

Functions

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

Variables

static const AVOption bbox_options []
 
static const AVFilterPad bbox_inputs []
 
static const AVFilterPad bbox_outputs []
 
AVFilter ff_vf_bbox
 

Detailed Description

bounding box detection filter

Definition in file vf_bbox.c.

Macro Definition Documentation

#define OFFSET (   x)    offsetof(BBoxContext, x)

Definition at line 38 of file vf_bbox.c.

Definition at line 39 of file vf_bbox.c.

#define SET_META (   key,
  value 
)    av_dict_set_int(metadata, key, value, 0);

Definition at line 65 of file vf_bbox.c.

Referenced by filter_frame().

Function Documentation

AVFILTER_DEFINE_CLASS ( bbox  )
static int query_formats ( AVFilterContext ctx)
static

Definition at line 48 of file vf_bbox.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 68 of file vf_bbox.c.

Variable Documentation

const AVOption bbox_options[]
static
Initial value:
= {
{ "min_val", "set minimum luminance value for bounding box", OFFSET(min_val), AV_OPT_TYPE_INT, { .i64 = 16 }, 0, 254, FLAGS },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: vf_bbox.c:39
#define OFFSET(x)
Definition: vf_bbox.c:38

Definition at line 41 of file vf_bbox.c.

const AVFilterPad bbox_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition: vf_bbox.c:68

Definition at line 108 of file vf_bbox.c.

const AVFilterPad bbox_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}
#define NULL
Definition: coverity.c:32

Definition at line 117 of file vf_bbox.c.

AVFilter ff_vf_bbox
Initial value:
= {
.name = "bbox",
.description = NULL_IF_CONFIG_SMALL("Compute bounding box for each frame."),
.priv_size = sizeof(BBoxContext),
.priv_class = &bbox_class,
}
static const AVFilterPad bbox_inputs[]
Definition: vf_bbox.c:108
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
static int flags
Definition: log.c:57
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static int query_formats(AVFilterContext *ctx)
Definition: vf_bbox.c:48
static const AVFilterPad bbox_outputs[]
Definition: vf_bbox.c:117

Definition at line 125 of file vf_bbox.c.