gst-plugins-bad: Add patch to fix depth value in gstfbdevsink
PATCH v2 1/2 gst-plugins-bad: Add patch to fix depth value in gstfbdevsink
* Port patch from Arago.
* Gstreamer plugin adds the length of alpha data for 16bit RGB data format which could yield wrong results.
---
Version 2 changes:
Split the adding of the faad2 and libfaad into a seperate patch.
...k-Fix-depth-value-for-GST_VIDEO_CAPS_RGB_.patch | 29 ++++++++++++++++++++ .../gstreamer/gst-plugins-bad_0.10.23.bbappend | 7 ++++- 2 files changed, 35 insertions(+), 1 deletions(-) create mode 100644 meta-arago-distro/recipes-multimedia/gstreamer/gst-plugins-bad/0001-gstfbdevsink-Fix-depth-value-for-GST_VIDEO_CAPS_RGB_.patch
meta-arago-distro/recipes-multimedia/gstreamer/gst-plugins-bad/0001-gstfbdevsink-Fix-depth-value-for-GST_VIDEO_CAPS_RGB_.patch new file +29 -0
@@ -0,0 +1,29 @@ +From ec785d544f417aa2d88f8803e4392ff02ab424ae Mon Sep 17 00:00:00 2001 +From: Punya Prakash <[email protected]> +Date: Fri, 4 Nov 2011 13:03:57 -0500 +Subject: [PATCH] gstfbdevsink: Fix depth value for GST_VIDEO_CAPS_RGB_15 + +RGB color format does not have any alpha components, adding alpha length to depth could yield wrong results. + +Upstream-Status: Pending + +Signed-off-by: Punya Prakash <[email protected]> +--- + sys/fbdev/gstfbdevsink.c | 3 +-- + 1 files changed, 1 insertions(+), 2 deletions(-) + +diff --git a/sys/fbdev/gstfbdevsink.c b/sys/fbdev/gstfbdevsink.c +index 8925f3d..568f091 100644 +--- a/sys/fbdev/gstfbdevsink.c ++++ b/sys/fbdev/gstfbdevsink.c +@@ -185,8 +185,7 @@ gst_fbdevsink_getcaps (GstBaseSink * bsink) + "bpp", G_TYPE_INT, fbdevsink->varinfo.bits_per_pixel, + "depth", G_TYPE_INT, fbdevsink->varinfo.red.length + + fbdevsink->varinfo.green.length + +- fbdevsink->varinfo.blue.length + +- fbdevsink->varinfo.transp.length, ++ fbdevsink->varinfo.blue.length, + "endianness", G_TYPE_INT, endianness, + "red_mask", G_TYPE_INT, rmask, + "green_mask", G_TYPE_INT, gmask, "blue_mask", G_TYPE_INT, bmask, NULL); +--
meta-arago-distro/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend +6 -1
@@ -1,4 +1,7 @@ -PR_append = "-arago0" +PR_append = "-arago1" + +# look for files in this layer first +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" # Disable rsvg which caused gtk+ to be pulled in DEPENDS := "${@oe_filter_out('librsvg','${DEPENDS}', d)}"
@@ -6,3 +9,5 @@ EXTRA_OECONF += "--disable-rsvg" # Build all the various plugins EXTRA_OECONF := "${@oe_filter_out('--with-plugins=musicbrainz,wavpack,ivorbis,mpegvideoparse','${EXTRA_OECONF}', d)}" + +SRC_URI += "file://0001-gstfbdevsink-Fix-depth-value-for-GST_VIDEO_CAPS_RGB_.patch"
Signature · 1 line
1.7.0.4
PATCH 2/2 gst-plugins-bad: Add faad as a dependency
* Add faad2 as a dependency and libfaad as a runtime dependency. This insures gst-plugins-bad-faad package is created. The gstreamer faad element is needed for the AAC related gstreamer demos.
--- .../gstreamer/gst-plugins-bad_0.10.23.bbappend | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
meta-arago-distro/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend +5 -1
@@ -1,4 +1,4 @@ -PR_append = "-arago1" +PR_append = "-arago2" # look for files in this layer first FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
@@ -11,3 +11,7 @@ EXTRA_OECONF += "--disable-rsvg" EXTRA_OECONF := "${@oe_filter_out('--with-plugins=musicbrainz,wavpack,ivorbis,mpegvideoparse','${EXTRA_OECONF}', d)}" SRC_URI += "file://0001-gstfbdevsink-Fix-depth-value-for-GST_VIDEO_CAPS_RGB_.patch" + +# Add faad has a dependency to insure gst-plugins-bad-faad is built. +DEPENDS += "faad2" +RDEPENDS += "libfaad"
Signature · 1 line
1.7.0.4
Re: [PATCH 2/2] gst-plugins-bad: Add faad as a dependency
Quoted 20 lines · Franklin S. Cooper Jr
* Add faad2 as a dependency and libfaad as a runtime dependency. This insures gst-plugins-bad-faad package is created. The gstreamer faad element is needed for the AAC related gstreamer demos.
Signed-off-by Franklin S. Cooper Jr <[email protected]>--- .../gstreamer/gst-plugins-bad_0.10.23.bbappend | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)meta-arago-distro/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend +1
-1@@ -1,4 +1,4 @@ -PR_append = "-arago1" +PR_append = "-arago2" # look for files in this layer first FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
meta-arago-distro/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend EXTRA_OECONF += "--disable-rsvg" · line 17
Quoted 7 lines
meta-arago-distro/recipes-multimedia/gstreamer/gst-plugins-bad_0.10.23.bbappend +4
-0@@ -11,3 +11,7 @@ EXTRA_OECONF += "--disable-rsvg" EXTRA_OECONF := "${@oe_filter_out('--with-plugins=musicbrainz,wavpack,ivorbis,mpegvideoparse','${EXTRA_OECONF}', d)}" SRC_URI += "file://0001-gstfbdevsink-Fix-depth-value-for-GST_VIDEO_CAPS_RGB_.patch" + +# Add faad has a dependency to insure gst-plugins-bad-faad is built. +DEPENDS += "faad2" +RDEPENDS += "libfaad"
^^^^^^^^^^^
Signature · 1 line
Denys