Lines Matching defs:data

26 #include <libexif/exif-data.h>
119 ExifData *data;
132 data = exif_data_new ();
133 if (!data) {
145 exif_content_add_entry (data->ifd[EXIF_IFD_0], e);
148 exif_content_remove_entry (data->ifd[EXIF_IFD_0], e);
160 exif_content_add_entry (data->ifd[EXIF_IFD_0], e);
163 exif_content_remove_entry (data->ifd[EXIF_IFD_0], e);
175 exif_content_add_entry (data->ifd[EXIF_IFD_0], e);
177 exif_set_srational (e->data, exif_data_get_byte_order (data), r);
182 exif_content_remove_entry (data->ifd[EXIF_IFD_0], e);
199 exif_content_add_entry (data->ifd[EXIF_IFD_0], e);
203 /* Allocate memory to use for holding the tag data */
204 e->data = exif_mem_alloc(mem, e->size);
205 if (!e->data) {
209 memcpy(e->data, subsec, e->size);
211 exif_content_remove_entry (data->ifd[EXIF_IFD_0], e);
220 exif_content_add_entry (data->ifd[EXIF_IFD_0], e);
224 /* Allocate memory to use for holding the tag data */
225 e->data = exif_mem_alloc(mem, e->size);
226 if (!e->data) {
230 memcpy(e->data, user_comment, e->size);
232 exif_content_remove_entry (data->ifd[EXIF_IFD_0], e);
241 exif_content_add_entry (data->ifd[EXIF_IFD_0], e);
246 /* Allocate memory to use for holding the tag data */
247 e->data = exif_mem_alloc(mem, e->size);
248 if (!e->data) {
252 memcpy(e->data, xp_comment, e->size);
254 exif_content_remove_entry (data->ifd[EXIF_IFD_0], e);
263 exif_content_add_entry (data->ifd[EXIF_IFD_INTEROPERABILITY], e);
269 /* Allocate memory to use for holding the tag data */
270 e->data = exif_mem_alloc(mem, e->size);
271 if (!e->data) {
275 memcpy(e->data, interop, e->size);
277 exif_content_remove_entry (data->ifd[EXIF_IFD_INTEROPERABILITY], e);
286 exif_content_add_entry (data->ifd[EXIF_IFD_GPS], e);
291 /* Allocate memory to use for holding the tag data */
292 e->data = exif_mem_alloc(mem, e->size);
293 if (!e->data) {
297 e->data[0] = 2;
298 e->data[1] = 2;
299 e->data[2] = 0;
300 e->data[3] = 0;
302 exif_content_remove_entry (data->ifd[EXIF_IFD_GPS], e);
311 exif_content_add_entry (data->ifd[EXIF_IFD_GPS], e);
316 /* Allocate memory to use for holding the tag data */
317 e->data = exif_mem_alloc(mem, e->size);
318 if (!e->data) {
322 e->data[0] = 1;
324 exif_content_remove_entry (data->ifd[EXIF_IFD_GPS], e);
333 exif_content_add_entry (data->ifd[EXIF_IFD_GPS], e);
338 /* Allocate memory to use for holding the tag data */
339 e->data = exif_mem_alloc(mem, e->size);
340 if (!e->data) {
344 exif_set_rational(e->data, exif_data_get_byte_order (data), gpsh);
345 exif_set_rational(e->data+8, exif_data_get_byte_order (data), gpsm);
346 exif_set_rational(e->data+16, exif_data_get_byte_order (data), gpss);
348 exif_content_remove_entry (data->ifd[EXIF_IFD_GPS], e);
357 exif_content_add_entry (data->ifd[EXIF_IFD_0], e);
364 /* Allocate memory to use for holding the tag data */
365 e->data = exif_mem_alloc(mem, e->size);
366 if (!e->data) {
370 exif_set_short(e->data, exif_data_get_byte_order (data), 123);
371 exif_set_short(e->data+2, exif_data_get_byte_order (data), 456);
372 exif_set_short(e->data+4, exif_data_get_byte_order (data), 78);
373 exif_set_short(e->data+6, exif_data_get_byte_order (data), 90);
387 exif_content_remove_entry (data->ifd[EXIF_IFD_0], e);
391 exif_data_unref (data);