diff options
| author | Wang Zidan <b50113@freescale.com> | 2014-09-12 16:34:13 +0800 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2014-09-15 09:28:02 -0300 |
| commit | 8e476a5c2299a438fd920a19d3ed18fb68acc167 (patch) | |
| tree | adc33ca44df8821206df400208ae1ee67150d85b | |
| parent | d5c72c252018ae7c6b92243388a0f2e375753998 (diff) | |
| download | meta-freescale-8e476a5c2299a438fd920a19d3ed18fb68acc167.tar.gz | |
gstreamer1.0-plugins-base: Enable native video in playbin for i.MX SoCs
GST_PLAY_FLAG_NATIVE_VIDEO means link decoder directly with video
render, otherwise, software csc/resize/deinterlace plugins will be
linked between them.
For all i.MX chips, we should enable this flag, as the fsl renders
has the capability to do csc/resize.
Signed-off-by: Zidan Wang <b50113@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2 files changed, 41 insertions, 0 deletions
diff --git a/meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/gstplaybin-enable-native-video.patch b/meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/gstplaybin-enable-native-video.patch new file mode 100644 index 000000000..15322bd6e --- /dev/null +++ b/meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/gstplaybin-enable-native-video.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 9cfb86cd100904f0ef2626f348695bd2d3416c6a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jian Li <jian.li@freescale.com> | ||
| 3 | Date: Mon, 23 Jun 2014 14:14:07 +0800 | ||
| 4 | Subject: [PATCH] gstplaybin enable native video | ||
| 5 | |||
| 6 | - use native video patch in playbin for i.MX SoCs | ||
| 7 | |||
| 8 | Upstream Status: Inappropriate [platform specific] | ||
| 9 | |||
| 10 | Signed-off-by: Jian Li <jian.li@freescale.com> | ||
| 11 | --- | ||
| 12 | gst/playback/gstplaybin2.c | 3 +-- | ||
| 13 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c | ||
| 16 | index fc02ca3..c342438 100644 | ||
| 17 | --- a/gst/playback/gstplaybin2.c | ||
| 18 | +++ b/gst/playback/gstplaybin2.c | ||
| 19 | @@ -511,8 +511,7 @@ struct _GstPlayBinClass | ||
| 20 | #define DEFAULT_SUBURI NULL | ||
| 21 | #define DEFAULT_SOURCE NULL | ||
| 22 | #define DEFAULT_FLAGS GST_PLAY_FLAG_AUDIO | GST_PLAY_FLAG_VIDEO | GST_PLAY_FLAG_TEXT | \ | ||
| 23 | - GST_PLAY_FLAG_SOFT_VOLUME | GST_PLAY_FLAG_DEINTERLACE | \ | ||
| 24 | - GST_PLAY_FLAG_SOFT_COLORBALANCE | ||
| 25 | + GST_PLAY_FLAG_SOFT_VOLUME | GST_PLAY_FLAG_NATIVE_VIDEO | ||
| 26 | #define DEFAULT_N_VIDEO 0 | ||
| 27 | #define DEFAULT_CURRENT_VIDEO -1 | ||
| 28 | #define DEFAULT_N_AUDIO 0 | ||
| 29 | -- | ||
| 30 | 1.7.9.5 | ||
| 31 | |||
diff --git a/meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend b/meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend new file mode 100644 index 000000000..5b939d4f0 --- /dev/null +++ b/meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | |||
| 2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
| 3 | |||
| 4 | SRC_URI_append_mxs = " file://gstplaybin-enable-native-video.patch" | ||
| 5 | SRC_URI_append_mx5 = " file://gstplaybin-enable-native-video.patch" | ||
| 6 | SRC_URI_append_mx6 = " file://gstplaybin-enable-native-video.patch" | ||
| 7 | |||
| 8 | PACKAGE_ARCH_mxs = "${MACHINE_SOCARCH}" | ||
| 9 | PACKAGE_ARCH_mx5 = "${MACHINE_SOCARCH}" | ||
| 10 | PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}" | ||
