FFmpeg
|
#include <math.h>
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | SiTiContext |
Macros | |
#define | CONVOLVE(bps) |
#define | CALCULATE(bps) |
#define | OFFSET(x) offsetof(SiTiContext, x) |
#define | FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
static av_cold int | init (AVFilterContext *ctx) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | config_input (AVFilterLink *inlink) |
static int | is_full_range (AVFrame *frame) |
static uint16_t | convert_full_range (int factor, uint16_t y) |
static void | convolve_sobel (SiTiContext *s, const uint8_t *src, float *dst, int linesize) |
static void | calculate_motion (SiTiContext *s, const uint8_t *curr, float *motion_matrix, int linesize) |
static float | std_deviation (float *img_metrics, int width, int height) |
static void | set_meta (AVDictionary **metadata, const char *key, float d) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
AVFILTER_DEFINE_CLASS (siti) | |
Variables | |
static const int | X_FILTER [9] |
static const int | Y_FILTER [9] |
static enum AVPixelFormat | pix_fmts [] |
static const AVOption | siti_options [] |
static const AVFilterPad | avfilter_vf_siti_inputs [] |
const AVFilter | ff_vf_siti |
Calculate Spatial Info (SI) and Temporal Info (TI) scores
Definition in file vf_siti.c.
#define CONVOLVE | ( | bps | ) |
#define CALCULATE | ( | bps | ) |
#define OFFSET | ( | x | ) | offsetof(SiTiContext, x) |
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
|
static |
|
static |
|
static |
Definition at line 144 of file vf_siti.c.
Referenced by filter_frame().
|
static |
|
static |
Definition at line 169 of file vf_siti.c.
Referenced by filter_frame().
|
static |
Definition at line 214 of file vf_siti.c.
Referenced by filter_frame().
Definition at line 251 of file vf_siti.c.
Referenced by filter_frame().
|
static |
Definition at line 273 of file vf_siti.c.
Referenced by filter_frame().
|
static |
AVFILTER_DEFINE_CLASS | ( | siti | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
const AVFilter ff_vf_siti |