openjpeg: Correct template caps a bit

This commit is contained in:
Sebastian Dröge 2012-12-16 20:05:46 +01:00
parent cb5dcaba76
commit 7faf96eb14
2 changed files with 15 additions and 2 deletions

View file

@ -61,7 +61,10 @@ static GstStaticPadTemplate gst_openjpeg_dec_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink", GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK, GST_PAD_SINK,
GST_PAD_ALWAYS, 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 = static GstStaticPadTemplate gst_openjpeg_dec_src_template =

View file

@ -70,7 +70,17 @@ static GstStaticPadTemplate gst_openjpeg_enc_src_template =
GST_STATIC_PAD_TEMPLATE ("src", GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC, GST_PAD_SRC,
GST_PAD_ALWAYS, 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 #define parent_class gst_openjpeg_enc_parent_class