FFmpeg
|
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "dualinput.h"
#include "drawutils.h"
#include "formats.h"
#include "internal.h"
#include "ssim.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | SSIMContext |
Macros | |
#define | OFFSET(x) offsetof(SSIMContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define | SUM_LEN(w) (((w) >> 2) + 3) |
#define | PF(suf) AV_PIX_FMT_YUV420##suf, AV_PIX_FMT_YUV422##suf, AV_PIX_FMT_YUV444##suf, AV_PIX_FMT_GBR##suf |
Functions | |
AVFILTER_DEFINE_CLASS (ssim) | |
static void | set_meta (AVDictionary **metadata, const char *key, char comp, float d) |
static void | ssim_4x4xn_16bit (const uint8_t *main8, ptrdiff_t main_stride, const uint8_t *ref8, ptrdiff_t ref_stride, int64_t(*sums)[4], int width) |
static void | ssim_4x4xn_8bit (const uint8_t *main, ptrdiff_t main_stride, const uint8_t *ref, ptrdiff_t ref_stride, int(*sums)[4], int width) |
static float | ssim_end1x (int64_t s1, int64_t s2, int64_t ss, int64_t s12, int max) |
static float | ssim_end1 (int s1, int s2, int ss, int s12) |
static float | ssim_endn_16bit (const int64_t(*sum0)[4], const int64_t(*sum1)[4], int width, int max) |
static float | ssim_endn_8bit (const int(*sum0)[4], const int(*sum1)[4], int width) |
static float | ssim_plane_16bit (SSIMDSPContext *dsp, uint8_t *main, int main_stride, uint8_t *ref, int ref_stride, int width, int height, void *temp, int max) |
static float | ssim_plane (SSIMDSPContext *dsp, uint8_t *main, int main_stride, uint8_t *ref, int ref_stride, int width, int height, void *temp, int max) |
static double | ssim_db (double ssim, double weight) |
static AVFrame * | do_ssim (AVFilterContext *ctx, AVFrame *main, const AVFrame *ref) |
static av_cold int | init (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_input_ref (AVFilterLink *inlink) |
static int | config_output (AVFilterLink *outlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *buf) |
static int | request_frame (AVFilterLink *outlink) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | ssim_options [] |
static const AVFilterPad | ssim_inputs [] |
static const AVFilterPad | ssim_outputs [] |
AVFilter | ff_vf_ssim |
#define OFFSET | ( | x | ) | offsetof(SSIMContext, x) |
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define SUM_LEN | ( | w | ) | (((w) >> 2) + 3) |
Definition at line 222 of file vf_ssim.c.
Referenced by config_input_ref(), ssim_plane(), and ssim_plane_16bit().
#define PF | ( | suf | ) | AV_PIX_FMT_YUV420##suf, AV_PIX_FMT_YUV422##suf, AV_PIX_FMT_YUV444##suf, AV_PIX_FMT_GBR##suf |
Referenced by query_formats().
AVFILTER_DEFINE_CLASS | ( | ssim | ) |
|
static |
|
static |
Definition at line 96 of file vf_ssim.c.
Referenced by ssim_plane_16bit().
|
static |
Definition at line 132 of file vf_ssim.c.
Referenced by config_input_ref().
|
static |
Definition at line 163 of file vf_ssim.c.
Referenced by ssim_endn_16bit().
Definition at line 179 of file vf_ssim.c.
Referenced by ssim_endn_8bit().
|
static |
Definition at line 195 of file vf_ssim.c.
Referenced by ssim_plane_16bit().
Definition at line 209 of file vf_ssim.c.
Referenced by config_input_ref().
|
static |
Definition at line 224 of file vf_ssim.c.
Referenced by config_input_ref().
|
static |
Definition at line 252 of file vf_ssim.c.
Referenced by config_input_ref().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
AVFilter ff_vf_ssim |