gst-libav: add QOI codec mime mappings

image/qoi is the recommended MIME type:
https://github.com/phoboslab/qoi?tab=readme-ov-file#mime-type-file-extension

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8458>
This commit is contained in:
Marc-André Lureau 2025-02-11 16:04:15 +04:00 committed by GStreamer Marge Bot
parent 80b99f08dd
commit 670b8653f5

View File

@ -982,6 +982,7 @@ gst_ffmpeg_codecid_is_image (enum AVCodecID codec_id)
case AV_CODEC_ID_PPM:
case AV_CODEC_ID_PBM:
case AV_CODEC_ID_PCX:
case AV_CODEC_ID_QOI:
case AV_CODEC_ID_SGI:
case AV_CODEC_ID_TARGA:
case AV_CODEC_ID_TIFF:
@ -1114,6 +1115,7 @@ gst_ffmpeg_codecid_is_known (enum AVCodecID codec_id)
case AV_CODEC_ID_PAM:
case AV_CODEC_ID_PGM:
case AV_CODEC_ID_PCX:
case AV_CODEC_ID_QOI:
case AV_CODEC_ID_SGI:
case AV_CODEC_ID_TARGA:
case AV_CODEC_ID_TIFF:
@ -2250,6 +2252,12 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
NULL);
break;
case AV_CODEC_ID_QOI:
caps =
gst_ff_vid_caps_new (context, NULL, codec_id, encode, "image/qoi",
NULL);
break;
case AV_CODEC_ID_SGI:
caps =
gst_ff_vid_caps_new (context, NULL, codec_id, encode, "image/x-sgi",