-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gstreamer1.0-plugins-bad: Add imxvideoconvert_g2d to autovideoconvert
Add patch to enable imxvideoconvert on autovideoconvert. By default, imxvideoconvert_g2d is not included as a potential filter, resulting in poor video playback performance when autovideoconvert is used. Add imxvideoconvert_g2d to improve performance by utilizing hardware acceleration. Signed-off-by: Hiago De Franco <[email protected]>
- Loading branch information
1 parent
1d786c5
commit 67d6211
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...ia/gstreamer/gstreamer1.0-plugins-bad/0001-autovideoconvert-add-imxvideoconvert_g2d.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From 784881b9bffaa768c3a1e9cb3d8eead7b4ca356a Mon Sep 17 00:00:00 2001 | ||
From: Hiago De Franco <[email protected]> | ||
Date: Thu, 12 Sep 2024 18:44:14 +0200 | ||
Subject: [PATCH] autovideoconvert: add imxvideoconvert_g2d | ||
|
||
On i.MX8 platform, autovideoconvert defaults to CPU-based processing as | ||
imxvideoconvert_g2d is not included as a listed filter, resulting in | ||
poor video playback performance. | ||
|
||
Add imxvideoconvert_g2d to improve performance by utilizing hardware | ||
acceleration. | ||
|
||
Upstream-Status: Submitted [https://github.com/nxp-imx/gst-plugins-bad/pull/2] | ||
Signed-off-by: Hiago De Franco <[email protected]> | ||
--- | ||
gst/autoconvert/gstautovideoconvert.c | 7 +++++++ | ||
1 file changed, 7 insertions(+) | ||
|
||
diff --git a/gst/autoconvert/gstautovideoconvert.c b/gst/autoconvert/gstautovideoconvert.c | ||
index cf5468316cd5..b91bd1556c37 100644 | ||
--- a/gst/autoconvert/gstautovideoconvert.c | ||
+++ b/gst/autoconvert/gstautovideoconvert.c | ||
@@ -85,6 +85,13 @@ gst_auto_video_convert_init (GstAutoVideoConvert * autovideoconvert) | ||
.filters = { NULL }, | ||
.rank = GST_RANK_SECONDARY, | ||
}, | ||
+ { | ||
+ .first_elements = { "capsfilter caps=\"video/x-raw\"", NULL, }, | ||
+ .colorspace_converters = { "imxvideoconvert_g2d", NULL }, | ||
+ .last_elements = { NULL, }, | ||
+ .filters = { NULL }, | ||
+ .rank = GST_RANK_PRIMARY + 1, | ||
+ }, | ||
{ | ||
.first_elements = { "capsfilter caps=\"video/x-raw\"", NULL, }, | ||
.colorspace_converters = { "videoconvertscale", NULL }, | ||
-- | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters