#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "filters.h"
#include "video.h"
#include "lavfutils.h"
Go to the source code of this file.
|
| AVFILTER_DEFINE_CLASS (find_rect) |
|
static AVFrame * | downscale (AVFrame *in) |
|
static float | compare (const AVFrame *haystack, const AVFrame *obj, int offx, int offy) |
|
static int | config_input (AVFilterLink *inlink) |
|
static float | search (FOCContext *foc, int pass, int maxpass, int xmin, int xmax, int ymin, int ymax, int *best_x, int *best_y, float best_score) |
|
static int | filter_frame (AVFilterLink *inlink, AVFrame *in) |
|
static av_cold void | uninit (AVFilterContext *ctx) |
|
static av_cold int | init (AVFilterContext *ctx) |
|
◆ MAX_MIPMAPS
◆ OFFSET
◆ FLAGS
◆ AVFILTER_DEFINE_CLASS()
AVFILTER_DEFINE_CLASS |
( |
find_rect |
| ) |
|
◆ downscale()
◆ compare()
◆ config_input()
◆ search()
static float search |
( |
FOCContext * |
foc, |
|
|
int |
pass, |
|
|
int |
maxpass, |
|
|
int |
xmin, |
|
|
int |
xmax, |
|
|
int |
ymin, |
|
|
int |
ymax, |
|
|
int * |
best_x, |
|
|
int * |
best_y, |
|
|
float |
best_score |
|
) |
| |
|
static |
◆ filter_frame()
◆ uninit()
◆ init()
◆ find_rect_options
◆ foc_inputs
Initial value:= {
{
.name = "default",
},
}
Definition at line 278 of file vf_find_rect.c.
◆ ff_vf_find_rect
Initial value:= {
.name = "find_rect",
.priv_class = &find_rect_class,
}
Definition at line 287 of file vf_find_rect.c.
#define FILTER_INPUTS(array)
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define FILTER_OUTPUTS(array)
@ AV_PIX_FMT_YUVJ420P
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
static av_cold int init(AVFilterContext *ctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
static const AVFilterPad foc_inputs[]
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
static int config_input(AVFilterLink *inlink)
#define FILTER_PIXFMTS(...)
@ AV_OPT_TYPE_INT
Underlying C type is int.
static av_cold void uninit(AVFilterContext *ctx)
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
#define flags(name, subs,...)
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...