comparison src/exif-int.h @ 1000:4fe8f9656107

For the sake of consistency, use glib basic types everywhere.
author zas_
date Tue, 26 Aug 2008 22:22:51 +0000
parents 116346636d42
children 3096a47232ec
comparison
equal deleted inserted replaced
999:bbed8e9a5d33 1000:4fe8f9656107
92 #define EXIF_MARKER_LIST_END { 0x0000, EXIF_FORMAT_UNKNOWN, 0, NULL, NULL, NULL } 92 #define EXIF_MARKER_LIST_END { 0x0000, EXIF_FORMAT_UNKNOWN, 0, NULL, NULL, NULL }
93 93
94 struct _ExifTextList 94 struct _ExifTextList
95 { 95 {
96 gint value; 96 gint value;
97 const gchar* description; 97 const gchar *description;
98 }; 98 };
99 99
100 #define EXIF_TEXT_LIST_END { -1, NULL } 100 #define EXIF_TEXT_LIST_END { -1, NULL }
101 101
102 102
141 #define EXIF_TIFD_OFFSET_COUNT 4 141 #define EXIF_TIFD_OFFSET_COUNT 4
142 #define EXIF_TIFD_OFFSET_DATA 8 142 #define EXIF_TIFD_OFFSET_DATA 8
143 #define EXIF_TIFD_SIZE 12 143 #define EXIF_TIFD_SIZE 12
144 144
145 145
146 guint16 exif_byte_get_int16(unsigned char *f, ExifByteOrder bo); 146 guint16 exif_byte_get_int16(guchar *f, ExifByteOrder bo);
147 guint32 exif_byte_get_int32(unsigned char *f, ExifByteOrder bo); 147 guint32 exif_byte_get_int32(guchar *f, ExifByteOrder bo);
148 void exif_byte_put_int16(unsigned char *f, guint16 n, ExifByteOrder bo); 148 void exif_byte_put_int16(guchar *f, guint16 n, ExifByteOrder bo);
149 void exif_byte_put_int32(unsigned char *f, guint32 n, ExifByteOrder bo); 149 void exif_byte_put_int32(guchar *f, guint32 n, ExifByteOrder bo);
150 150
151 ExifItem *exif_item_new(ExifFormatType format, guint tag, 151 ExifItem *exif_item_new(ExifFormatType format, guint tag,
152 guint elements, const ExifMarker *marker); 152 guint elements, const ExifMarker *marker);
153 void exif_item_copy_data(ExifItem *item, void *src, guint len, 153 void exif_item_copy_data(ExifItem *item, void *src, guint len,
154 ExifFormatType src_format, ExifByteOrder bo); 154 ExifFormatType src_format, ExifByteOrder bo);
155 155
156 gint exif_parse_IFD_table(ExifData *exif, 156 gint exif_parse_IFD_table(ExifData *exif,
157 unsigned char *tiff, guint offset, 157 guchar *tiff, guint offset,
158 guint size, ExifByteOrder bo, 158 guint size, ExifByteOrder bo,
159 gint level, 159 gint level,
160 const ExifMarker *list); 160 const ExifMarker *list);
161 161
162 gint exif_tiff_directory_offset(unsigned char *data, const guint len, 162 gint exif_tiff_directory_offset(guchar *data, const guint len,
163 guint *offset, ExifByteOrder *bo); 163 guint *offset, ExifByteOrder *bo);
164 gint exif_tiff_parse(ExifData *exif, unsigned char *tiff, guint size, ExifMarker *list); 164 gint exif_tiff_parse(ExifData *exif, guchar *tiff, guint size, ExifMarker *list);
165 165
166 gchar *exif_text_list_find_value(ExifTextList *list, guint value); 166 gchar *exif_text_list_find_value(ExifTextList *list, guint value);
167 167
168 #endif 168 #endif