Mercurial > geeqie.yaz
comparison src/format_raw.c @ 114:50fc73e08550
Mon Nov 27 01:23:23 2006 John Ellis <johne@verizon.net>
* bar_exif.c, cache-loader.c, pan-view.c: Pass new arg for exif_read().
* color-man.[ch]: Add color_man_new_embedded for using in-memory color
profiles.
* exif.[ch]: Add support for extracting color profiles embedded in jpeg
and tiff images. This resulted in a rewrite of the jpeg parser; both
to allow searching for any marker type, and to make the code readable.
* format_raw.c: Add color profile tag to the debug code.
* image.c, layout.c: Use embedded color profiles when found and
enabled, also add toggle for the option in color profile menu.
author | gqview |
---|---|
date | Mon, 27 Nov 2006 06:37:48 +0000 |
parents | 847e4bc6b54c |
children | 71e1ebee420e |
comparison
equal
deleted
inserted
replaced
113:55166d93498d | 114:50fc73e08550 |
---|---|
479 | 479 |
480 subset = exif_byte_get_int32(data + segment + i * 4, bo); | 480 subset = exif_byte_get_int32(data + segment + i * 4, bo); |
481 format_debug_tiff_table(data, len, subset, bo, level + 1); | 481 format_debug_tiff_table(data, len, subset, bo, level + 1); |
482 } | 482 } |
483 } | 483 } |
484 else if (tag == 0x8773 && type == EXIF_FORMAT_UNDEFINED) | |
485 { | |
486 printf("%*s~~~ found ICC color profile at offset %d, length %d\n", level, "", segment, seg_len); | |
487 } | |
484 else if (tag == 0x201 && (type == EXIF_FORMAT_LONG_UNSIGNED || type == EXIF_FORMAT_LONG)) | 488 else if (tag == 0x201 && (type == EXIF_FORMAT_LONG_UNSIGNED || type == EXIF_FORMAT_LONG)) |
485 { | 489 { |
486 guint subset = exif_byte_get_int32(data + segment, bo); | 490 guint subset = exif_byte_get_int32(data + segment, bo); |
487 printf("%*s~~~ found jpeg data at offset %d\n", level, "", subset); | 491 printf("%*s~~~ found jpeg data at offset %d\n", level, "", subset); |
488 } | 492 } |