diff options
-rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-autovideoconvert-add-imxvideoconvert_g2d.patch | 39 | ||||
-rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.0.imx.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-autovideoconvert-add-imxvideoconvert_g2d.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-autovideoconvert-add-imxvideoconvert_g2d.patch new file mode 100644 index 00000000..d4fd8cf3 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-autovideoconvert-add-imxvideoconvert_g2d.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 784881b9bffaa768c3a1e9cb3d8eead7b4ca356a Mon Sep 17 00:00:00 2001 | ||
2 | From: Hiago De Franco <hiago.franco@toradex.com> | ||
3 | Date: Thu, 12 Sep 2024 18:44:14 +0200 | ||
4 | Subject: [PATCH] autovideoconvert: add imxvideoconvert_g2d | ||
5 | |||
6 | On i.MX8 platform, autovideoconvert defaults to CPU-based processing as | ||
7 | imxvideoconvert_g2d is not included as a listed filter, resulting in | ||
8 | poor video playback performance. | ||
9 | |||
10 | Add imxvideoconvert_g2d to improve performance by utilizing hardware | ||
11 | acceleration. | ||
12 | |||
13 | Upstream-Status: Submitted [https://github.com/nxp-imx/gst-plugins-bad/pull/2] | ||
14 | Signed-off-by: Hiago De Franco <hiago.franco@toradex.com> | ||
15 | --- | ||
16 | gst/autoconvert/gstautovideoconvert.c | 7 +++++++ | ||
17 | 1 file changed, 7 insertions(+) | ||
18 | |||
19 | diff --git a/gst/autoconvert/gstautovideoconvert.c b/gst/autoconvert/gstautovideoconvert.c | ||
20 | index cf5468316cd5..b91bd1556c37 100644 | ||
21 | --- a/gst/autoconvert/gstautovideoconvert.c | ||
22 | +++ b/gst/autoconvert/gstautovideoconvert.c | ||
23 | @@ -85,6 +85,13 @@ gst_auto_video_convert_init (GstAutoVideoConvert * autovideoconvert) | ||
24 | .filters = { NULL }, | ||
25 | .rank = GST_RANK_SECONDARY, | ||
26 | }, | ||
27 | + { | ||
28 | + .first_elements = { "capsfilter caps=\"video/x-raw\"", NULL, }, | ||
29 | + .colorspace_converters = { "imxvideoconvert_g2d", NULL }, | ||
30 | + .last_elements = { NULL, }, | ||
31 | + .filters = { NULL }, | ||
32 | + .rank = GST_RANK_PRIMARY + 1, | ||
33 | + }, | ||
34 | { | ||
35 | .first_elements = { "capsfilter caps=\"video/x-raw\"", NULL, }, | ||
36 | .colorspace_converters = { "videoconvertscale", NULL }, | ||
37 | -- | ||
38 | 2.39.2 | ||
39 | |||
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.0.imx.bb index b3ea80a5..c53025b7 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.0.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.0.imx.bb | |||
@@ -188,6 +188,7 @@ SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plug | |||
188 | file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ | 188 | file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ |
189 | " | 189 | " |
190 | SRC_URI:prepend = "${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} " | 190 | SRC_URI:prepend = "${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} " |
191 | SRC_URI:append = " file://0001-autovideoconvert-add-imxvideoconvert_g2d.patch" | ||
191 | GST1.0-PLUGINS-BAD_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-bad.git;protocol=https" | 192 | GST1.0-PLUGINS-BAD_SRC ?= "gitsm://github.com/nxp-imx/gst-plugins-bad.git;protocol=https" |
192 | SRCBRANCH = "MM_04.09.00_2405_L6.6.y" | 193 | SRCBRANCH = "MM_04.09.00_2405_L6.6.y" |
193 | SRCREV = "869cef4efbc004c795392d274e617f2dfa71ac98" | 194 | SRCREV = "869cef4efbc004c795392d274e617f2dfa71ac98" |