FFmpeg
|
Caculate the PSNR between two input videos. More...
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "dualinput.h"
#include "drawutils.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
Go to the source code of this file.
Data Structures | |
struct | PSNRContext |
Macros | |
#define | OFFSET(x) offsetof(PSNRContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Functions | |
AVFILTER_DEFINE_CLASS (psnr) | |
static int | pow2 (int base) |
static double | get_psnr (double mse, uint64_t nb_frames, int max) |
static void | compute_images_mse (const uint8_t *main_data[4], const int main_linesizes[4], const uint8_t *ref_data[4], const int ref_linesizes[4], int w, int h, const AVPixFmtDescriptor *desc, double mse[4]) |
static void | set_meta (AVDictionary **metadata, const char *key, char comp, float d) |
static AVFrame * | do_psnr (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_main (AVFilterLink *inlink, AVFrame *inpicref) |
static int | filter_frame_ref (AVFilterLink *inlink, AVFrame *inpicref) |
static int | request_frame (AVFilterLink *outlink) |
static av_cold void | uninit (AVFilterContext *ctx) |
Variables | |
static const AVOption | psnr_options [] |
static const AVFilterPad | psnr_inputs [] |
static const AVFilterPad | psnr_outputs [] |
AVFilter | avfilter_vf_psnr |
Caculate the PSNR between two input videos.
Definition in file vf_psnr.c.
#define OFFSET | ( | x | ) | offsetof(PSNRContext, x) |
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
AVFILTER_DEFINE_CLASS | ( | psnr | ) |
|
inlinestatic |
Definition at line 62 of file vf_psnr.c.
Referenced by compute_images_mse(), and get_psnr().
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
AVFilter avfilter_vf_psnr |