Debian Codegraph @

examples/benchmark.h

raw
1 /*
2 * HEIF codec.
3 * Copyright (c) 2022 Dirk Farin <[email protected]>
4 *
5 * This file is part of libheif.
6 *
7 * libheif 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 * libheif 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 libheif. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21
22 #ifndef LIBHEIF_BENCHMARK_H
23 #define LIBHEIF_BENCHMARK_H
24
25 #include <memory>
26 #include <string>
27
28 struct heif_image;
29
30 double compute_psnr(heif_image* original_image, const std::string& encoded_file);
31
32 #endif //LIBHEIF_BENCHMARK_H