File: quality.h

package info (click to toggle)
libde265 1.0.11-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,712 kB
  • sloc: cpp: 41,045; sh: 4,168; asm: 1,223; ansic: 368; makefile: 358
file content (47 lines) | stat: -rw-r--r-- 1,626 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * H.265 video codec.
 * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de>
 *
 * This file is part of libde265.
 *
 * libde265 is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of
 * the License, or (at your option) any later version.
 *
 * libde265 is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with libde265.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef DE265_QUALITY_H
#define DE265_QUALITY_H

#include <stdint.h>
#include <libde265/de265.h>
#include <libde265/image.h>


uint32_t SSD(const uint8_t* img, int imgStride,
                          const uint8_t* ref, int refStride,
                          int width, int height);

uint32_t SAD(const uint8_t* img, int imgStride,
                          const uint8_t* ref, int refStride,
                          int width, int height);

LIBDE265_API double MSE(const uint8_t* img, int imgStride,
                        const uint8_t* ref, int refStride,
                        int width, int height);

LIBDE265_API double PSNR(double mse);


uint32_t compute_distortion_ssd(const de265_image* img1, const de265_image* img2,
                                             int x0, int y0, int log2size, int cIdx);

#endif