diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-04-02 20:30:52 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-04-15 21:11:52 +0200 |
commit | 49ac7a15f16f8e7714efb15a8eade027cc152258 (patch) | |
tree | 81214c57ecd16f7c8aa3da847c657155ff3422b5 /patches/gst-plugins-bad-0.10.23 | |
parent | 492fc73e873e253392470cb6166bc0242fbd11be (diff) | |
download | ptxdist-49ac7a15f16f8e7714efb15a8eade027cc152258.tar.gz ptxdist-49ac7a15f16f8e7714efb15a8eade027cc152258.tar.xz |
gst-plugins-bad: version bump 0.10.22 -> 0.10.23
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches/gst-plugins-bad-0.10.23')
3 files changed, 101 insertions, 0 deletions
diff --git a/patches/gst-plugins-bad-0.10.23/0001-remove-endianness-swapping.patch b/patches/gst-plugins-bad-0.10.23/0001-remove-endianness-swapping.patch new file mode 100644 index 000000000..5dcc70105 --- /dev/null +++ b/patches/gst-plugins-bad-0.10.23/0001-remove-endianness-swapping.patch @@ -0,0 +1,45 @@ +From: Luotao Fu <lfu@pengutronix.de> +Date: Thu, 11 Dec 2008 11:57:48 +0100 +Subject: [PATCH] remove endianness swapping + + Swapping r- g- and bmask here is weird. It turns i.E. RGB888 to BGR888. For + formats like RGB666 it turns the mask into a mess. Seems that gstreamer + treat all True color as Big Endian. Still I doubt that it makes sense to + swap the masks. I'm however not quite sure about this, comments are highly + welcome. + +Signed-off-by: Luotao Fu <l.fu@pengutronix.de> +--- + sys/fbdev/gstfbdevsink.c | 14 +------------- + 1 files changed, 1 insertions(+), 13 deletions(-) + +diff --git a/sys/fbdev/gstfbdevsink.c b/sys/fbdev/gstfbdevsink.c +index 989d48f..62b9986 100644 +--- a/sys/fbdev/gstfbdevsink.c ++++ b/sys/fbdev/gstfbdevsink.c +@@ -153,21 +153,9 @@ gst_fbdevsink_getcaps (GstBaseSink * bsink) + + switch (fbdevsink->varinfo.bits_per_pixel) { + case 32: +- /* swap endian of masks */ +- rmask = swapendian (rmask); +- gmask = swapendian (gmask); +- bmask = swapendian (bmask); ++ case 24: + endianness = 4321; + break; +- case 24:{ +- /* swap red and blue masks */ +- uint32_t t = rmask; +- +- rmask = bmask; +- bmask = t; +- endianness = 4321; +- break; +- } + case 15: + case 16: + endianness = 1234; +-- +1.7.4.1 + diff --git a/patches/gst-plugins-bad-0.10.23/0002-add-rgb666-support.patch b/patches/gst-plugins-bad-0.10.23/0002-add-rgb666-support.patch new file mode 100644 index 000000000..5b9cf7a16 --- /dev/null +++ b/patches/gst-plugins-bad-0.10.23/0002-add-rgb666-support.patch @@ -0,0 +1,52 @@ +From: Luotao Fu <lfu@pengutronix.de> +Date: Thu, 11 Dec 2008 12:03:59 +0100 +Subject: [PATCH] add rgb666 support + + This one adds support for rgb666 to fbdevsink. It's an exotic format, but still + can be found on especially some embedded devices. The Modelines are taken + directly from video.h of the video plugin, which is included by gstdevsink. + It'd probably be cleaner to split this in a separate patch for plugins-base. + I put the stuffs together for now for easier review. Patches for some sources + with rgb666 capability are coming soon. + +Signed-off-by: Luotao Fu <l.fu@pengutronix.de> +--- + sys/fbdev/gstfbdevsink.c | 19 +++++++++++++++++++ + 1 files changed, 19 insertions(+), 0 deletions(-) + +diff --git a/sys/fbdev/gstfbdevsink.c b/sys/fbdev/gstfbdevsink.c +index 62b9986..b7d3f1a 100644 +--- a/sys/fbdev/gstfbdevsink.c ++++ b/sys/fbdev/gstfbdevsink.c +@@ -69,9 +69,28 @@ static GstCaps *gst_fbdevsink_getcaps (GstBaseSink * bsink); + + static GstVideoSinkClass *parent_class = NULL; + ++#define GST_VIDEO_BYTE1_MASK_18 "0x0003F000" ++#define GST_VIDEO_BYTE2_MASK_18 "0x00000FC0" ++#define GST_VIDEO_BYTE3_MASK_18 "0x0000003F" ++#define __GST_VIDEO_CAPS_MAKE_18(R, G, B) \ ++ "video/x-raw-rgb, " \ ++ "bpp = (int) 32, " \ ++ "depth = (int) 18, " \ ++ "endianness = (int) BIG_ENDIAN, " \ ++ "red_mask = (int) " GST_VIDEO_BYTE ## R ## _MASK_18 ", " \ ++ "green_mask = (int) " GST_VIDEO_BYTE ## G ## _MASK_18 ", " \ ++ "blue_mask = (int) " GST_VIDEO_BYTE ## B ## _MASK_18 ", " \ ++ "width = " GST_VIDEO_SIZE_RANGE ", " \ ++ "height = " GST_VIDEO_SIZE_RANGE ", " \ ++ "framerate = " GST_VIDEO_FPS_RANGE ++ ++#define GST_VIDEO_CAPS_RGB666 \ ++ __GST_VIDEO_CAPS_MAKE_18 (1, 2, 3) ++ + #define GST_FBDEV_TEMPLATE_CAPS \ + GST_VIDEO_CAPS_RGB_15 \ + ";" GST_VIDEO_CAPS_RGB_16 \ ++ ";" GST_VIDEO_CAPS_RGB666 \ + ";" GST_VIDEO_CAPS_BGR \ + ";" GST_VIDEO_CAPS_BGRx \ + ";" GST_VIDEO_CAPS_xBGR \ +-- +1.7.4.1 + diff --git a/patches/gst-plugins-bad-0.10.23/series b/patches/gst-plugins-bad-0.10.23/series new file mode 100644 index 000000000..27b2a0226 --- /dev/null +++ b/patches/gst-plugins-bad-0.10.23/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +0001-remove-endianness-swapping.patch +0002-add-rgb666-support.patch +# a70d7259ce8042d3a4e1640d6f8b4861 - git-ptx-patches magic |