summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2022-02-07 01:08:16 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-08 14:20:18 +0000
commit1197b1c5ed4077b8cc2fc8b24c8c9d2328e7e179 (patch)
treef427b445ac2089f8e4c744ac058892cdbfdd3d19
parent7f4bd6e984fa8fec44490a88b104ca1c7334d1ae (diff)
downloadpoky-1197b1c5ed4077b8cc2fc8b24c8c9d2328e7e179.tar.gz
gstreamer1.0-plugins-bad: upgrade 1.18.5 -> 1.20.0
- Remove meson options libmms ofa - Add new meson options gpl: Allow build plugins that have GPL-licensed dependencies faad: Free AAC audio decoder plugin (GPL - only built if gpl option is also enabled!) resindvd: Resin DVD playback plugin (GPL - only built if gpl option is also enabled!) x265: HEVC/H.265 video encoder plugin (GPL - only built if gpl option is also enabled!) - Add new meson options Feature options for plugins without external deps codecalpha aes: AES encryption/decryption plugin Feature options for plugins that need external deps asio: Steinberg Audio Streaming Input Output (ASIO) plugin gs: Google Cloud Storage source and sink plugin ldac: LDAC bluetooth audio codec plugin openaptx: Open Source implementation of Audio Processing Technology codec (aptX) plugin qroverlay: new elements that allow overlaying data on top of video in the form of a QR code onnx: ONNX neural network plugin (From OE-Core rev: 76433d3628cbad311b428a57b25b4e2701ee513b) Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch8
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch12
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch22
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch42
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch41
-rw-r--r--meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.0.bb (renamed from meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.5.bb)23
6 files changed, 70 insertions, 78 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch
index 13a673cd50..4b3451d321 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch
@@ -1,11 +1,12 @@
1From f08ab3ac2ce43ac91d3bf65b26f26436690f499b Mon Sep 17 00:00:00 2001 1From 6c3eeaf6435608f744303c17d52245f926cd28ac 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 1/4] fix maybe-uninitialized warnings when compiling with -Os 4Subject: [PATCH] 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
9--- 10---
10 gst-libs/gst/codecparsers/gstvc1parser.c | 2 +- 11 gst-libs/gst/codecparsers/gstvc1parser.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-) 12 1 file changed, 1 insertion(+), 1 deletion(-)
@@ -23,6 +24,3 @@ index 2c60ced..e8226d8 100644
23 guint8 structA[8] = { 0, }; 24 guint8 structA[8] = { 0, };
24 guint8 structB[12] = { 0, }; 25 guint8 structB[12] = { 0, };
25 GstBitReader br; 26 GstBitReader br;
26--
272.28.0
28
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch
index ead6897f67..e3e5d9fb60 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0002-avoid-including-sys-poll.h-directly.patch
@@ -1,22 +1,23 @@
1From 3b05e91720c10fcf6e0e408595b7217f6fa145c2 Mon Sep 17 00:00:00 2001 1From 701255c5797f222f0c47ace6437d213607b98d1e 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 2/4] avoid including <sys/poll.h> directly 4Subject: [PATCH] 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
11--- 12---
12 sys/dvb/gstdvbsrc.c | 2 +- 13 sys/dvb/gstdvbsrc.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-) 14 1 file changed, 1 insertion(+), 1 deletion(-)
14 15
15diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c 16diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c
16index ca6b92a..b2772db 100644 17index 92c918c..5e27871 100644
17--- a/sys/dvb/gstdvbsrc.c 18--- a/sys/dvb/gstdvbsrc.c
18+++ b/sys/dvb/gstdvbsrc.c 19+++ b/sys/dvb/gstdvbsrc.c
19@@ -97,7 +97,7 @@ 20@@ -98,7 +98,7 @@
20 #include <gst/gst.h> 21 #include <gst/gst.h>
21 #include <gst/glib-compat-private.h> 22 #include <gst/glib-compat-private.h>
22 #include <sys/ioctl.h> 23 #include <sys/ioctl.h>
@@ -25,6 +26,3 @@ index ca6b92a..b2772db 100644
25 #include <fcntl.h> 26 #include <fcntl.h>
26 #include <errno.h> 27 #include <errno.h>
27 #include <stdio.h> 28 #include <stdio.h>
28--
292.28.0
30
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch
index 88fbc40dcd..280cbf984a 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0003-ensure-valid-sentinals-for-gst_structure_get-etc.patch
@@ -1,7 +1,7 @@
1From 5ed27de9f662fe063b8b3d5d4335aa64cd4718c9 Mon Sep 17 00:00:00 2001 1From 001fa08542dd5fc79571f7c803b2d3dd59c04a06 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 3/4] ensure valid sentinals for gst_structure_get() etc 4Subject: [PATCH] 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,6 +17,7 @@ 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
20--- 21---
21 sys/decklink/gstdecklink.cpp | 10 +++++----- 22 sys/decklink/gstdecklink.cpp | 10 +++++-----
22 sys/decklink/gstdecklinkaudiosrc.cpp | 2 +- 23 sys/decklink/gstdecklinkaudiosrc.cpp | 2 +-
@@ -24,10 +25,10 @@ Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
24 3 files changed, 7 insertions(+), 7 deletions(-) 25 3 files changed, 7 insertions(+), 7 deletions(-)
25 26
26diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp 27diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp
27index 4dac7e1..43762ce 100644 28index 3f79deb..96600c6 100644
28--- a/sys/decklink/gstdecklink.cpp 29--- a/sys/decklink/gstdecklink.cpp
29+++ b/sys/decklink/gstdecklink.cpp 30+++ b/sys/decklink/gstdecklink.cpp
30@@ -674,7 +674,7 @@ gst_decklink_mode_get_generic_structure (GstDecklinkModeEnum e) 31@@ -680,7 +680,7 @@ gst_decklink_mode_get_generic_structure (GstDecklinkModeEnum e)
31 "pixel-aspect-ratio", GST_TYPE_FRACTION, mode->par_n, mode->par_d, 32 "pixel-aspect-ratio", GST_TYPE_FRACTION, mode->par_n, mode->par_d,
32 "interlace-mode", G_TYPE_STRING, 33 "interlace-mode", G_TYPE_STRING,
33 mode->interlaced ? "interleaved" : "progressive", 34 mode->interlaced ? "interleaved" : "progressive",
@@ -36,7 +37,7 @@ index 4dac7e1..43762ce 100644
36 37
37 return s; 38 return s;
38 } 39 }
39@@ -699,16 +699,16 @@ gst_decklink_mode_get_structure (GstDecklinkModeEnum e, BMDPixelFormat f, 40@@ -705,16 +705,16 @@ gst_decklink_mode_get_structure (GstDecklinkModeEnum e, BMDPixelFormat f,
40 case bmdFormat8BitYUV: /* '2vuy' */ 41 case bmdFormat8BitYUV: /* '2vuy' */
41 gst_structure_set (s, "format", G_TYPE_STRING, "UYVY", 42 gst_structure_set (s, "format", G_TYPE_STRING, "UYVY",
42 "colorimetry", G_TYPE_STRING, mode->colorimetry, 43 "colorimetry", G_TYPE_STRING, mode->colorimetry,
@@ -58,10 +59,10 @@ index 4dac7e1..43762ce 100644
58 case bmdFormat10BitRGB: /* 'r210' Big-endian RGB 10-bit per component with SMPTE video levels (64-960). Packed as 2:10:10:10 */ 59 case bmdFormat10BitRGB: /* 'r210' Big-endian RGB 10-bit per component with SMPTE video levels (64-960). Packed as 2:10:10:10 */
59 case bmdFormat12BitRGB: /* 'R12B' Big-endian RGB 12-bit per component with full range (0-4095). Packed as 12-bit per component */ 60 case bmdFormat12BitRGB: /* 'R12B' Big-endian RGB 12-bit per component with full range (0-4095). Packed as 12-bit per component */
60diff --git a/sys/decklink/gstdecklinkaudiosrc.cpp b/sys/decklink/gstdecklinkaudiosrc.cpp 61diff --git a/sys/decklink/gstdecklinkaudiosrc.cpp b/sys/decklink/gstdecklinkaudiosrc.cpp
61index 2fef934..c47229a 100644 62index 50ad5cc..d209180 100644
62--- a/sys/decklink/gstdecklinkaudiosrc.cpp 63--- a/sys/decklink/gstdecklinkaudiosrc.cpp
63+++ b/sys/decklink/gstdecklinkaudiosrc.cpp 64+++ b/sys/decklink/gstdecklinkaudiosrc.cpp
64@@ -379,7 +379,7 @@ gst_decklink_audio_src_start (GstDecklinkAudioSrc * self) 65@@ -388,7 +388,7 @@ gst_decklink_audio_src_start (GstDecklinkAudioSrc * self)
65 g_mutex_unlock (&self->input->lock); 66 g_mutex_unlock (&self->input->lock);
66 67
67 if (videosrc) { 68 if (videosrc) {
@@ -71,10 +72,10 @@ index 2fef934..c47229a 100644
71 72
72 switch (vconn) { 73 switch (vconn) {
73diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp 74diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp
74index e3a6775..f1a5aae 100644 75index a64c046..07a09e8 100644
75--- a/sys/decklink/gstdecklinkvideosink.cpp 76--- a/sys/decklink/gstdecklinkvideosink.cpp
76+++ b/sys/decklink/gstdecklinkvideosink.cpp 77+++ b/sys/decklink/gstdecklinkvideosink.cpp
77@@ -286,7 +286,7 @@ reset_framerate (GstCapsFeatures * features, GstStructure * structure, 78@@ -288,7 +288,7 @@ reset_framerate (GstCapsFeatures * features, GstStructure * structure,
78 gpointer user_data) 79 gpointer user_data)
79 { 80 {
80 gst_structure_set (structure, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 81 gst_structure_set (structure, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1,
@@ -83,6 +84,3 @@ index e3a6775..f1a5aae 100644
83 84
84 return TRUE; 85 return TRUE;
85 } 86 }
86--
872.28.0
88
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
index b816709066..029b80e174 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch
@@ -1,7 +1,7 @@
1From f19ff66640f2f472c4e9d9055253032d34e125c6 Mon Sep 17 00:00:00 2001 1From 3bc5d48257032b6bbee532aad15062fbbcc43bfe Mon Sep 17 00:00:00 2001
2From: Andrey Zhizhikin <andrey.z@gmail.com> 2From: Andrey Zhizhikin <andrey.z@gmail.com>
3Date: Mon, 27 Jan 2020 10:22:35 +0000 3Date: Mon, 27 Jan 2020 10:22:35 +0000
4Subject: [PATCH 4/4] opencv: resolve missing opencv data dir in yocto build 4Subject: [PATCH] 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
7'test' command, this fails because pkg-config provides an absolute 7'test' command, this fails because pkg-config provides an absolute
@@ -11,39 +11,23 @@ in order for the 'test' utility to pick up the absolute path.
11Upstream-Status: Inappropriate [OE-specific] 11Upstream-Status: Inappropriate [OE-specific]
12 12
13Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> 13Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
14Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
15
14--- 16---
15 ext/opencv/meson.build | 7 ++++--- 17 ext/opencv/meson.build | 3 +++
16 1 file changed, 4 insertions(+), 3 deletions(-) 18 1 file changed, 3 insertions(+)
17 19
18diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build 20diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build
19index 0b0b3fc..0ed3344 100644 21index 1d86b90..b5c8b95 100644
20--- a/ext/opencv/meson.build 22--- a/ext/opencv/meson.build
21+++ b/ext/opencv/meson.build 23+++ b/ext/opencv/meson.build
22@@ -78,20 +78,21 @@ else 24@@ -87,6 +87,9 @@ if opencv_found
23 endif 25 opencv_prefix = opencv_dep.get_variable('prefix')
24
25 if opencv_found
26+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
27 opencv_prefix = opencv_dep.get_pkgconfig_variable('prefix')
28 gstopencv_cargs += ['-DOPENCV_PREFIX="' + opencv_prefix + '"'] 26 gstopencv_cargs += ['-DOPENCV_PREFIX="' + opencv_prefix + '"']
29 27
28+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
29+ opencv_prefix = pkgconf_sysroot + opencv_prefix
30+
30 # Check the data dir used by opencv for its xml data files 31 # Check the data dir used by opencv for its xml data files
31 # Use prefix from pkg-config to be compatible with cross-compilation 32 # Use prefix from pkg-config to be compatible with cross-compilation
32- r = run_command('test', '-d', opencv_prefix + '/share/opencv') 33 r = run_command('test', '-d', opencv_prefix + '/share/opencv', check: false)
33+ r = run_command('test', '-d', pkgconf_sysroot + opencv_prefix + '/share/opencv')
34 if r.returncode() == 0
35 gstopencv_cargs += '-DOPENCV_PATH_NAME="opencv"'
36 else
37- r = run_command('test', '-d', opencv_prefix + '/share/OpenCV')
38+ r = run_command('test', '-d', pkgconf_sysroot + opencv_prefix + '/share/OpenCV')
39 if r.returncode() == 0
40 gstopencv_cargs += '-DOPENCV_PATH_NAME="OpenCV"'
41 else
42- r = run_command('test', '-d', opencv_prefix + '/share/opencv4')
43+ r = run_command('test', '-d', pkgconf_sysroot + opencv_prefix + '/share/opencv4')
44 if r.returncode() == 0
45 gstopencv_cargs += '-DOPENCV_PATH_NAME="opencv4"'
46 else
47--
482.28.0
49
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch
index cb3bb7d361..273b45bd49 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0005-msdk-fix-includedir-path.patch
@@ -1,4 +1,4 @@
1From 1f00d5026118ebd48e4ccf83d32d67155c4e7f60 Mon Sep 17 00:00:00 2001 1From e31f68c46ff0c29fa3c22755f18d5dde87b23bf2 Mon Sep 17 00:00:00 2001
2From: Naveen Saini <naveen.kumar.saini@intel.com> 2From: Naveen Saini <naveen.kumar.saini@intel.com>
3Date: Wed, 30 Dec 2020 16:37:47 +0800 3Date: Wed, 30 Dec 2020 16:37:47 +0800
4Subject: [PATCH] msdk: fix includedir path 4Subject: [PATCH] msdk: fix includedir path
@@ -8,24 +8,33 @@ In cross compilation, need to prepend PKG_CONFIG_SYSROOT_DIR to the dir path.
8Upstream-Status: Inappropriate [OE-specific] 8Upstream-Status: Inappropriate [OE-specific]
9 9
10Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> 10Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
11Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
12
11--- 13---
12 sys/msdk/meson.build | 2 ++ 14 sys/msdk/meson.build | 4 ++++
13 1 file changed, 2 insertions(+) 15 1 file changed, 4 insertions(+)
14 16
15diff --git a/sys/msdk/meson.build b/sys/msdk/meson.build 17diff --git a/sys/msdk/meson.build b/sys/msdk/meson.build
16index 6346c9451..068f38548 100644 18index 24aabc7..6003bb7 100644
17--- a/sys/msdk/meson.build 19--- a/sys/msdk/meson.build
18+++ b/sys/msdk/meson.build 20+++ b/sys/msdk/meson.build
19@@ -40,7 +40,9 @@ endif 21@@ -46,7 +46,9 @@ if mfx_api != 'oneVPL'
22 mfx_dep = dependency('libmfx', version: ['>= 1.0', '<= 1.99'], required: false)
20 23
21 mfx_dep = dependency('libmfx', required: false) 24 if mfx_dep.found()
22 if mfx_dep.found() 25+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
23+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip() 26 mfx_incdir = mfx_dep.get_variable('includedir')
24 mfx_incdir = mfx_dep.get_pkgconfig_variable('includedir') 27+ mfx_incdir = pkgconf_sysroot + mfx_incdir
25+ mfx_incdir = pkgconf_sysroot + mfx_incdir 28 mfx_inc = []
26 mfx_inc = [] 29 use_msdk = true
27 else 30 else
28 # Old versions of MediaSDK don't provide a pkg-config file 31@@ -75,7 +77,9 @@ if not use_msdk and mfx_api != 'MSDK'
29-- 32 mfx_dep = dependency('vpl', version: '>= 2.2', required: false)
302.17.1 33
31 34 if mfx_dep.found()
35+ pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
36 mfx_incdir = mfx_dep.get_variable('includedir')
37+ mfx_incdir = pkgconf_sysroot + mfx_incdir
38 mfx_inc = []
39 use_onevpl = true
40 endif
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.5.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.0.bb
index f90dff693d..915d4ec744 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.5.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.20.0.bb
@@ -11,17 +11,13 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad
11 file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ 11 file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \
12 file://0005-msdk-fix-includedir-path.patch \ 12 file://0005-msdk-fix-includedir-path.patch \
13 " 13 "
14SRC_URI[sha256sum] = "a164923b94f0d08578a6fcaeaac6e0c05da788a46903a1086870e9ca45ad678e" 14SRC_URI[sha256sum] = "015b8d4d9a395ebf444d40876867a2034dd3304b3ad48bc3a0dd0c1ee71dc11d"
15 15
16S = "${WORKDIR}/gst-plugins-bad-${PV}" 16S = "${WORKDIR}/gst-plugins-bad-${PV}"
17 17
18LICENSE = "GPLv2+ & LGPLv2+ & LGPLv2.1+" 18LICENSE = "GPLv2+ & LGPLv2+ & LGPLv2.1+"
19LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" 19LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
20 20
21# remove at next version upgrade or when output changes
22PR = "r1"
23HASHEQUIV_HASH_VERSION .= ".1"
24
25DEPENDS += "gstreamer1.0-plugins-base" 21DEPENDS += "gstreamer1.0-plugins-base"
26 22
27inherit gobject-introspection 23inherit gobject-introspection
@@ -48,7 +44,6 @@ PACKAGECONFIG[dc1394] = "-Ddc1394=enabled,-Ddc1394=disabled,libdc1394"
48PACKAGECONFIG[directfb] = "-Ddirectfb=enabled,-Ddirectfb=disabled,directfb" 44PACKAGECONFIG[directfb] = "-Ddirectfb=enabled,-Ddirectfb=disabled,directfb"
49PACKAGECONFIG[dtls] = "-Ddtls=enabled,-Ddtls=disabled,openssl" 45PACKAGECONFIG[dtls] = "-Ddtls=enabled,-Ddtls=disabled,openssl"
50PACKAGECONFIG[faac] = "-Dfaac=enabled,-Dfaac=disabled,faac" 46PACKAGECONFIG[faac] = "-Dfaac=enabled,-Dfaac=disabled,faac"
51PACKAGECONFIG[faad] = "-Dfaad=enabled,-Dfaad=disabled,faad2"
52PACKAGECONFIG[fluidsynth] = "-Dfluidsynth=enabled,-Dfluidsynth=disabled,fluidsynth" 47PACKAGECONFIG[fluidsynth] = "-Dfluidsynth=enabled,-Dfluidsynth=disabled,fluidsynth"
53PACKAGECONFIG[hls] = "-Dhls=enabled,-Dhls=disabled," 48PACKAGECONFIG[hls] = "-Dhls=enabled,-Dhls=disabled,"
54# Pick atleast one crypto backend below when enabling hls 49# Pick atleast one crypto backend below when enabling hls
@@ -61,7 +56,6 @@ PACKAGECONFIG[gcrypt] = "-Dhls-crypto=libgcrypt,,libgcrypt"
61PACKAGECONFIG[gl] = "-Dgl=enabled,-Dgl=disabled," 56PACKAGECONFIG[gl] = "-Dgl=enabled,-Dgl=disabled,"
62PACKAGECONFIG[kms] = "-Dkms=enabled,-Dkms=disabled,libdrm" 57PACKAGECONFIG[kms] = "-Dkms=enabled,-Dkms=disabled,libdrm"
63PACKAGECONFIG[libde265] = "-Dlibde265=enabled,-Dlibde265=disabled,libde265" 58PACKAGECONFIG[libde265] = "-Dlibde265=enabled,-Dlibde265=disabled,libde265"
64PACKAGECONFIG[libmms] = "-Dlibmms=enabled,-Dlibmms=disabled,libmms"
65PACKAGECONFIG[libssh2] = "-Dcurl-ssh2=enabled,-Dcurl-ssh2=disabled,libssh2" 59PACKAGECONFIG[libssh2] = "-Dcurl-ssh2=enabled,-Dcurl-ssh2=disabled,libssh2"
66PACKAGECONFIG[lcms2] = "-Dcolormanagement=enabled,-Dcolormanagement=disabled,lcms" 60PACKAGECONFIG[lcms2] = "-Dcolormanagement=enabled,-Dcolormanagement=disabled,lcms"
67PACKAGECONFIG[modplug] = "-Dmodplug=enabled,-Dmodplug=disabled,libmodplug" 61PACKAGECONFIG[modplug] = "-Dmodplug=enabled,-Dmodplug=disabled,libmodplug"
@@ -75,7 +69,6 @@ PACKAGECONFIG[openmpt] = "-Dopenmpt=enabled,-Dopenmpt=disabled,libopenmp
75# the opus encoder/decoder elements are now in the -base package, 69# the opus encoder/decoder elements are now in the -base package,
76# but the opus parser remains in -bad 70# but the opus parser remains in -bad
77PACKAGECONFIG[opusparse] = "-Dopus=enabled,-Dopus=disabled,libopus" 71PACKAGECONFIG[opusparse] = "-Dopus=enabled,-Dopus=disabled,libopus"
78PACKAGECONFIG[resindvd] = "-Dresindvd=enabled,-Dresindvd=disabled,libdvdread libdvdnav"
79PACKAGECONFIG[rsvg] = "-Drsvg=enabled,-Drsvg=disabled,librsvg" 72PACKAGECONFIG[rsvg] = "-Drsvg=enabled,-Drsvg=disabled,librsvg"
80PACKAGECONFIG[rtmp] = "-Drtmp=enabled,-Drtmp=disabled,rtmpdump" 73PACKAGECONFIG[rtmp] = "-Drtmp=enabled,-Drtmp=disabled,rtmpdump"
81PACKAGECONFIG[sbc] = "-Dsbc=enabled,-Dsbc=disabled,sbc" 74PACKAGECONFIG[sbc] = "-Dsbc=enabled,-Dsbc=disabled,sbc"
@@ -98,10 +91,17 @@ PACKAGECONFIG[webrtc] = "-Dwebrtc=enabled,-Dwebrtc=disabled,libnice"
98PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing" 91PACKAGECONFIG[webrtcdsp] = "-Dwebrtcdsp=enabled,-Dwebrtcdsp=disabled,webrtc-audio-processing"
99PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar" 92PACKAGECONFIG[zbar] = "-Dzbar=enabled,-Dzbar=disabled,zbar"
100PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,libxcb libxkbcommon" 93PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,libxcb libxkbcommon"
94
95# GPL - only built if gpl option is also enabled!
96PACKAGECONFIG[gpl] = "-Dgpl=enabled,-Dgpl=disabled"
97PACKAGECONFIG[faad] = "-Dfaad=enabled,-Dfaad=disabled,faad2"
98PACKAGECONFIG[resindvd] = "-Dresindvd=enabled,-Dresindvd=disabled,libdvdread libdvdnav"
101PACKAGECONFIG[x265] = "-Dx265=enabled,-Dx265=disabled,x265" 99PACKAGECONFIG[x265] = "-Dx265=enabled,-Dx265=disabled,x265"
102 100
103EXTRA_OEMESON += " \ 101EXTRA_OEMESON += " \
104 -Ddoc=disabled \ 102 -Ddoc=disabled \
103 -Daes=enabled \
104 -Dcodecalpha=enabled \
105 -Ddecklink=enabled \ 105 -Ddecklink=enabled \
106 -Ddvb=enabled \ 106 -Ddvb=enabled \
107 -Dfbdev=enabled \ 107 -Dfbdev=enabled \
@@ -110,6 +110,7 @@ EXTRA_OEMESON += " \
110 -Dtranscode=enabled \ 110 -Dtranscode=enabled \
111 -Dandroidmedia=disabled \ 111 -Dandroidmedia=disabled \
112 -Dapplemedia=disabled \ 112 -Dapplemedia=disabled \
113 -Dasio=disabled \
113 -Davtp=disabled \ 114 -Davtp=disabled \
114 -Dbs2b=disabled \ 115 -Dbs2b=disabled \
115 -Dchromaprint=disabled \ 116 -Dchromaprint=disabled \
@@ -120,10 +121,12 @@ EXTRA_OEMESON += " \
120 -Dfdkaac=disabled \ 121 -Dfdkaac=disabled \
121 -Dflite=disabled \ 122 -Dflite=disabled \
122 -Dgme=disabled \ 123 -Dgme=disabled \
124 -Dgs=disabled \
123 -Dgsm=disabled \ 125 -Dgsm=disabled \
124 -Diqa=disabled \ 126 -Diqa=disabled \
125 -Dkate=disabled \ 127 -Dkate=disabled \
126 -Dladspa=disabled \ 128 -Dladspa=disabled \
129 -Dldac=disabled \
127 -Dlv2=disabled \ 130 -Dlv2=disabled \
128 -Dmagicleap=disabled \ 131 -Dmagicleap=disabled \
129 -Dmediafoundation=disabled \ 132 -Dmediafoundation=disabled \
@@ -132,10 +135,12 @@ EXTRA_OEMESON += " \
132 -Dmplex=disabled \ 135 -Dmplex=disabled \
133 -Dmusepack=disabled \ 136 -Dmusepack=disabled \
134 -Dnvcodec=disabled \ 137 -Dnvcodec=disabled \
135 -Dofa=disabled \
136 -Dopenexr=disabled \ 138 -Dopenexr=disabled \
137 -Dopenni2=disabled \ 139 -Dopenni2=disabled \
140 -Dopenaptx=disabled \
138 -Dopensles=disabled \ 141 -Dopensles=disabled \
142 -Donnx=disabled \
143 -Dqroverlay=disabled \
139 -Dsoundtouch=disabled \ 144 -Dsoundtouch=disabled \
140 -Dspandsp=disabled \ 145 -Dspandsp=disabled \
141 -Dsvthevcenc=disabled \ 146 -Dsvthevcenc=disabled \