EXIF library (libexif) API 0.6.22
exif-utils.h File Reference

EXIF data manipulation functions and types. More...

#include <libexif/exifbyte.h>
#include <libexif/exifform.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  ExifRational
 EXIF Unsigned Rational data type. More...
 
struct  ExifSRational
 EXIF Signed Rational data type. More...
 

Macros

#define exif_enum(x)   x
 
#define EXIF_API(x)   x
 
#define EXIF_CALLBACK
 
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
 
#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
 
#define EXIF_TAG_SUBSEC_TIME   EXIF_TAG_SUB_SEC_TIME
 

Typedefs

typedef int exif_int_t
 
typedef unsigned int exif_uint_t
 
typedef unsigned char ExifByte
 EXIF Unsigned Byte data type.
 
typedef signed char ExifSByte
 EXIF Signed Byte data type.
 
typedef char * ExifAscii
 EXIF Text String data type.
 
typedef uint16_t ExifShort
 EXIF Unsigned Short data type.
 
typedef int16_t ExifSShort
 EXIF Signed Short data type.
 
typedef uint32_t ExifLong
 EXIF Unsigned Long data type.
 
typedef int32_t ExifSLong
 EXIF Signed Long data type.
 
typedef char ExifUndefined
 

Functions

 EXIF_API (ExifShort) exif_get_short(const unsigned char *b
 Retrieve an ExifShort value from memory.
 
 exif_enum (ExifByteOrder) order)
 
 EXIF_API (ExifSShort) exif_get_sshort(const unsigned char *b
 Retrieve an ExifSShort value from memory.
 
 EXIF_API (ExifLong) exif_get_long(const unsigned char *b
 Retrieve an ExifLong value from memory.
 
 EXIF_API (ExifSLong) exif_get_slong(const unsigned char *b
 Retrieve an ExifSLong value from memory.
 
 EXIF_API (ExifRational) exif_get_rational(const unsigned char *b
 Retrieve an ExifRational value from memory.
 
 EXIF_API (ExifSRational) exif_get_srational(const unsigned char *b
 Retrieve an ExifSRational value from memory.
 
 EXIF_API (void) exif_set_short(unsigned char *b
 Store an ExifShort value into memory in EXIF format.
 

Variables

exif_uint_t value
 
const unsigned short * in
 
const unsigned short int32_t maxlen
 
unsigned char uint32_t
 

Detailed Description

EXIF data manipulation functions and types.

Macro Definition Documentation

◆ EXIF_TAG_SUBSEC_TIME

#define EXIF_TAG_SUBSEC_TIME   EXIF_TAG_SUB_SEC_TIME
Deprecated:
Use EXIF_TAG_SUB_SEC_TIME instead.

Function Documentation

◆ EXIF_API() [1/7]

EXIF_API ( ExifLong  ) const

Retrieve an ExifLong value from memory.

Return the tag ID given its unique textual name.

Parameters
[in]bpointer to raw EXIF value in memory
[in]orderbyte order of raw value
Returns
value

◆ EXIF_API() [2/7]

EXIF_API ( ExifRational  ) const

Retrieve an ExifRational value from memory.

Parameters
[in]bpointer to raw EXIF value in memory
[in]orderbyte order of raw value
Returns
value

◆ EXIF_API() [3/7]

EXIF_API ( ExifShort  ) const

Retrieve an ExifShort value from memory.

Parameters
[in]bpointer to raw EXIF value in memory
[in]orderbyte order of raw value
Returns
value

◆ EXIF_API() [4/7]

EXIF_API ( ExifSLong  ) const

Retrieve an ExifSLong value from memory.

Parameters
[in]bpointer to raw EXIF value in memory
[in]orderbyte order of raw value
Returns
value

◆ EXIF_API() [5/7]

EXIF_API ( ExifSRational  ) const

Retrieve an ExifSRational value from memory.

Parameters
[in]bpointer to raw EXIF value in memory
[in]orderbyte order of raw value
Returns
value

◆ EXIF_API() [6/7]

EXIF_API ( ExifSShort  ) const

Retrieve an ExifSShort value from memory.

Parameters
[in]bpointer to raw EXIF value in memory
[in]orderbyte order of raw value
Returns
value

◆ EXIF_API() [7/7]

EXIF_API ( void  )

Store an ExifShort value into memory in EXIF format.

Store an ExifSRational value into memory in EXIF format.

Store an ExifRational value into memory in EXIF format.

Store an ExifSLong value into memory in EXIF format.

Store an ExifLong value into memory in EXIF format.

Store an ExifSShort value into memory in EXIF format.

Parameters
[out]bbuffer in which to write raw value
[in]orderbyte order to use
[in]valuedata value to store