mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
avcodecmap: add jpeg2000 decoder mapping
Map the 3 possible jpeg2000 caps to JPEG2000 codec id
This commit is contained in:
parent
eedefc9f6b
commit
1356ff84b3
1 changed files with 12 additions and 0 deletions
|
@ -954,6 +954,18 @@ gst_ffmpeg_codecid_to_caps (enum AVCodecID codec_id,
|
|||
"parsed", G_TYPE_BOOLEAN, TRUE, NULL);
|
||||
break;
|
||||
|
||||
case AV_CODEC_ID_JPEG2000:
|
||||
caps =
|
||||
gst_ff_vid_caps_new (context, NULL, codec_id, encode, "image/x-j2c",
|
||||
NULL);
|
||||
if (!encode) {
|
||||
gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
|
||||
encode, "image/x-jpc", NULL));
|
||||
gst_caps_append (caps, gst_ff_vid_caps_new (context, NULL, codec_id,
|
||||
encode, "image/jp2", NULL));
|
||||
}
|
||||
break;
|
||||
|
||||
case AV_CODEC_ID_SP5X:
|
||||
caps =
|
||||
gst_ff_vid_caps_new (context, NULL, codec_id, encode, "video/sp5x",
|
||||
|
|
Loading…
Reference in a new issue