Handling EXIF entries.
More...
Go to the source code of this file.
◆ exif_entry_get_ifd
Return the IFD number of the given ExifEntry.
- Parameters
-
- Returns
- #ExifIfd, or #EXIF_IFD_COUNT on error
◆ ExifEntry
Data found in one EXIF tag.
The exif_entry_get_value function can provide access to the formatted contents, or the struct members can be used directly to access the raw contents.
◆ exif_entry_dump()
| void exif_entry_dump |
( |
ExifEntry * |
entry, |
|
|
unsigned int |
indent |
|
) |
| |
Dump text representation of ExifEntry to stdout.
This is intended for diagnostic purposes only.
- Parameters
-
| [in] | entry | EXIF tag data |
| [in] | indent | how many levels deep to indent the data |
◆ exif_entry_fix()
Fix the type or format of the given EXIF entry to bring it into spec.
If the data for this EXIF tag is in of the wrong type or is in an invalid format according to the EXIF specification, then it is converted to make it valid. This may involve, for example, converting an EXIF_FORMAT_LONG into a EXIF_FORMAT_SHORT. If the tag is unknown, its value is untouched.
- Note
- Unfortunately, some conversions are to a type with a more restricted range, which could have the side effect that the converted data becomes invalid. This is unlikely as the range of each tag in the standard is designed to encompass all likely data.
- Parameters
-
References _ExifEntry::priv, and _ExifEntry::tag.
◆ exif_entry_free()
◆ exif_entry_get_value()
| 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.
This is meant for display to the user. The format of each tag is subject to change between locales and in newer versions of libexif. Users who require the tag data in an unambiguous form should access the data members of the ExifEntry structure directly.
- Warning
- The character set of the returned string may be in the encoding of the current locale or the native encoding of the camera.
- Bug:
- The EXIF_TAG_XP_* tags are currently always returned in UTF-8, regardless of locale, and code points above U+FFFF are not supported.
- Parameters
-
| [in] | entry | EXIF entry |
| [out] | val | buffer in which to store value; if entry is valid and maxlen > 0 then this string will be NUL-terminated |
| [in] | maxlen | length of the buffer val |
- Returns
- val pointer
References _ExifEntry::components, exif_data_get_byte_order(), exif_format_get_size(), _ExifEntry::format, _ExifContent::parent, _ExifEntry::parent, _ExifEntry::size, and _ExifEntry::tag.
◆ exif_entry_initialize()
◆ exif_entry_new()
◆ exif_entry_new_mem()
◆ exif_entry_ref()
◆ exif_entry_unref()