From 34540468510106ce5854d0687893532b87ba5f09 Mon Sep 17 00:00:00 2001 From: Woodrow Douglass Date: Sun, 17 May 2020 03:03:45 -0400 Subject: [PATCH] Add support for Composite Image tags from Exif 2.32 (#40) --- libexif/exif-tag.c | 12 ++++++++++++ libexif/exif-tag.h | 3 +++ 2 files changed, 15 insertions(+) diff --git a/libexif/exif-tag.c b/libexif/exif-tag.c index 6c85e33..30e0917 100644 --- a/libexif/exif-tag.c +++ b/libexif/exif-tag.c @@ -894,6 +894,18 @@ static const struct TagEntry { {EXIF_TAG_LENS_SERIAL_NUMBER, "LensSerialNumber", N_("Lens Serial Number"), N_("This tag indicates the serial number of the interchangeable lens."), { ESL_NNNN, ESL_NNNN, ESL_OOOO, ESL_NNNN, ESL_NNNN } }, + /* EXIF 2.32 */ + {EXIF_TAG_COMPOSITE_IMAGE, "CompositeImage", N_("Composite Image"), + N_("This tag indicates whether this image was composed from multiple images"), + { ESL_NNNN, ESL_NNNN, ESL_OOOO, ESL_NNNN, ESL_NNNN } }, + /* EXIF 2.32 */ + {EXIF_TAG_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE, "SourceImageNumberOfCompositeImage", N_("Source Image Number Of Composite Image"), + N_("This tag indicates how many images are included and used in the composition of this image"), + { ESL_NNNN, ESL_NNNN, ESL_OOOO, ESL_NNNN, ESL_NNNN } }, + /* EXIF 2.32 */ + {EXIF_TAG_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE, "SourceExposureTimesOfCompositeImage", N_("Source Exposure Times of Composite Image"), + N_("This tag indicates the exposure times of the source images of this image"), + { ESL_NNNN, ESL_NNNN, ESL_OOOO, ESL_NNNN, ESL_NNNN } }, /* EXIF 2.3 */ {EXIF_TAG_GAMMA, "Gamma", N_("Gamma"), N_("Indicates the value of coefficient gamma."), diff --git a/libexif/exif-tag.h b/libexif/exif-tag.h index 52dcc3d..3103903 100644 --- a/libexif/exif-tag.h +++ b/libexif/exif-tag.h @@ -152,6 +152,9 @@ typedef enum { EXIF_TAG_LENS_MAKE = 0xa433, EXIF_TAG_LENS_MODEL = 0xa434, EXIF_TAG_LENS_SERIAL_NUMBER = 0xa435, + EXIF_TAG_COMPOSITE_IMAGE = 0xa460, + EXIF_TAG_SOURCE_IMAGE_NUMBER_OF_COMPOSITE_IMAGE = 0xa461, + EXIF_TAG_SOURCE_EXPOSURE_TIMES_OF_COMPOSITE_IMAGE = 0xa462, EXIF_TAG_GAMMA = 0xa500, EXIF_TAG_PRINT_IMAGE_MATCHING = 0xc4a5, EXIF_TAG_PADDING = 0xea1c -- 2.7.4