blob: e897474c43364068f0137370bc41e7a4e1781ed0 [file] [log] [blame]
// Copyright 2020 Joe Drago. All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause
#ifndef COMPARE_H
#define COMPARE_H
#include "avif/avif.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ImageComparison
{
int maxDiff;
int maxDiffY;
int maxDiffU;
int maxDiffV;
int maxDiffA;
float avgDiff;
float avgDiffY;
float avgDiffU;
float avgDiffV;
float avgDiffA;
} ImageComparison;
// Returns AVIF_FALSE if they're not even worth comparing (mismatched sizes / pixel formats / etc)
avifBool compareYUVA(ImageComparison * ic, const avifImage * image1, const avifImage * image2);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // ifndef COMPARE_H