summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-12-16 20:05:46 +0100
committerSebastian Dröge <slomo@circular-chaos.org>2013-07-29 12:30:22 +0200
commitf4112c19601fcd16503580605818b6264d3e98b0 (patch)
treed8d17d21c751eb4c62e5cb55c185526a2d48c89d
parent5b1be32702a57d8b2ed7b57cdcc0e5d830f28b51 (diff)
downloadgstreamer-plugins-bad-f4112c19601fcd16503580605818b6264d3e98b0.tar.gz
openjpeg: Correct template caps a bit
-rw-r--r--ext/openjpeg/gstopenjpegdec.c5
-rw-r--r--ext/openjpeg/gstopenjpegenc.c12
2 files changed, 15 insertions, 2 deletions
diff --git a/ext/openjpeg/gstopenjpegdec.c b/ext/openjpeg/gstopenjpegdec.c
index e379b8f62..d2cc9befb 100644
--- a/ext/openjpeg/gstopenjpegdec.c
+++ b/ext/openjpeg/gstopenjpegdec.c
@@ -61,7 +61,10 @@ static GstStaticPadTemplate gst_openjpeg_dec_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
- GST_STATIC_CAPS ("image/x-j2c; image/x-jpc; image/jp2")
+ GST_STATIC_CAPS ("image/x-j2c, "
+ "colorspace = (string) { sRGB, sYUV, GRAY }; "
+ "image/x-jpc, "
+ "colorspace = (string) { sRGB, sYUV, GRAY }; " "image/jp2")
);
static GstStaticPadTemplate gst_openjpeg_dec_src_template =
diff --git a/ext/openjpeg/gstopenjpegenc.c b/ext/openjpeg/gstopenjpegenc.c
index 05d8c92f0..f814b4311 100644
--- a/ext/openjpeg/gstopenjpegenc.c
+++ b/ext/openjpeg/gstopenjpegenc.c
@@ -70,7 +70,17 @@ static GstStaticPadTemplate gst_openjpeg_enc_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
- GST_STATIC_CAPS ("image/x-j2c; image/x-jpc; image/jp2")
+ GST_STATIC_CAPS ("image/x-j2c, "
+ "width = (int) [1, MAX], "
+ "height = (int) [1, MAX], "
+ "num-components = (int) [1, 4], "
+ "colorspace = (string) { sRGB, sYUV, GRAY }; "
+ "image/x-jpc, "
+ "width = (int) [1, MAX], "
+ "height = (int) [1, MAX], "
+ "num-components = (int) [1, 4], "
+ "colorspace = (string) { sRGB, sYUV, GRAY }; "
+ "image/jp2, " "width = (int) [1, MAX], " "height = (int) [1, MAX]")
);
#define parent_class gst_openjpeg_enc_parent_class