summaryrefslogtreecommitdiff
path: root/ext/openjpeg
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-12-16 20:05:46 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-12-16 20:50:34 +0100
commit7faf96eb14c71a668c8c0a2f5a6cf952f96b411d (patch)
tree1250b1fdf79a7420da3d786086f91f116931a02b /ext/openjpeg
parentcb5dcaba7685831b456791594c4b47482b54011e (diff)
downloadgstreamer-plugins-bad-7faf96eb14c71a668c8c0a2f5a6cf952f96b411d.tar.gz
openjpeg: Correct template caps a bit
Diffstat (limited to 'ext/openjpeg')
-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