From 8e476a5c2299a438fd920a19d3ed18fb68acc167 Mon Sep 17 00:00:00 2001 From: Wang Zidan Date: Fri, 12 Sep 2014 16:34:13 +0800 Subject: [PATCH] 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 Signed-off-by: Otavio Salvador --- .../gstplaybin-enable-native-video.patch | 31 +++++++++++++++++++ .../gstreamer1.0-plugins-base_%.bbappend | 10 ++++++ 2 files changed, 41 insertions(+) create mode 100644 meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/gstplaybin-enable-native-video.patch create mode 100644 meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend 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 00000000..15322bd6 --- /dev/null +++ b/meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/gstplaybin-enable-native-video.patch @@ -0,0 +1,31 @@ +From 9cfb86cd100904f0ef2626f348695bd2d3416c6a Mon Sep 17 00:00:00 2001 +From: Jian Li +Date: Mon, 23 Jun 2014 14:14:07 +0800 +Subject: [PATCH] gstplaybin enable native video + +- use native video patch in playbin for i.MX SoCs + +Upstream Status: Inappropriate [platform specific] + +Signed-off-by: Jian Li +--- + gst/playback/gstplaybin2.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c +index fc02ca3..c342438 100644 +--- a/gst/playback/gstplaybin2.c ++++ b/gst/playback/gstplaybin2.c +@@ -511,8 +511,7 @@ struct _GstPlayBinClass + #define DEFAULT_SUBURI NULL + #define DEFAULT_SOURCE NULL + #define DEFAULT_FLAGS GST_PLAY_FLAG_AUDIO | GST_PLAY_FLAG_VIDEO | GST_PLAY_FLAG_TEXT | \ +- GST_PLAY_FLAG_SOFT_VOLUME | GST_PLAY_FLAG_DEINTERLACE | \ +- GST_PLAY_FLAG_SOFT_COLORBALANCE ++ GST_PLAY_FLAG_SOFT_VOLUME | GST_PLAY_FLAG_NATIVE_VIDEO + #define DEFAULT_N_VIDEO 0 + #define DEFAULT_CURRENT_VIDEO -1 + #define DEFAULT_N_AUDIO 0 +-- +1.7.9.5 + 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 00000000..5b939d4f --- /dev/null +++ b/meta-fsl-arm/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend @@ -0,0 +1,10 @@ + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_append_mxs = " file://gstplaybin-enable-native-video.patch" +SRC_URI_append_mx5 = " file://gstplaybin-enable-native-video.patch" +SRC_URI_append_mx6 = " file://gstplaybin-enable-native-video.patch" + +PACKAGE_ARCH_mxs = "${MACHINE_SOCARCH}" +PACKAGE_ARCH_mx5 = "${MACHINE_SOCARCH}" +PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}" -- 2.40.1