EXIF library (libexif) API
0.6.21
|
Go to the documentation of this file.
23 #ifndef __EXIF_ENTRY_H__
24 #define __EXIF_ENTRY_H__
36 typedef struct _ExifEntryPrivate ExifEntryPrivate;
164 unsigned int maxlen);
179 #define exif_entry_get_ifd(e) ((e)?exif_content_get_ifd((e)->parent):EXIF_IFD_COUNT)
unsigned long components
Number of elements in the array, if this is an array entry.
Definition: exif-entry.h:52
EXIF Unsigned Rational data type.
Definition: exif-utils.h:60
Data found in one EXIF tag.
Definition: exif-entry.h:43
ExifTag tag
EXIF tag for this entry.
Definition: exif-entry.h:45
ExifEntryPrivate * priv
Internal data to be used by libexif itself.
Definition: exif-entry.h:68
ExifByteOrder exif_data_get_byte_order(ExifData *data)
Return the byte order in use by this EXIF structure.
Definition: exif-data.c:1136
ExifSRational exif_get_srational(const unsigned char *b, ExifByteOrder order)
Retrieve an ExifSRational value from memory.
Definition: exif-utils.c:177
void exif_entry_ref(ExifEntry *entry)
Increase reference counter for ExifEntry.
Definition: exif-entry.c:138
ExifMem * exif_mem_new_default(void)
Create a new ExifMem with default values for your convenience.
Definition: exif-mem.c:95
ExifTag
EXIF tags.
Definition: exif-tag.h:34
unsigned char * data
Pointer to the raw EXIF data for this entry.
Definition: exif-entry.h:57
struct _ExifLog ExifLog
State maintained by the logging interface.
Definition: exif-log.h:34
Definition: exif-content.h:40
const char * exif_entry_get_value(ExifEntry *entry, char *val, unsigned int maxlen)
Return a localized textual representation of the value of the EXIF entry.
Definition: exif-entry.c:831
ExifEntry * exif_content_get_entry(ExifContent *content, ExifTag tag)
Return the ExifEntry in this IFD corresponding to the given tag.
Definition: exif-content.c:196
uint16_t ExifShort
EXIF Unsigned Short data type.
Definition: exif-utils.h:48
ExifLong exif_get_long(const unsigned char *b, ExifByteOrder order)
Retrieve an ExifLong value from memory.
Definition: exif-utils.c:165
EXIF Signed Rational data type.
Definition: exif-utils.h:65
const char * exif_tag_get_name_in_ifd(ExifTag tag, ExifIfd ifd)
Return a textual name of the given tag when found in the given IFD.
Definition: exif-tag.c:946
EXIF data manipulation functions and types.
void exif_mem_unref(ExifMem *)
Unrefcount an ExifMem.
Definition: exif-mem.c:61
void exif_entry_free(ExifEntry *entry)
Actually free the ExifEntry.
Definition: exif-entry.c:156
ExifContent * parent
ExifContent containing this entry.
Definition: exif-entry.h:65
int32_t ExifSLong
EXIF Signed Long data type.
Definition: exif-utils.h:57
void exif_convert_utf16_to_utf8(char *out, const unsigned short *in, int maxlen)
This function converts rather UCS-2LE than UTF-16 to UTF-8.
Definition: exif-utils.c:220
int16_t ExifSShort
EXIF Signed Short data type.
Definition: exif-utils.h:51
void exif_set_srational(unsigned char *b, ExifByteOrder order, ExifSRational value)
Store an ExifSRational value into memory in EXIF format.
Definition: exif-utils.c:208
ExifRational exif_get_rational(const unsigned char *b, ExifByteOrder order)
Retrieve an ExifRational value from memory.
Definition: exif-utils.c:188
void exif_entry_unref(ExifEntry *entry)
Decrease reference counter for ExifEntry.
Definition: exif-entry.c:146
void exif_entry_fix(ExifEntry *entry)
Fix the type or format of the given EXIF entry to bring it into spec.
Definition: exif-entry.c:197
void exif_entry_initialize(ExifEntry *e, ExifTag tag)
Initialize an empty ExifEntry with default data in the correct format for the given tag.
Definition: exif-entry.c:1410
unsigned char ExifByte
EXIF Unsigned Byte data type.
Definition: exif-utils.h:39
ExifFormat format
Type of data in this entry.
Definition: exif-entry.h:48
ExifData * parent
Data containing this content.
Definition: exif-content.h:46
ExifEntry * exif_entry_new(void)
Reserve memory for and initialize a new ExifEntry.
Definition: exif-entry.c:110
ExifShort exif_get_short(const unsigned char *b, ExifByteOrder order)
Retrieve an ExifShort value from memory.
Definition: exif-utils.c:102
ExifEntry * exif_entry_new_mem(ExifMem *)
Reserve memory for and initialize new ExifEntry using the specified memory allocator.
Definition: exif-entry.c:121
ExifByteOrder
Which byte order to use.
Definition: exif-byte-order.h:31
#define exif_entry_get_ifd(e)
Return the IFD number of the given ExifEntry.
Definition: exif-entry.h:179
struct _ExifMem ExifMem
ExifMem define a memory allocator.
Definition: exif-mem.h:57
Define the ExifMem data type and the associated functions. ExifMem defines the memory management func...
unsigned int size
Number of bytes in the buffer at data.
Definition: exif-entry.h:61
void exif_entry_dump(ExifEntry *entry, unsigned int indent)
Dump text representation of ExifEntry to stdout.
Definition: exif-entry.c:593
uint32_t ExifLong
EXIF Unsigned Long data type.
Definition: exif-utils.h:54
Represents the entire EXIF data found in an image.
Definition: exif-data.h:46
ExifContent * ifd[EXIF_IFD_COUNT]
Data for each IFD.
Definition: exif-data.h:49
ExifSLong exif_get_slong(const unsigned char *b, ExifByteOrder order)
Retrieve an ExifSLong value from memory.
Definition: exif-utils.c:130
void exif_mem_ref(ExifMem *)
Refcount an ExifMem.
Definition: exif-mem.c:54
void exif_set_rational(unsigned char *b, ExifByteOrder order, ExifRational value)
Store an ExifRational value into memory in EXIF format.
Definition: exif-utils.c:199
void exif_set_short(unsigned char *b, ExifByteOrder order, ExifShort value)
Store an ExifShort value into memory in EXIF format.
Definition: exif-utils.c:124
ExifSShort exif_get_sshort(const unsigned char *b, ExifByteOrder order)
Retrieve an ExifSShort value from memory.
Definition: exif-utils.c:87