Skip to content

Commit b06a893

Browse files
committed
Exif: add Orientation metadata
refers to <#100>
1 parent a8acf83 commit b06a893

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gpujpeg_exif.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ static const struct exif_tag_type_info_t
8181

8282
enum exif_tiff_tag {
8383
// 0th IFD TIFF Tags
84+
ETIFF_ORIENTATION, ///< Image resolution in width direction (recommended)
8485
ETIFF_XRESOLUTION, ///< Image resolution in width direction (mandatory)
8586
ETIFF_YRESOLUTION, ///< Image resolution in height direction (mandatory)
8687
ETIFF_RESOLUTION_UNIT, ///< Unit of X and Y resolution (mandatory)
@@ -101,6 +102,7 @@ const struct exif_tiff_tag_info_t {
101102
enum exif_tag_type type;
102103
const char *name;
103104
} exif_tiff_tag_info[] = {
105+
[ETIFF_ORIENTATION] = {0x112, ET_SHORT, "Orientation" },
104106
[ETIFF_XRESOLUTION] = {0x11A, ET_RATIONAL, "XResolution" },
105107
[ETIFF_YRESOLUTION] = {0x11B, ET_RATIONAL, "YResolution" },
106108
[ETIFF_RESOLUTION_UNIT] = {0x128, ET_SHORT, "ResolutionUnit" },

0 commit comments

Comments
 (0)