#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 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()
◆ 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
Initial value:= {
}
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_FLOAT
Underlying C type is float.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ 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...
Definition at line 49 of file vf_find_rect.c.
◆ foc_inputs
Initial value:= {
{
.name = "default",
},
}
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
Definition at line 284 of file vf_find_rect.c.
◆ ff_vf_find_rect
Initial value:= {
.p.name = "find_rect",
.p.priv_class = &find_rect_class,
}
int(* init)(AVBSFContext *ctx)
#define AVFILTER_FLAG_METADATA_ONLY
The filter is a "metadata" filter - it does not modify the frame data in any way.
static av_cold void uninit(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
#define FILTER_OUTPUTS(array)
#define FILTER_PIXFMTS(...)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
@ 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 const AVFilterPad foc_inputs[]
const AVFilterPad ff_video_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
Definition at line 292 of file vf_find_rect.c.