digiKam
quality.h
Go to the documentation of this file.
1 /*
2  * H.265 video codec.
3  * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de>
4  *
5  * This file is part of libde265.
6  *
7  * libde265 is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation, either version 3 of
10  * the License, or (at your option) any later version.
11  *
12  * libde265 is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with libde265. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef DE265_QUALITY_H
22 #define DE265_QUALITY_H
23 
24 #include <stdint.h>
25 #include <libde265/de265.h>
26 #include <libde265/image.h>
27 
28 
29 LIBDE265_API uint32_t SSD(const uint8_t* img, int imgStride,
30  const uint8_t* ref, int refStride,
31  int width, int height);
32 
33 LIBDE265_API uint32_t SAD(const uint8_t* img, int imgStride,
34  const uint8_t* ref, int refStride,
35  int width, int height);
36 
37 LIBDE265_API double MSE(const uint8_t* img, int imgStride,
38  const uint8_t* ref, int refStride,
39  int width, int height);
40 
41 LIBDE265_API double PSNR(double mse);
42 
43 
44 LIBDE265_API uint32_t compute_distortion_ssd(const de265_image* img1, const de265_image* img2,
45  int x0, int y0, int log2size, int cIdx);
46 
47 #endif
#define LIBDE265_API
Definition: de265.h:52
LIBDE265_API double PSNR(double mse)
LIBDE265_API uint32_t SSD(const uint8_t *img, int imgStride, const uint8_t *ref, int refStride, int width, int height)
LIBDE265_API uint32_t SAD(const uint8_t *img, int imgStride, const uint8_t *ref, int refStride, int width, int height)
LIBDE265_API uint32_t compute_distortion_ssd(const de265_image *img1, const de265_image *img2, int x0, int y0, int log2size, int cIdx)
LIBDE265_API double MSE(const uint8_t *img, int imgStride, const uint8_t *ref, int refStride, int width, int height)
Definition: image.h:222