Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
xmp_sidecar.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2009-2013 johannes hanika.
4 Copyright (C) 2010 Henrik Andersson.
5 Copyright (C) 2011-2012, 2014-2016 Tobias Ellinghaus.
6 Copyright (C) 2013-2022 Pascal Obry.
7 Copyright (C) 2014-2016 Roman Lebedev.
8 Copyright (C) 2019, 2021 Hanno Schwalm.
9 Copyright (C) 2019-2020, 2022 Philippe Weyland.
10 Copyright (C) 2021 Hubert Kowalski.
11 Copyright (C) 2023, 2025-2026 Aurélien PIERRE.
12
13 darktable is free software: you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 darktable is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with darktable. If not, see <http://www.gnu.org/licenses/>.
25*/
26
45#ifndef DT_COMMON_XMP_SIDECAR_H
46#define DT_COMMON_XMP_SIDECAR_H
47
48#include "common/image.h"
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
56int dt_exif_read_blob(uint8_t **blob, const char *path, const int32_t imgid, const int sRGB, const int out_width,
57 const int out_height, const int dng_mode);
58
60int dt_exif_xmp_write_with_imgpath(const struct dt_image_t *image, const char *filename, const char *imgpath);
61
63int dt_exif_xmp_attach_export(const int32_t imgid, const char *filename, void *metadata);
64
66char *dt_exif_xmp_read_string(const int32_t imgid);
67
69int dt_exif_xmp_read(dt_image_t *img, const char *filename, const int history_only);
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif // DT_COMMON_XMP_SIDECAR_H
76
77// clang-format off
78// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
79// vim: shiftwidth=2 expandtab tabstop=2 cindent
80// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
81// clang-format on
static dt_aligned_pixel_t sRGB
int dt_exif_xmp_attach_export(const int32_t imgid, const char *filename, void *metadata)
int dt_exif_xmp_write_with_imgpath(const struct dt_image_t *image, const char *filename, const char *imgpath)
int dt_exif_xmp_read(dt_image_t *img, const char *filename, const int history_only)
int dt_exif_read_blob(uint8_t **blob, const char *path, const int32_t imgid, const int sRGB, const int out_width, const int out_height, const int dng_mode)
char * dt_exif_xmp_read_string(const int32_t imgid)