media/libyuv/util/ssim.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /*
michael@0 2 * Copyright 2013 The LibYuv Project Authors. All rights reserved.
michael@0 3 *
michael@0 4 * Use of this source code is governed by a BSD-style license
michael@0 5 * that can be found in the LICENSE file in the root of the source
michael@0 6 * tree. An additional intellectual property rights grant can be found
michael@0 7 * in the file PATENTS. All contributing project authors may
michael@0 8 * be found in the AUTHORS file in the root of the source tree.
michael@0 9 */
michael@0 10
michael@0 11 // Get SSIM for video sequence. Assuming RAW 4:2:0 Y:Cb:Cr format
michael@0 12
michael@0 13 #ifndef UTIL_SSIM_H_ // NOLINT
michael@0 14 #define UTIL_SSIM_H_
michael@0 15
michael@0 16 #ifdef __cplusplus
michael@0 17 extern "C" {
michael@0 18 #endif
michael@0 19
michael@0 20 #if !defined(INT_TYPES_DEFINED) && !defined(UINT8_TYPE_DEFINED)
michael@0 21 typedef unsigned char uint8;
michael@0 22 #define UINT8_TYPE_DEFINED
michael@0 23 #endif
michael@0 24
michael@0 25 double CalcSSIM(const uint8* org, const uint8* rec,
michael@0 26 const int image_width, const int image_height);
michael@0 27
michael@0 28 // does -10.0 * log10(1.0 - ssim)
michael@0 29 double CalcLSSIM(double ssim);
michael@0 30
michael@0 31 #ifdef __cplusplus
michael@0 32 } // extern "C"
michael@0 33 #endif
michael@0 34
michael@0 35 #endif // UTIL_SSIM_H_ // NOLINT

mercurial