Debian Codegraph @

heifio/exif.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 #ifndef LIBHEIF_EXIF_H
22 #define LIBHEIF_EXIF_H
23
24 #include <vector>
25 #include <cinttypes>
26
27 int read_exif_orientation_tag(const uint8_t* exif, uint32_t size);
28
29 void modify_exif_orientation_tag_if_it_exists(uint8_t* exifData, uint32_t size, uint16_t orientation);
30
31 void overwrite_exif_image_size_if_it_exists(uint8_t* exif, uint32_t size, uint32_t width, uint32_t height);
32
33 #endif //LIBHEIF_EXIF_H