diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-10-09 21:22:12 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-10-11 05:27:57 -0300 |
commit | 1356ff84b3833ce3526758c4c8fe546c303c9cda (patch) | |
tree | 7b5b328681d597cb0b2d68845cab7cfeaed6f208 /ext | |
parent | eedefc9f6bd19f1c86b43d1fcc31a203b4ecea10 (diff) | |
download | gst-libav-1356ff84b3833ce3526758c4c8fe546c303c9cda.tar.gz |
avcodecmap: add jpeg2000 decoder mapping
Map the 3 possible jpeg2000 caps to JPEG2000 codec id
Diffstat (limited to 'ext')
-rw-r--r-- | ext/libav/gstavcodecmap.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c index 126919e..14686dd 100644 --- a/ext/libav/gstavcodecmap.c +++ b/ext/libav/gstavcodecmap.c @@ -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", |