jp2kenc: Add width/height/fourcc to the pad template caps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 11 Mar 2009 18:30:22 +0000 (19:30 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 21 Mar 2009 09:19:47 +0000 (10:19 +0100)
ext/jp2k/gstjasperenc.c

index a81a2a9346f4c8b73ba35c45955465611cc9bcac..fbd4fd576c9d9755a38ab429c9ad870573d8553b 100644 (file)
@@ -62,9 +62,11 @@ static GstStaticPadTemplate gst_jasper_enc_src_template =
     GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS ("image/x-j2c, "
+    GST_STATIC_CAPS ("image/x-j2c, width = " GST_VIDEO_SIZE_RANGE ", height = "
+        GST_VIDEO_SIZE_RANGE ", fourcc = (GstFourcc) { sRGB, sYUV },"
         "framerate = " GST_VIDEO_FPS_RANGE ", " "fields = (int) 1; "
-        "image/x-jpc, "
+        "image/x-jpc, width = " GST_VIDEO_SIZE_RANGE ", height = "
+        GST_VIDEO_SIZE_RANGE ", fourcc = (GstFourcc) { sRGB, sYUV },"
         "framerate = " GST_VIDEO_FPS_RANGE ", " "fields = (int) 1; "
         "image/jp2")
     );