mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
jpegparse: Parse AVI1 tag in app0.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3943>
This commit is contained in:
parent
cbbfab0f3b
commit
cbc7374c95
1 changed files with 13 additions and 0 deletions
|
@ -50,6 +50,7 @@
|
|||
* + APP3 -- meta (same as exif)
|
||||
* + APP12 -- Photoshop Save for Web: Ducky / Picture info
|
||||
* + APP13 -- Adobe IRB
|
||||
* + check for interlaced mjpeg
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
|
@ -436,6 +437,18 @@ gst_jpeg_parse_app0 (GstJpegParse * parse, GstJpegSegment * seg)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
/* https://exiftool.org/TagNames/JPEG.html#AVI1 */
|
||||
if (g_strcmp0 (id_str, "AVI1") == 0) {
|
||||
/* polarity */
|
||||
if (!gst_byte_reader_get_uint8 (&reader, &unit))
|
||||
return FALSE;
|
||||
|
||||
/* TODO: update caps for interlaced MJPEG */
|
||||
GST_DEBUG_OBJECT (parse, "MJPEG interleaved field: %d", unit);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue