Add support for Composite Image tags from Exif 2.32 (#40)
authorWoodrow Douglass <git@wdouglass.com>
Sun, 17 May 2020 07:03:45 +0000 (03:03 -0400)
committerGitHub <noreply@github.com>
Sun, 17 May 2020 07:03:45 +0000 (09:03 +0200)
libexif/exif-tag.c
libexif/exif-tag.h

index 6c85e33..30e0917 100644 (file)
@@ -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."),
index 52dcc3d..3103903 100644 (file)
@@ -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