|
FFmpeg
|
#include "libavutil/avassert.h"#include "libavutil/eval.h"#include "libavutil/imgutils.h"#include "libavutil/mem.h"#include "libavutil/pixdesc.h"#include "libavutil/opt.h"#include "avfilter.h"#include "filters.h"#include "video.h"Go to the source code of this file.
Data Structures | |
| struct | PerspectiveContext |
| struct | ThreadData |
| Used for passing data between threads. More... | |
Macros | |
| #define | SUB_PIXEL_BITS 8 |
| #define | SUB_PIXELS (1 << SUB_PIXEL_BITS) |
| #define | COEFF_BITS 11 |
| #define | LINEAR 0 |
| #define | CUBIC 1 |
| #define | OFFSET(x) |
| #define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Enumerations | |
| enum | PERSPECTIVESense { PERSPECTIVE_SENSE_SOURCE = 0 , PERSPECTIVE_SENSE_DESTINATION = 1 } |
| enum | EvalMode { EVAL_MODE_INIT , EVAL_MODE_FRAME , EVAL_MODE_NB } |
| enum | { VAR_W , VAR_H , VAR_IN , VAR_ON , VAR_VARS_NB } |
Functions | |
| AVFILTER_DEFINE_CLASS (perspective) | |
| static double | get_coeff (double d) |
| static int | calc_persp_luts (AVFilterContext *ctx, AVFilterLink *inlink) |
| static int | config_input (AVFilterLink *inlink) |
| static int | resample_cubic (AVFilterContext *ctx, void *arg, int job, int nb_jobs) |
| static int | resample_linear (AVFilterContext *ctx, void *arg, int job, int nb_jobs) |
| static av_cold int | init (AVFilterContext *ctx) |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
| static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
| static const AVOption | perspective_options [] |
| static enum AVPixelFormat | pix_fmts [] |
| static const char *const | var_names [] = { "W", "H", "in", "on", NULL } |
| static const AVFilterPad | perspective_inputs [] |
| const FFFilter | ff_vf_perspective |
| #define SUB_PIXEL_BITS 8 |
Definition at line 32 of file vf_perspective.c.
Referenced by resample_cubic(), and resample_linear().
| #define SUB_PIXELS (1 << SUB_PIXEL_BITS) |
Definition at line 33 of file vf_perspective.c.
Referenced by calc_persp_luts(), config_input(), resample_cubic(), and resample_linear().
| #define COEFF_BITS 11 |
Definition at line 34 of file vf_perspective.c.
| #define LINEAR 0 |
Definition at line 36 of file vf_perspective.c.
Referenced by calc_max_draw(), checkasm_check_sw_ops(), distortion_correction_filter_slice(), filter_frame(), get_iscale(), get_scale(), init(), read16_fft_bin(), and read8_fft_bin().
| #define CUBIC 1 |
Definition at line 37 of file vf_perspective.c.
Referenced by init().
| #define OFFSET | ( | x | ) |
Definition at line 57 of file vf_perspective.c.
| #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 58 of file vf_perspective.c.
| enum PERSPECTIVESense |
| Enumerator | |
|---|---|
| PERSPECTIVE_SENSE_SOURCE | coordinates give locations in source of corners of destination. |
| PERSPECTIVE_SENSE_DESTINATION | coordinates give locations in destination of corners of source. |
Definition at line 60 of file vf_perspective.c.
| enum EvalMode |
| Enumerator | |
|---|---|
| EVAL_MODE_INIT | |
| EVAL_MODE_FRAME | |
| EVAL_MODE_NB | |
Definition at line 65 of file vf_perspective.c.
| anonymous enum |
| Enumerator | |
|---|---|
| VAR_W | |
| VAR_H | |
| VAR_IN | |
| VAR_ON | |
| VAR_VARS_NB | |
Definition at line 121 of file vf_perspective.c.
| AVFILTER_DEFINE_CLASS | ( | perspective | ) |
Definition at line 104 of file vf_perspective.c.
Referenced by config_input().
|
static |
Definition at line 123 of file vf_perspective.c.
Referenced by config_input(), and filter_frame().
|
static |
Definition at line 222 of file vf_perspective.c.
|
static |
Definition at line 276 of file vf_perspective.c.
Referenced by init().
|
static |
Definition at line 355 of file vf_perspective.c.
Referenced by init(), and resample_linear_TMPL().
|
static |
Definition at line 430 of file vf_perspective.c.
|
static |
Definition at line 442 of file vf_perspective.c.
|
static |
Definition at line 484 of file vf_perspective.c.
|
static |
Definition at line 71 of file vf_perspective.c.
|
static |
Definition at line 97 of file vf_perspective.c.
|
static |
Definition at line 120 of file vf_perspective.c.
|
static |
Definition at line 491 of file vf_perspective.c.
| const FFFilter ff_vf_perspective |
Definition at line 500 of file vf_perspective.c.