24#ifndef __EXIF_DATA_H__
25#define __EXIF_DATA_H__
31#include <libexif/exif-byte-order.h>
32#include <libexif/exif-data-type.h>
33#include <libexif/exif-ifd.h>
39typedef struct _ExifDataPrivate ExifDataPrivate;
57 ExifDataPrivate *priv;
84ExifData *exif_data_new_from_file (
const char *path);
92ExifData *exif_data_new_from_data (
const unsigned char *data,
105void exif_data_load_data (
ExifData *data,
const unsigned char *d,
118void exif_data_save_data (
ExifData *data,
unsigned char **d,
122void exif_data_unref (
ExifData *data);
123void exif_data_free (
ExifData *data);
130ExifByteOrder exif_data_get_byte_order (
ExifData *data);
139void exif_data_set_byte_order (
ExifData *data, ExifByteOrder order);
160typedef void (* ExifDataForeachContentFunc) (
ExifContent *,
void *user_data);
168void exif_data_foreach_content (
ExifData *data,
169 ExifDataForeachContentFunc func,
217void exif_data_set_data_type (
ExifData *d, ExifDataType dt);
224ExifDataType exif_data_get_data_type (
ExifData *d);
231void exif_data_dump (
ExifData *data);
248#define exif_data_get_entry(d,t) \
249 (exif_content_get_entry(d->ifd[EXIF_IFD_0],t) ? \
250 exif_content_get_entry(d->ifd[EXIF_IFD_0],t) : \
251 exif_content_get_entry(d->ifd[EXIF_IFD_1],t) ? \
252 exif_content_get_entry(d->ifd[EXIF_IFD_1],t) : \
253 exif_content_get_entry(d->ifd[EXIF_IFD_EXIF],t) ? \
254 exif_content_get_entry(d->ifd[EXIF_IFD_EXIF],t) : \
255 exif_content_get_entry(d->ifd[EXIF_IFD_GPS],t) ? \
256 exif_content_get_entry(d->ifd[EXIF_IFD_GPS],t) : \
257 exif_content_get_entry(d->ifd[EXIF_IFD_INTEROPERABILITY],t) ? \
258 exif_content_get_entry(d->ifd[EXIF_IFD_INTEROPERABILITY],t) : NULL)
struct _ExifContent ExifContent
Holds all EXIF tags in a single IFD.
Definition exif-content.h:31
ExifDataOption
Options to configure the behaviour of ExifData.
Definition exif-data.h:173
@ EXIF_DATA_OPTION_DONT_CHANGE_MAKER_NOTE
Leave the MakerNote alone, which could cause it to be corrupted.
Definition exif-data.h:181
@ EXIF_DATA_OPTION_IGNORE_UNKNOWN_TAGS
Act as though unknown tags are not present.
Definition exif-data.h:175
@ EXIF_DATA_OPTION_FOLLOW_SPECIFICATION
Fix the EXIF tags to follow the spec.
Definition exif-data.h:178
struct _ExifData ExifData
Represents the entire EXIF data found in an image.
Definition exif-data.h:38
Log message infrastructure.
struct _ExifLog ExifLog
State maintained by the logging interface.
Definition exif-log.h:34
Define the ExifMem data type and the associated functions.
struct _ExifMem ExifMem
ExifMem define a memory allocator.
Definition exif-mem.h:57
Handling EXIF MakerNote tags.
struct _ExifMnoteData ExifMnoteData
Data found in the MakerNote tag.
Definition exif-mnote-data.h:33
Represents the entire EXIF data found in an image.
Definition exif-data.h:47
unsigned char * data
Pointer to thumbnail image, or NULL if not available.
Definition exif-data.h:52
unsigned int size
Number of bytes in thumbnail image at data.
Definition exif-data.h:55
ExifContent * ifd[EXIF_IFD_COUNT]
Data for each IFD.
Definition exif-data.h:49