From: Dan F. <dfa...@us...> - 2009-01-22 07:29:31
|
Update of /cvsroot/libexif/libexif/libexif In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30439/libexif Modified Files: exif-entry.c Log Message: Default EXIF_TAG_COLOR_SPACE to 0xffff (uncalibrated) Index: exif-entry.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/exif-entry.c,v retrieving revision 1.127 retrieving revision 1.128 diff -u -p -d -r1.127 -r1.128 --- exif-entry.c 18 Jan 2009 09:56:01 -0000 1.127 +++ exif-entry.c 22 Jan 2009 07:29:14 -0000 1.128 @@ -1174,7 +1174,6 @@ exif_entry_initialize (ExifEntry *e, Exi case EXIF_TAG_FOCAL_LENGTH_IN_35MM_FILM: case EXIF_TAG_GAIN_CONTROL: case EXIF_TAG_SUBJECT_DISTANCE_RANGE: - case EXIF_TAG_COLOR_SPACE: case EXIF_TAG_FLASH: /* SHORT, 1 component, default 0 */ @@ -1229,6 +1228,17 @@ exif_entry_initialize (ExifEntry *e, Exi exif_set_short (e->data, o, 3); break; + case EXIF_TAG_COLOR_SPACE: + /* SHORT, 1 component, default 0xffff */ + e->components = 1; + e->format = EXIF_FORMAT_SHORT; + e->size = exif_format_get_size (e->format) * e->components; + e->data = exif_entry_alloc (e, e->size); + if (!e->data) break; + exif_set_short (e->data, o, 0xffff); + break; + + case EXIF_TAG_BITS_PER_SAMPLE: e->components = 3; e->format = EXIF_FORMAT_SHORT; |