michael@0: /* michael@0: * Copyright 2013 The LibYuv Project Authors. All rights reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: // Get SSIM for video sequence. Assuming RAW 4:2:0 Y:Cb:Cr format michael@0: michael@0: #ifndef UTIL_SSIM_H_ // NOLINT michael@0: #define UTIL_SSIM_H_ michael@0: michael@0: #ifdef __cplusplus michael@0: extern "C" { michael@0: #endif michael@0: michael@0: #if !defined(INT_TYPES_DEFINED) && !defined(UINT8_TYPE_DEFINED) michael@0: typedef unsigned char uint8; michael@0: #define UINT8_TYPE_DEFINED michael@0: #endif michael@0: michael@0: double CalcSSIM(const uint8* org, const uint8* rec, michael@0: const int image_width, const int image_height); michael@0: michael@0: // does -10.0 * log10(1.0 - ssim) michael@0: double CalcLSSIM(double ssim); michael@0: michael@0: #ifdef __cplusplus michael@0: } // extern "C" michael@0: #endif michael@0: michael@0: #endif // UTIL_SSIM_H_ // NOLINT