comparison src/image.c @ 176:695e1ad3b169

simplified exif.h, moved implementation-specific stuff to exif-int.h
author nadvornik
date Wed, 13 Feb 2008 13:57:31 +0000
parents 682705e0c0e0
children 0ca3b4c8ffae
comparison
equal deleted inserted replaced
175:682705e0c0e0 176:695e1ad3b169
377 377
378 if (debug) printf("Found EXIF ColorSpace of sRGB\n"); 378 if (debug) printf("Found EXIF ColorSpace of sRGB\n");
379 } 379 }
380 } 380 }
381 } 381 }
382 if (item && item->format == EXIF_FORMAT_UNDEFINED) 382
383 { 383 if (item && exif_item_get_format_id(item) == EXIF_FORMAT_UNDEFINED)
384 {
385 char *data;
386 guint data_len;
384 if (debug) printf("Found embedded color profile\n"); 387 if (debug) printf("Found embedded color profile\n");
388
389 data = exif_item_get_data(item, &data_len);
385 390
386 cm = color_man_new_embedded(imd, NULL, 391 cm = color_man_new_embedded(imd, NULL,
387 item->data, item->data_len, 392 data, data_len,
388 screen_type, screen_file, 393 screen_type, screen_file,
389 image_post_process_color_cb, imd); 394 image_post_process_color_cb, imd);
390 } 395 }
391 else 396 else
392 { 397 {
393 cm = color_man_new(imd, NULL, 398 cm = color_man_new(imd, NULL,
394 input_type, input_file, 399 input_type, input_file,
395 screen_type, screen_file, 400 screen_type, screen_file,
396 image_post_process_color_cb, imd); 401 image_post_process_color_cb, imd);