FFmpeg
Classes | Macros | Typedefs | Functions | Variables
vf_vmafmotion.c File Reference

Calculate VMAF Motion score. More...

#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "drawutils.h"
#include "formats.h"
#include "internal.h"
#include "vmaf_motion.h"

Classes

struct  VMAFMotionContext
 

Macros

#define BIT_SHIFT   15
 
#define OFFSET(x)   offsetof(VMAFMotionContext, x)
 
#define FLAGS   AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 
#define conv_y_fn(type, bits)
 

Typedefs

typedef struct VMAFMotionContext VMAFMotionContext
 

Functions

 AVFILTER_DEFINE_CLASS (vmafmotion)
 
 conv_y_fn (uint8_t, 8)
 
 conv_y_fn (uint16_t, 10)
 
double ff_vmafmotion_process (VMAFMotionData *s, AVFrame *ref)
 
int ff_vmafmotion_init (VMAFMotionData *s, int w, int h, enum AVPixelFormat fmt)
 
double ff_vmafmotion_uninit (VMAFMotionData *s)
 

Variables

AVFilter ff_vf_vmafmotion
 

Detailed Description

Calculate VMAF Motion score.

Variable Documentation

§ ff_vf_vmafmotion

AVFilter ff_vf_vmafmotion
Initial value:
= {
.name = "vmafmotion",
.description = NULL_IF_CONFIG_SMALL("Calculate the VMAF Motion score."),
.init = init,
.uninit = uninit,
.query_formats = query_formats,
.priv_size = sizeof(VMAFMotionContext),
.priv_class = &vmafmotion_class,
.inputs = vmafmotion_inputs,
.outputs = vmafmotion_outputs,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: vf_vmafmotion.c:45