summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2022-03-30 15:03:02 -0500
committerTom Hochstein <tom.hochstein@nxp.com>2022-04-04 16:57:41 -0500
commitb43b7a038e314256170992fba02f77611d949f36 (patch)
tree2284c23ced87c1a9a1cf93ef3aae00967eb7afcd
parent01ad835b7d50a10c3e3cbfd9509fd32f8dbc293a (diff)
downloadmeta-freescale-b43b7a038e314256170992fba02f77611d949f36.tar.gz
gstreamer1.0-plugins-bad: Upgrade 1.18.0.imx -> 1.18.5.imx
Also separate the base recipe copy from the overrides for ease of maintenance. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-ext-wayland-fix-meson-build-in-nxp-fork.patch58
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch (renamed from recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch)10
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch34
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-opencv-allow-compilation-against-4.4.x.patch27
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-vulkan-Drop-use-of-VK_RESULT_BEGIN_RANGE.patch51
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch (renamed from recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/avoid-including-sys-poll.h-directly.patch)10
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch (renamed from recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/ensure-valid-sentinels-for-gst_structure_get-etc.patch)24
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch (renamed from recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch)18
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch31
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.5.imx.bb (renamed from recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.0.imx.bb)132
10 files changed, 151 insertions, 244 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-ext-wayland-fix-meson-build-in-nxp-fork.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-ext-wayland-fix-meson-build-in-nxp-fork.patch
deleted file mode 100644
index 5e6a1c05..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-ext-wayland-fix-meson-build-in-nxp-fork.patch
+++ /dev/null
@@ -1,58 +0,0 @@
1From 9e092d8976db034a2d6848d738c4f73cc001fd09 Mon Sep 17 00:00:00 2001
2From: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
3Date: Sun, 26 Jan 2020 10:45:28 +0000
4Subject: [PATCH] ext/wayland: fix meson build in nxp fork
5
6- Add Wayland protocols, which are not enabled in upstream
7- Add missing compilation unit, which in NXP-specific
8
9Upstream-Status: Pending
10
11Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
12
13---
14 ext/wayland/meson.build | 24 ++++++++++++++++++++++++
15 1 file changed, 24 insertions(+)
16
17diff --git a/ext/wayland/meson.build b/ext/wayland/meson.build
18index 3c377eefb..98a7cb76f 100644
19--- a/ext/wayland/meson.build
20+++ b/ext/wayland/meson.build
21@@ -10,6 +10,11 @@ wl_sources = [
22
23 libdrm_dep = dependency('libdrm', version: '>= 2.4.55', required:get_option('wayland'))
24
25+imx_wl_sources = [
26+ 'wlutils.c',
27+]
28+wl_sources += imx_wl_sources
29+
30 if use_wayland
31 protocols_datadir = wl_protocol_dep.get_pkgconfig_variable('pkgdatadir')
32
33@@ -21,6 +26,25 @@ if use_wayland
34 'fullscreen-shell-unstable-v1-protocol.c', 'fullscreen-shell-unstable-v1-client-protocol.h'],
35 ['/stable/xdg-shell/xdg-shell.xml', 'xdg-shell-protocol.c', 'xdg-shell-client-protocol.h'],
36 ]
37+
38+ imx_protocol_defs = [
39+ [
40+ '/unstable/alpha-compositing/alpha-compositing-unstable-v1.xml',
41+ 'alpha-compositing-unstable-v1-protocol.c',
42+ 'alpha-compositing-unstable-v1-client-protocol.h'
43+ ],
44+ ['/unstable/hdr10-metadata/hdr10-metadata-unstable-v1.xml',
45+ 'hdr10-metadata-unstable-v1-protocol.c',
46+ 'hdr10-metadata-unstable-v1-client-protocol.h'
47+ ],
48+ [
49+ '/unstable/linux-explicit-synchronization/linux-explicit-synchronization-unstable-v1.xml',
50+ 'linux-explicit-synchronization-unstable-v1-protocol.c',
51+ 'linux-explicit-synchronization-unstable-v1-client-protocol.h'
52+ ],
53+ ]
54+ protocol_defs += imx_protocol_defs
55+
56 protocols_files = []
57
58 foreach protodef: protocol_defs
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch
index 7758300e..13a673cd 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/fix-maybe-uninitialized-warnings-when-compiling-with-Os.patch
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch
@@ -1,18 +1,17 @@
1From e7914eb0baa3530a5075c0d3db7936ccddd8e3fe Mon Sep 17 00:00:00 2001 1From f08ab3ac2ce43ac91d3bf65b26f26436690f499b Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <armccurdy@gmail.com> 2From: Andre McCurdy <armccurdy@gmail.com>
3Date: Tue, 26 Jan 2016 15:16:01 -0800 3Date: Tue, 26 Jan 2016 15:16:01 -0800
4Subject: [PATCH] fix maybe-uninitialized warnings when compiling with -Os 4Subject: [PATCH 1/4] fix maybe-uninitialized warnings when compiling with -Os
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
8Signed-off-by: Andre McCurdy <armccurdy@gmail.com> 8Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9
10--- 9---
11 gst-libs/gst/codecparsers/gstvc1parser.c | 2 +- 10 gst-libs/gst/codecparsers/gstvc1parser.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-) 11 1 file changed, 1 insertion(+), 1 deletion(-)
13 12
14diff --git a/gst-libs/gst/codecparsers/gstvc1parser.c b/gst-libs/gst/codecparsers/gstvc1parser.c 13diff --git a/gst-libs/gst/codecparsers/gstvc1parser.c b/gst-libs/gst/codecparsers/gstvc1parser.c
15index ac579712d..1686f6081 100644 14index 2c60ced..e8226d8 100644
16--- a/gst-libs/gst/codecparsers/gstvc1parser.c 15--- a/gst-libs/gst/codecparsers/gstvc1parser.c
17+++ b/gst-libs/gst/codecparsers/gstvc1parser.c 16+++ b/gst-libs/gst/codecparsers/gstvc1parser.c
18@@ -1730,7 +1730,7 @@ gst_vc1_parse_sequence_layer (const guint8 * data, gsize size, 17@@ -1730,7 +1730,7 @@ gst_vc1_parse_sequence_layer (const guint8 * data, gsize size,
@@ -24,3 +23,6 @@ index ac579712d..1686f6081 100644
24 guint8 structA[8] = { 0, }; 23 guint8 structA[8] = { 0, };
25 guint8 structB[12] = { 0, }; 24 guint8 structB[12] = { 0, };
26 GstBitReader br; 25 GstBitReader br;
26--
272.28.0
28
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch
deleted file mode 100644
index 4f9041dc..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-meson-build-gir-even-when-cross-compiling-if-introsp.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 69cff1595f9e0014c582c6f540d69d86d5e824ff Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com>
3Date: Fri, 18 Oct 2019 00:39:12 +0100
4Subject: [PATCH] meson: build gir even when cross-compiling if introspection
5 was enabled explicitly
6
7This can be made to work in certain circumstances when
8cross-compiling, so default to not building g-i stuff
9when cross-compiling, but allow it if introspection was
10enabled explicitly via -Dintrospection=enabled.
11
12See gstreamer/gstreamer#454 and gstreamer/gstreamer#381.
13
14Upstream-Status: Backport [97a4d0cd7de8cfbf983acc7e37ba2f8fb73c3e19]
15
16Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
17
18---
19 meson.build | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/meson.build b/meson.build
23index 2b492faea..bea89b23d 100644
24--- a/meson.build
25+++ b/meson.build
26@@ -405,7 +405,7 @@ python3 = import('python').find_installation()
27
28 gir = find_program('g-ir-scanner', required : get_option('introspection'))
29 gnome = import('gnome')
30-build_gir = gir.found() and not meson.is_cross_build()
31+build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled())
32 gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' + \
33 'g_setenv("GST_REGISTRY_1.0", "@0@", TRUE);'.format(meson.current_build_dir() + '/gir_empty_registry.reg') + \
34 'g_setenv("GST_PLUGIN_PATH_1_0", "", TRUE);' + \
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-opencv-allow-compilation-against-4.4.x.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-opencv-allow-compilation-against-4.4.x.patch
deleted file mode 100644
index 525f4a45..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-opencv-allow-compilation-against-4.4.x.patch
+++ /dev/null
@@ -1,27 +0,0 @@
1From a4df38174d33dc1e620ea535e16cac406ff59da2 Mon Sep 17 00:00:00 2001
2From: Nicola Murino <nicola.murino@gmail.com>
3Date: Fri, 31 Jul 2020 23:38:56 +0200
4Subject: [PATCH] opencv: allow compilation against 4.4.x
5
6Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1482>
7
8Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/commit/8544f3928ea46d2da3f27dc65576e8baf42a46d]
9Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
10
11---
12 ext/opencv/meson.build | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build
16index a26403482..b3270e540 100644
17--- a/ext/opencv/meson.build
18+++ b/ext/opencv/meson.build
19@@ -65,7 +65,7 @@ if opencv_found
20 endif
21 endforeach
22 else
23- opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.2.0'], required : false)
24+ opencv_dep = dependency('opencv4', version : ['>= 4.0.0', '< 4.5.0'], required : false)
25 opencv_found = opencv_dep.found()
26 if opencv_found
27 foreach h : libopencv4_headers
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-vulkan-Drop-use-of-VK_RESULT_BEGIN_RANGE.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-vulkan-Drop-use-of-VK_RESULT_BEGIN_RANGE.patch
deleted file mode 100644
index 5b8e0159..00000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-vulkan-Drop-use-of-VK_RESULT_BEGIN_RANGE.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From 54c700f9721ef218188803b48acae46e885626ee Mon Sep 17 00:00:00 2001
2From: "Jan Alexander Steffens (heftig)" <jan.steffens@ltnglobal.com>
3Date: Sat, 9 May 2020 19:59:46 +0200
4Subject: [PATCH] vulkan: Drop use of VK_RESULT_BEGIN_RANGE
5
6This was removed in Vulkan 1.2.140.
7
8> Shortly after 2020-04-24, we will be removing the automatically
9> generated `VK_*_BEGIN_RANGE`, `VK_*_END_RANGE`, and `VK_*_RANGE_SIZE`
10> tokens from the Vulkan headers. These tokens are currently defined for
11> some enumerated types, but are explicitly not part of the Vulkan API.
12> They existed only to support some Vulkan implementation internals,
13> which no longer require them. We will be accepting comments on this
14> topic in [#1230], but we strongly suggest any external projects using
15> these tokens immediately migrate away from them.
16
17[#1230]: https://github.com/KhronosGroup/Vulkan-Docs/issues/1230
18
19Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1603>
20
21Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/commit/17850d7e87af93c6bd181d7c25903478c2254fa6]
22Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
23---
24 ext/vulkan/vkerror.c | 4 +---
25 1 file changed, 1 insertion(+), 3 deletions(-)
26
27diff --git a/ext/vulkan/vkerror.c b/ext/vulkan/vkerror.c
28index 3fec27e4d..c91589d9b 100644
29--- a/ext/vulkan/vkerror.c
30+++ b/ext/vulkan/vkerror.c
31@@ -27,7 +27,7 @@
32 #include "vkerror.h"
33
34 /* *INDENT-OFF* */
35-static const struct
36+static const struct
37 {
38 VkResult result;
39 const char *str;
40@@ -63,8 +63,6 @@ _vk_result_to_string (VkResult result)
41
42 if (result >= 0)
43 return NULL;
44- if (result < VK_RESULT_BEGIN_RANGE)
45- return "Unknown Error";
46
47 for (i = 0; i < G_N_ELEMENTS (vk_result_string_map); i++) {
48 if (result == vk_result_string_map[i].result)
49--
502.17.1
51
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/avoid-including-sys-poll.h-directly.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch
index da2dd8bf..ead6897f 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/avoid-including-sys-poll.h-directly.patch
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch
@@ -1,20 +1,19 @@
1From 05f9a7a9025cb1c6a5592ba998ab95d565f9c76f Mon Sep 17 00:00:00 2001 1From 3b05e91720c10fcf6e0e408595b7217f6fa145c2 Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <armccurdy@gmail.com> 2From: Andre McCurdy <armccurdy@gmail.com>
3Date: Wed, 3 Feb 2016 18:05:41 -0800 3Date: Wed, 3 Feb 2016 18:05:41 -0800
4Subject: [PATCH] avoid including <sys/poll.h> directly 4Subject: [PATCH 2/4] avoid including <sys/poll.h> directly
5 5
6musl libc generates warnings if <sys/poll.h> is included directly. 6musl libc generates warnings if <sys/poll.h> is included directly.
7 7
8Upstream-Status: Pending 8Upstream-Status: Pending
9 9
10Signed-off-by: Andre McCurdy <armccurdy@gmail.com> 10Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
11
12--- 11---
13 sys/dvb/gstdvbsrc.c | 2 +- 12 sys/dvb/gstdvbsrc.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-) 13 1 file changed, 1 insertion(+), 1 deletion(-)
15 14
16diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c 15diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c
17index bd07369c3..ebfbe4947 100644 16index ca6b92a..b2772db 100644
18--- a/sys/dvb/gstdvbsrc.c 17--- a/sys/dvb/gstdvbsrc.c
19+++ b/sys/dvb/gstdvbsrc.c 18+++ b/sys/dvb/gstdvbsrc.c
20@@ -97,7 +97,7 @@ 19@@ -97,7 +97,7 @@
@@ -26,3 +25,6 @@ index bd07369c3..ebfbe4947 100644
26 #include <fcntl.h> 25 #include <fcntl.h>
27 #include <errno.h> 26 #include <errno.h>
28 #include <stdio.h> 27 #include <stdio.h>
28--
292.28.0
30
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/ensure-valid-sentinels-for-gst_structure_get-etc.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch
index c25a11e9..88fbc40d 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/ensure-valid-sentinels-for-gst_structure_get-etc.patch
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch
@@ -1,7 +1,7 @@
1From f9a8b71897af39640894915a5f202d0027124f57 Mon Sep 17 00:00:00 2001 1From 5ed27de9f662fe063b8b3d5d4335aa64cd4718c9 Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <armccurdy@gmail.com> 2From: Andre McCurdy <armccurdy@gmail.com>
3Date: Tue, 9 Feb 2016 14:00:00 -0800 3Date: Tue, 9 Feb 2016 14:00:00 -0800
4Subject: [PATCH] ensure valid sentinals for gst_structure_get() etc 4Subject: [PATCH 3/4] ensure valid sentinals for gst_structure_get() etc
5 5
6For GStreamer functions declared with G_GNUC_NULL_TERMINATED, 6For GStreamer functions declared with G_GNUC_NULL_TERMINATED,
7ie __attribute__((__sentinel__)), gcc will generate a warning if the 7ie __attribute__((__sentinel__)), gcc will generate a warning if the
@@ -17,7 +17,6 @@ without an explicit cast to a pointer type.
17Upstream-Status: Pending 17Upstream-Status: Pending
18 18
19Signed-off-by: Andre McCurdy <armccurdy@gmail.com> 19Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
20
21--- 20---
22 sys/decklink/gstdecklink.cpp | 10 +++++----- 21 sys/decklink/gstdecklink.cpp | 10 +++++-----
23 sys/decklink/gstdecklinkaudiosrc.cpp | 2 +- 22 sys/decklink/gstdecklinkaudiosrc.cpp | 2 +-
@@ -25,19 +24,19 @@ Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
25 3 files changed, 7 insertions(+), 7 deletions(-) 24 3 files changed, 7 insertions(+), 7 deletions(-)
26 25
27diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp 26diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp
28index 464b0de9d..9fb7246d3 100644 27index 4dac7e1..43762ce 100644
29--- a/sys/decklink/gstdecklink.cpp 28--- a/sys/decklink/gstdecklink.cpp
30+++ b/sys/decklink/gstdecklink.cpp 29+++ b/sys/decklink/gstdecklink.cpp
31@@ -617,7 +617,7 @@ gst_decklink_mode_get_structure (GstDecklinkModeEnum e, BMDPixelFormat f, 30@@ -674,7 +674,7 @@ gst_decklink_mode_get_generic_structure (GstDecklinkModeEnum e)
32 "pixel-aspect-ratio", GST_TYPE_FRACTION, mode->par_n, mode->par_d, 31 "pixel-aspect-ratio", GST_TYPE_FRACTION, mode->par_n, mode->par_d,
33 "interlace-mode", G_TYPE_STRING, 32 "interlace-mode", G_TYPE_STRING,
34 mode->interlaced ? "interleaved" : "progressive", 33 mode->interlaced ? "interleaved" : "progressive",
35- "framerate", GST_TYPE_FRACTION, mode->fps_n, mode->fps_d, NULL); 34- "framerate", GST_TYPE_FRACTION, mode->fps_n, mode->fps_d, NULL);
36+ "framerate", GST_TYPE_FRACTION, mode->fps_n, mode->fps_d, (void*)NULL); 35+ "framerate", GST_TYPE_FRACTION, mode->fps_n, mode->fps_d, (void*)NULL);
37 36
38 if (input && mode->interlaced) { 37 return s;
39 if (mode->tff) 38 }
40@@ -632,16 +632,16 @@ gst_decklink_mode_get_structure (GstDecklinkModeEnum e, BMDPixelFormat f, 39@@ -699,16 +699,16 @@ gst_decklink_mode_get_structure (GstDecklinkModeEnum e, BMDPixelFormat f,
41 case bmdFormat8BitYUV: /* '2vuy' */ 40 case bmdFormat8BitYUV: /* '2vuy' */
42 gst_structure_set (s, "format", G_TYPE_STRING, "UYVY", 41 gst_structure_set (s, "format", G_TYPE_STRING, "UYVY",
43 "colorimetry", G_TYPE_STRING, mode->colorimetry, 42 "colorimetry", G_TYPE_STRING, mode->colorimetry,
@@ -59,7 +58,7 @@ index 464b0de9d..9fb7246d3 100644
59 case bmdFormat10BitRGB: /* 'r210' Big-endian RGB 10-bit per component with SMPTE video levels (64-960). Packed as 2:10:10:10 */ 58 case bmdFormat10BitRGB: /* 'r210' Big-endian RGB 10-bit per component with SMPTE video levels (64-960). Packed as 2:10:10:10 */
60 case bmdFormat12BitRGB: /* 'R12B' Big-endian RGB 12-bit per component with full range (0-4095). Packed as 12-bit per component */ 59 case bmdFormat12BitRGB: /* 'R12B' Big-endian RGB 12-bit per component with full range (0-4095). Packed as 12-bit per component */
61diff --git a/sys/decklink/gstdecklinkaudiosrc.cpp b/sys/decklink/gstdecklinkaudiosrc.cpp 60diff --git a/sys/decklink/gstdecklinkaudiosrc.cpp b/sys/decklink/gstdecklinkaudiosrc.cpp
62index 2fef934c8..c47229abf 100644 61index 2fef934..c47229a 100644
63--- a/sys/decklink/gstdecklinkaudiosrc.cpp 62--- a/sys/decklink/gstdecklinkaudiosrc.cpp
64+++ b/sys/decklink/gstdecklinkaudiosrc.cpp 63+++ b/sys/decklink/gstdecklinkaudiosrc.cpp
65@@ -379,7 +379,7 @@ gst_decklink_audio_src_start (GstDecklinkAudioSrc * self) 64@@ -379,7 +379,7 @@ gst_decklink_audio_src_start (GstDecklinkAudioSrc * self)
@@ -72,10 +71,10 @@ index 2fef934c8..c47229abf 100644
72 71
73 switch (vconn) { 72 switch (vconn) {
74diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp 73diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp
75index 7aea3f7a2..4864508bb 100644 74index e3a6775..f1a5aae 100644
76--- a/sys/decklink/gstdecklinkvideosink.cpp 75--- a/sys/decklink/gstdecklinkvideosink.cpp
77+++ b/sys/decklink/gstdecklinkvideosink.cpp 76+++ b/sys/decklink/gstdecklinkvideosink.cpp
78@@ -285,7 +285,7 @@ reset_framerate (GstCapsFeatures * features, GstStructure * structure, 77@@ -286,7 +286,7 @@ reset_framerate (GstCapsFeatures * features, GstStructure * structure,
79 gpointer user_data) 78 gpointer user_data)
80 { 79 {
81 gst_structure_set (structure, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 80 gst_structure_set (structure, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1,
@@ -84,3 +83,6 @@ index 7aea3f7a2..4864508bb 100644
84 83
85 return TRUE; 84 return TRUE;
86 } 85 }
86--
872.28.0
88
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
index dc3a8c69..b8167090 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
@@ -1,23 +1,22 @@
1From 387886b05f4ae0de9b7faf1f9ca66040d38d19ee Mon Sep 17 00:00:00 2001 1From f19ff66640f2f472c4e9d9055253032d34e125c6 Mon Sep 17 00:00:00 2001
2From: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> 2From: Andrey Zhizhikin <andrey.z@gmail.com>
3Date: Sun, 26 Jan 2020 19:55:06 +0000 3Date: Mon, 27 Jan 2020 10:22:35 +0000
4Subject: [PATCH] opencv: resolve missing opencv data dir in yocto build 4Subject: [PATCH 4/4] opencv: resolve missing opencv data dir in yocto build
5 5
6When Yocto build is performed, opencv searches for data dir using simple 6When Yocto build is performed, opencv searches for data dir using simple
7test command, and this fails because pkg-config provides an absolute 7'test' command, this fails because pkg-config provides an absolute
8path on the target which needs to be prepended by PKG_CONFIG_SYSROOT_DIR 8path on the target which needs to be prepended by PKG_CONFIG_SYSROOT_DIR
9in order for the 'test' utility to pick up the absolute path. 9in order for the 'test' utility to pick up the absolute path.
10 10
11Upstream-Status: Inappropriate [OE-specific] 11Upstream-Status: Inappropriate [OE-specific]
12 12
13Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com> 13Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
14
15--- 14---
16 ext/opencv/meson.build | 7 ++++--- 15 ext/opencv/meson.build | 7 ++++---
17 1 file changed, 4 insertions(+), 3 deletions(-) 16 1 file changed, 4 insertions(+), 3 deletions(-)
18 17
19diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build 18diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build
20index f38b55dfe..a26403482 100644 19index 0b0b3fc..0ed3344 100644
21--- a/ext/opencv/meson.build 20--- a/ext/opencv/meson.build
22+++ b/ext/opencv/meson.build 21+++ b/ext/opencv/meson.build
23@@ -78,20 +78,21 @@ else 22@@ -78,20 +78,21 @@ else
@@ -45,3 +44,6 @@ index f38b55dfe..a26403482 100644
45 if r.returncode() == 0 44 if r.returncode() == 0
46 gstopencv_cargs += '-DOPENCV_PATH_NAME="opencv4"' 45 gstopencv_cargs += '-DOPENCV_PATH_NAME="opencv4"'
47 else 46 else
47--
482.28.0
49
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch
new file mode 100644
index 00000000..cb3bb7d3
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch
@@ -0,0 +1,31 @@
1From 1f00d5026118ebd48e4ccf83d32d67155c4e7f60 Mon Sep 17 00:00:00 2001
2From: Naveen Saini <naveen.kumar.saini@intel.com>
3Date: Wed, 30 Dec 2020 16:37:47 +0800
4Subject: [PATCH] msdk: fix includedir path
5
6In cross compilation, need to prepend PKG_CONFIG_SYSROOT_DIR to the dir path.
7
8Upstream-Status: Inappropriate [OE-specific]
9
10Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
11---
12 sys/msdk/meson.build | 2 ++
13 1 file changed, 2 insertions(+)
14
15diff --git a/sys/msdk/meson.build b/sys/msdk/meson.build
16index 6346c9451..068f38548 100644
17--- a/sys/msdk/meson.build
18+++ b/sys/msdk/meson.build
19@@ -40,7 +40,9 @@ endif
20
21 mfx_dep = dependency('libmfx', required: false)
22 if mfx_dep.found()
23+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
24 mfx_incdir = mfx_dep.get_pkgconfig_variable('includedir')
25+ mfx_incdir = pkgconf_sysroot + mfx_incdir
26 mfx_inc = []
27 else
28 # Old versions of MediaSDK don't provide a pkg-config file
29--
302.17.1
31
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.0.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.5.imx.bb
index 65f8eb07..44b95451 100644
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.0.imx.bb
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.5.imx.bb
@@ -1,46 +1,45 @@
1require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc 1# This recipe is for the i.MX fork of gstreamer1.0-plugins-bad. For ease of
2 2# maintenance, the top section is a verbatim copy of an OE-core
3DEPENDS:append:imxgpu2d = " virtual/libg2d" 3# recipe. The second section customizes the recipe for i.MX.
4DEPENDS:append:mx8-nxp-bsp = " libdrm"
5
6PACKAGECONFIG:append:mx8-nxp-bsp = " kms tinycompress"
7 4
8DEFAULT_PREFERENCE = "-1" 5########### OE-core copy ##################
6# Upstream hash: bb6ddc3691ab04162ec5fd69a2d5e7876713fd15
9 7
10PACKAGE_ARCH:imxpxp = "${MACHINE_SOCARCH}" 8require recipes-multimedia/gstreamer/gstreamer1.0-plugins-common.inc
11PACKAGE_ARCH:mx8-nxp-bsp = "${MACHINE_SOCARCH}"
12 9
13GST1.0-PLUGINS-BAD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-bad.git;protocol=https;branch=master" 10DESCRIPTION = "'Bad' GStreamer plugins and helper libraries "
14SRCBRANCH = "MM_04.06.01_2105_L5.10.y" 11HOMEPAGE = "https://gstreamer.freedesktop.org/"
12BUGTRACKER = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues"
15 13
16SRC_URI = " \ 14SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${PV}.tar.xz \
17 ${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} \ 15 file://0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch \
18" 16 file://0002-avoid-including-sys-poll.h-directly.patch \
19SRCREV = "227af57d23cb6b3564fc94446ab2c9fe8c8cff22" 17 file://0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch \
18 file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \
19 file://0005-msdk-fix-includedir-path.patch \
20 "
21SRC_URI[sha256sum] = "74e806bc5595b18c70e9ca93571e27e79dfb808e5d2e7967afa952b52e99c85f"
20 22
21S = "${WORKDIR}/git" 23S = "${WORKDIR}/gst-plugins-bad-${PV}"
22 24
23LICENSE = "GPL-2.0-or-later & LGPL-2.0-or-later & LGPL-2.1-or-later" 25LICENSE = "GPL-2.0-or-later & LGPL-2.0-or-later & LGPL-2.1-or-later"
24LIC_FILES_CHKSUM = "file://COPYING;md5=73a5855a8119deb017f5f13cf327095d \ 26LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
25 file://COPYING.LIB;md5=21682e4e8fea52413fd26c60acb907e5 "
26 27
27DEPENDS += "gstreamer1.0-plugins-base" 28DEPENDS += "gstreamer1.0-plugins-base"
28 29
29inherit gobject-introspection 30inherit gobject-introspection
30 31
31PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}"
32PACKAGECONFIG_GL:imxpxp = "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gles2', '', d)}"
33
34PACKAGECONFIG ??= " \ 32PACKAGECONFIG ??= " \
35 ${GSTREAMER_ORC} \ 33 ${GSTREAMER_ORC} \
36 ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ 34 ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
37 ${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ 35 ${@bb.utils.filter('DISTRO_FEATURES', 'directfb vulkan', d)} \
38 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ 36 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
39 ${PACKAGECONFIG_GL} \ 37 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \
40 bz2 closedcaption curl dash dtls hls rsvg sbc smoothstreaming sndfile \ 38 bz2 closedcaption curl dash dtls hls openssl rsvg sbc smoothstreaming \
41 ttml uvch264 webp \ 39 sndfile ttml uvch264 webp \
42" 40"
43 41
42PACKAGECONFIG[aom] = "-Daom=enabled,-Daom=disabled,aom"
44PACKAGECONFIG[assrender] = "-Dassrender=enabled,-Dassrender=disabled,libass" 43PACKAGECONFIG[assrender] = "-Dassrender=enabled,-Dassrender=disabled,libass"
45PACKAGECONFIG[bluez] = "-Dbluez=enabled,-Dbluez=disabled,bluez5" 44PACKAGECONFIG[bluez] = "-Dbluez=enabled,-Dbluez=disabled,bluez5"
46PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2" 45PACKAGECONFIG[bz2] = "-Dbz2=enabled,-Dbz2=disabled,bzip2"
@@ -53,16 +52,20 @@ PACKAGECONFIG[dtls] = "-Ddtls=enabled,-Ddtls=disabled,openssl"
53PACKAGECONFIG[faac] = "-Dfaac=enabled,-Dfaac=disabled,faac" 52PACKAGECONFIG[faac] = "-Dfaac=enabled,-Dfaac=disabled,faac"
54PACKAGECONFIG[faad] = "-Dfaad=enabled,-Dfaad=disabled,faad2" 53PACKAGECONFIG[faad] = "-Dfaad=enabled,-Dfaad=disabled,faad2"
55PACKAGECONFIG[fluidsynth] = "-Dfluidsynth=enabled,-Dfluidsynth=disabled,fluidsynth" 54PACKAGECONFIG[fluidsynth] = "-Dfluidsynth=enabled,-Dfluidsynth=disabled,fluidsynth"
56PACKAGECONFIG[hls] = "-Dhls=enabled -Dhls-crypto=nettle,-Dhls=disabled,nettle" 55PACKAGECONFIG[hls] = "-Dhls=enabled,-Dhls=disabled,"
56# Pick atleast one crypto backend below when enabling hls
57PACKAGECONFIG[nettle] = "-Dhls-crypto=nettle,,nettle"
58PACKAGECONFIG[openssl] = "-Dhls-crypto=openssl,,openssl"
59PACKAGECONFIG[gcrypt] = "-Dhls-crypto=libgcrypt,,libgcrypt"
57# the gl packageconfig enables OpenGL elements that haven't been ported 60# the gl packageconfig enables OpenGL elements that haven't been ported
58# to -base yet. They depend on the gstgl library in -base, so we do 61# to -base yet. They depend on the gstgl library in -base, so we do
59# not add GL dependencies here, since these are taken care of in -base. 62# not add GL dependencies here, since these are taken care of in -base.
60PACKAGECONFIG[gl] = "-Dgl=enabled,-Dgl=disabled," 63PACKAGECONFIG[gl] = "-Dgl=enabled,-Dgl=disabled,"
61PACKAGECONFIG[gles2] = ",,virtual/libgles2"
62PACKAGECONFIG[kms] = "-Dkms=enabled,-Dkms=disabled,libdrm" 64PACKAGECONFIG[kms] = "-Dkms=enabled,-Dkms=disabled,libdrm"
63PACKAGECONFIG[libde265] = "-Dlibde265=enabled,-Dlibde265=disabled,libde265" 65PACKAGECONFIG[libde265] = "-Dlibde265=enabled,-Dlibde265=disabled,libde265"
64PACKAGECONFIG[libmms] = "-Dlibmms=enabled,-Dlibmms=disabled,libmms" 66PACKAGECONFIG[libmms] = "-Dlibmms=enabled,-Dlibmms=disabled,libmms"
65PACKAGECONFIG[libssh2] = "-Dcurl-ssh2=enabled,-Dcurl-ssh2=disabled,libssh2" 67PACKAGECONFIG[libssh2] = "-Dcurl-ssh2=enabled,-Dcurl-ssh2=disabled,libssh2"
68PACKAGECONFIG[lcms2] = "-Dcolormanagement=enabled,-Dcolormanagement=disabled,lcms"
66PACKAGECONFIG[modplug] = "-Dmodplug=enabled,-Dmodplug=disabled,libmodplug" 69PACKAGECONFIG[modplug] = "-Dmodplug=enabled,-Dmodplug=disabled,libmodplug"
67PACKAGECONFIG[msdk] = "-Dmsdk=enabled,-Dmsdk=disabled,intel-mediasdk" 70PACKAGECONFIG[msdk] = "-Dmsdk=enabled,-Dmsdk=disabled,intel-mediasdk"
68PACKAGECONFIG[neon] = "-Dneon=enabled,-Dneon=disabled,neon" 71PACKAGECONFIG[neon] = "-Dneon=enabled,-Dneon=disabled,neon"
@@ -78,43 +81,41 @@ PACKAGECONFIG[resindvd] = "-Dresindvd=enabled,-Dresindvd=disabled,libdvdr
78PACKAGECONFIG[rsvg] = "-Drsvg=enabled,-Drsvg=disabled,librsvg" 81PACKAGECONFIG[rsvg] = "-Drsvg=enabled,-Drsvg=disabled,librsvg"
79PACKAGECONFIG[rtmp] = "-Drtmp=enabled,-Drtmp=disabled,rtmpdump" 82PACKAGECONFIG[rtmp] = "-Drtmp=enabled,-Drtmp=disabled,rtmpdump"
80PACKAGECONFIG[sbc] = "-Dsbc=enabled,-Dsbc=disabled,sbc" 83PACKAGECONFIG[sbc] = "-Dsbc=enabled,-Dsbc=disabled,sbc"
81PACKAGECONFIG[sctp] = "-Dsctp=enabled,-Dsctp=disabled,usrsctp" 84PACKAGECONFIG[sctp] = "-Dsctp=enabled,-Dsctp=disabled"
82PACKAGECONFIG[smoothstreaming] = "-Dsmoothstreaming=enabled,-Dsmoothstreaming=disabled,libxml2" 85PACKAGECONFIG[smoothstreaming] = "-Dsmoothstreaming=enabled,-Dsmoothstreaming=disabled,libxml2"
83PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1" 86PACKAGECONFIG[sndfile] = "-Dsndfile=enabled,-Dsndfile=disabled,libsndfile1"
87PACKAGECONFIG[srt] = "-Dsrt=enabled,-Dsrt=disabled,srt"
84PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp" 88PACKAGECONFIG[srtp] = "-Dsrtp=enabled,-Dsrtp=disabled,libsrtp"
85PACKAGECONFIG[tinyalsa] = "-Dtinyalsa=enabled,-Dtinyalsa=disabled,tinyalsa" 89PACKAGECONFIG[tinyalsa] = "-Dtinyalsa=enabled,-Dtinyalsa=disabled,tinyalsa"
86PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress"
87PACKAGECONFIG[ttml] = "-Dttml=enabled,-Dttml=disabled,libxml2 pango cairo" 90PACKAGECONFIG[ttml] = "-Dttml=enabled,-Dttml=disabled,libxml2 pango cairo"
88PACKAGECONFIG[uvch264] = "-Duvch264=enabled,-Duvch264=disabled,libusb1 libgudev" 91PACKAGECONFIG[uvch264] = "-Duvch264=enabled,-Duvch264=disabled,libusb1 libgudev"
92PACKAGECONFIG[v4l2codecs] = "-Dv4l2codecs=enabled,-Dv4l2codecs=disabled,libgudev"
93PACKAGECONFIG[va] = "-Dva=enabled,-Dva=disabled,libva"
89PACKAGECONFIG[voaacenc] = "-Dvoaacenc=enabled,-Dvoaacenc=disabled,vo-aacenc" 94PACKAGECONFIG[voaacenc] = "-Dvoaacenc=enabled,-Dvoaacenc=disabled,vo-aacenc"
90PACKAGECONFIG[voamrwbenc] = "-Dvoamrwbenc=enabled,-Dvoamrwbenc=disabled,vo-amrwbenc" 95PACKAGECONFIG[voamrwbenc] = "-Dvoamrwbenc=enabled,-Dvoamrwbenc=disabled,vo-amrwbenc"
91PACKAGECONFIG[vulkan] = "-Dvulkan=enabled,-Dvulkan=disabled,vulkan-loader" 96PACKAGECONFIG[vulkan] = "-Dvulkan=enabled,-Dvulkan=disabled,vulkan-loader shaderc-native"
92PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland-native wayland wayland-protocols libdrm" 97PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland-native wayland wayland-protocols libdrm"
93PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp" 98PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp"
94PACKAGECONFIG[webrtc] = "-Dwebrtc=enabled,-Dwebrtc=disabled,libnice" 99PACKAGECONFIG[webrtc] = "-Dwebrtc=enabled,-Dwebrtc=disabled,libnice"
95PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing" 100PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing"
96PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar" 101PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar"
97 102PACKAGECONFIG[x265] = "-Dx265=enabled,-Dx265=disabled,x265"
98# these plugins currently have no corresponding library in OE-core or meta-openembedded:
99# aom androidmedia applemedia bs2b chromaprint d3dvideosink
100# directsound dts fdkaac gme gsm iq kate ladspa lv2 mpeg2enc
101# mplex musepack nvdec nvenc ofa openexr openni2 opensles
102# soundtouch spandsp srt teletext vdpau wasapi wildmidi winks
103# winscreencap wpe x265
104 103
105EXTRA_OEMESON += " \ 104EXTRA_OEMESON += " \
105 -Ddoc=disabled \
106 -Ddecklink=enabled \ 106 -Ddecklink=enabled \
107 -Ddvb=enabled \ 107 -Ddvb=enabled \
108 -Dfbdev=enabled \ 108 -Dfbdev=enabled \
109 -Dipcpipeline=enabled \ 109 -Dipcpipeline=enabled \
110 -Dnetsim=enabled \
111 -Dshm=enabled \ 110 -Dshm=enabled \
112 -Daom=disabled \ 111 -Dtranscode=enabled \
113 -Dandroidmedia=disabled \ 112 -Dandroidmedia=disabled \
114 -Dapplemedia=disabled \ 113 -Dapplemedia=disabled \
114 -Davtp=disabled \
115 -Dbs2b=disabled \ 115 -Dbs2b=disabled \
116 -Dchromaprint=disabled \ 116 -Dchromaprint=disabled \
117 -Dd3dvideosink=disabled \ 117 -Dd3dvideosink=disabled \
118 -Dd3d11=disabled \
118 -Ddirectsound=disabled \ 119 -Ddirectsound=disabled \
119 -Ddts=disabled \ 120 -Ddts=disabled \
120 -Dfdkaac=disabled \ 121 -Dfdkaac=disabled \
@@ -125,27 +126,28 @@ EXTRA_OEMESON += " \
125 -Dkate=disabled \ 126 -Dkate=disabled \
126 -Dladspa=disabled \ 127 -Dladspa=disabled \
127 -Dlv2=disabled \ 128 -Dlv2=disabled \
129 -Dmagicleap=disabled \
130 -Dmediafoundation=disabled \
131 -Dmicrodns=disabled \
128 -Dmpeg2enc=disabled \ 132 -Dmpeg2enc=disabled \
129 -Dmplex=disabled \ 133 -Dmplex=disabled \
130 -Dmsdk=disabled \
131 -Dmusepack=disabled \ 134 -Dmusepack=disabled \
135 -Dnvcodec=disabled \
132 -Dofa=disabled \ 136 -Dofa=disabled \
133 -Dopenexr=disabled \ 137 -Dopenexr=disabled \
134 -Dopenmpt=disabled \
135 -Dopenni2=disabled \ 138 -Dopenni2=disabled \
136 -Dopensles=disabled \ 139 -Dopensles=disabled \
137 -Dsoundtouch=disabled \ 140 -Dsoundtouch=disabled \
138 -Dspandsp=disabled \ 141 -Dspandsp=disabled \
139 -Dsrt=disabled \ 142 -Dsvthevcenc=disabled \
140 -Dteletext=disabled \ 143 -Dteletext=disabled \
141 -Dwasapi=disabled \ 144 -Dwasapi=disabled \
145 -Dwasapi2=disabled \
142 -Dwildmidi=disabled \ 146 -Dwildmidi=disabled \
143 -Dwinks=disabled \ 147 -Dwinks=disabled \
144 -Dwinscreencap=disabled \ 148 -Dwinscreencap=disabled \
145 -Dwpe=disabled \ 149 -Dwpe=disabled \
146 -Dx265=disabled \ 150 -Dzxing=disabled \
147 -Dzbar=disabled \
148 ${@bb.utils.contains("TUNE_FEATURES", "mx32", "-Dyadif=disabled", "", d)} \
149" 151"
150 152
151export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" 153export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}"
@@ -157,7 +159,43 @@ FILES:${PN}-freeverb += "${datadir}/gstreamer-1.0/presets/GstFreeverb.prs"
157FILES:${PN}-opencv += "${datadir}/gst-plugins-bad/1.0/opencv*" 159FILES:${PN}-opencv += "${datadir}/gst-plugins-bad/1.0/opencv*"
158FILES:${PN}-transcode += "${datadir}/gstreamer-1.0/encoding-profiles" 160FILES:${PN}-transcode += "${datadir}/gstreamer-1.0/encoding-profiles"
159FILES:${PN}-voamrwbenc += "${datadir}/gstreamer-1.0/presets/GstVoAmrwbEnc.prs" 161FILES:${PN}-voamrwbenc += "${datadir}/gstreamer-1.0/presets/GstVoAmrwbEnc.prs"
160# include fragment shaders 162
161FILES:${PN}-opengl += "/usr/share/*.fs" 163########### End of OE-core copy ###########
164
165########### i.MX overrides ################
166
167DEFAULT_PREFERENCE = "-1"
168
169DEPENDS:append:imxgpu2d = " virtual/libg2d"
170
171SRC_URI:remove = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-${PV}.tar.xz"
172GST1.0-PLUGINS-BAD_SRC ?= "gitsm://source.codeaurora.org/external/imx/gst-plugins-bad.git;protocol=https"
173SRCBRANCH = "MM_04.06.04_2112_L5.15.y"
174SRC_URI:prepend = "${GST1.0-PLUGINS-BAD_SRC};branch=${SRCBRANCH} "
175SRCREV = "1dd01156ea45fc7a61e9edc4186353cd63a03800"
176
177S = "${WORKDIR}/git"
178
179inherit use-imx-headers
180
181PACKAGE_ARCH:imxpxp = "${MACHINE_SOCARCH}"
182PACKAGE_ARCH:mx8 = "${MACHINE_SOCARCH}"
183
184PACKAGECONFIG_REMOVE ?= " \
185 dtls vulkan \
186 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '', 'gl', d)} \
187"
188PACKAGECONFIG:remove = "${PACKAGECONFIG_REMOVE}"
189PACKAGECONFIG:append:mx8 = " kms tinycompress"
190
191PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress"
192
193# Disable introspection to fix [GstPlayer-1.0.gir] Error
194EXTRA_OEMESON += " \
195 -Dintrospection=disabled \
196 -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \
197"
162 198
163COMPATIBLE_MACHINE = "(imx-nxp-bsp)" 199COMPATIBLE_MACHINE = "(imx-nxp-bsp)"
200
201########### End of i.MX overrides #########