Skip to content

exiftag: handle GST_TAG_CAPTURING_LIGHT_SOURCE tag

This exif tag allows to specify the different light conditions when taking a picture. This tag is defined in: https://exiftool.org/TagNames/EXIF.html#LightSource

With these changes, the following pipeline and EXIF read show the metadata properly:

$ gst-launch-1.0 videotestsrc num-buffers=1 ! jpegenc ! taginject tags="capturing-light-source=tungsten" ! jifmux ! filesink location=test2.jpeg
$ exiftool test2.jpeg
ExifTool Version Number         : 11.88
File Name                       : test2.jpeg
Directory                       : .
File Size                       : 12 kB
File Modification Date/Time     : 2023:10:28 13:16:19+02:00
File Access Date/Time           : 2023:10:28 12:37:56+02:00
File Inode Change Date/Time     : 2023:10:28 13:16:19+02:00
File Permissions                : rw-rw-r--
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Resolution Unit                 : None
X Resolution                    : 1
Y Resolution                    : 1
Exif Byte Order                 : Little-endian (Intel, II)
Exif Version                    : 0230
Flashpix Version                : 0100
Light Source                    : Tungsten (Incandescent)
XMP Toolkit                     : GStreamer
Image Width                     : 320
Image Height                    : 240
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Image Size                      : 320x240
Megapixels                      : 0.077

Merge request reports