diff options
author | Thijs Vermeir <thijsvermeir@gmail.com> | 2007-09-20 18:30:35 +0000 |
---|---|---|
committer | Thijs Vermeir <thijsvermeir@gmail.com> | 2007-09-20 18:30:35 +0000 |
commit | cacf273a107a19b29a328aadaf160013683cca4e (patch) | |
tree | dd409c991f7224b87c71aa6a261a311999cd8dfd | |
parent | 28c0d24bdd9bab9820e0d8349259aeceec12058f (diff) | |
download | gst-plugins-bad-cacf273a107a19b29a328aadaf160013683cca4e.tar.gz gst-plugins-bad-cacf273a107a19b29a328aadaf160013683cca4e.tar.bz2 gst-plugins-bad-cacf273a107a19b29a328aadaf160013683cca4e.zip |
gst/librfb/gstrfbsrc.c: bpp, depth and endianness are now set from the stream.
Original commit message from CVS:
* gst/librfb/gstrfbsrc.c:
bpp, depth and endianness are now set from the
stream.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst/librfb/gstrfbsrc.c | 10 |
2 files changed, 12 insertions, 4 deletions
@@ -1,3 +1,9 @@ +2007-09-20 Thijs Vermeir <thijsvermeir@gmail.com> + + * gst/librfb/gstrfbsrc.c: + bpp, depth and endianness are now set from the + stream. + 2007-09-20 Wim Taymans <wim.taymans@gmail.com> * examples/app/appsrc_ex.c: (main): diff --git a/gst/librfb/gstrfbsrc.c b/gst/librfb/gstrfbsrc.c index d0398dc9..c6f5a2cb 100644 --- a/gst/librfb/gstrfbsrc.c +++ b/gst/librfb/gstrfbsrc.c @@ -60,9 +60,9 @@ GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("video/x-raw-rgb, " - "bpp = (int) 32, " - "depth = (int) 24, " - "endianness = (int) 4321, " + "bpp = (int) [1, 255], " + "depth = (int) [1, 255], " + "endianness = (int) [1234, 4321], " "red_mask = (int) 0x0000ff00, " "green_mask = (int) 0x00ff0000, " "blue_mask = (int) 0xff000000, " @@ -294,7 +294,9 @@ gst_rfb_src_start (GstBaseSrc * bsrc) caps = gst_caps_copy (gst_pad_get_pad_template_caps (GST_BASE_SRC_PAD (bsrc))); gst_caps_set_simple (caps, "width", G_TYPE_INT, decoder->width, "height", - G_TYPE_INT, decoder->height, NULL); + G_TYPE_INT, decoder->height, "bpp", G_TYPE_INT, decoder->bpp, "depth", + G_TYPE_INT, decoder->depth, "endianness", G_TYPE_INT, + (decoder->big_endian ? 1234 : 4321), NULL); gst_pad_set_caps (GST_BASE_SRC_PAD (bsrc), caps); gst_caps_unref (caps); |