23 #ifndef __EXIF_UTILS_H__
24 #define __EXIF_UTILS_H__
32 #include <libexif/_stdint.h>
60 typedef struct {ExifLong numerator; ExifLong denominator;}
ExifRational;
62 typedef char ExifUndefined;
65 typedef struct {ExifSLong numerator; ExifSLong denominator;}
ExifSRational;
74 ExifShort exif_get_short (
const unsigned char *b,
ExifByteOrder order);
82 ExifSShort exif_get_sshort (
const unsigned char *b,
ExifByteOrder order);
90 ExifLong exif_get_long (
const unsigned char *b,
ExifByteOrder order);
98 ExifSLong exif_get_slong (
const unsigned char *b,
ExifByteOrder order);
158 void exif_set_rational (
unsigned char *b,
ExifByteOrder order,
167 void exif_set_srational (
unsigned char *b,
ExifByteOrder order,
171 void exif_convert_utf16_to_utf8 (
char *out,
const unsigned short *in,
int maxlen);
176 void exif_array_set_byte_order (
ExifFormat,
unsigned char *,
unsigned int,
180 #define MIN(a, b) (((a) < (b)) ? (a) : (b))
183 #define MAX(a, b) (((a) > (b)) ? (a) : (b))
188 #define EXIF_TAG_SUBSEC_TIME EXIF_TAG_SUB_SEC_TIME