diff options
author | Carlos Rafael Giani <dv@pseudoterminal.org> | 2017-08-11 23:37:00 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-16 00:03:14 +0100 |
commit | e2bf6f7586ffd9cf369a6a7924544004d3e03749 (patch) | |
tree | 390c2335d274cb1203f9ec31acce12d439d72f92 /meta/recipes-multimedia | |
parent | 19681739e08af1ff225f6b247d5da714dae71ea5 (diff) | |
download | poky-e2bf6f7586ffd9cf369a6a7924544004d3e03749.tar.gz |
gstreamer1.0-vaapi: upgrade to version 1.12.2
* Remove backported patch:
1. vaapivideobufferpool-create-allocator-if-needed.patch
* Add PACKAGECONFIG_GL variable to make it possible for BSP layers to
customize what should be the default, EGL or GLX
* Set virtual/egl instead of virtual/mesa as egl dependency in case
platform specific drivers provide virtual/egl functionality
(From OE-Core rev: 42daac1ade210d873aa4761d89d2402fbe80f07b)
Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia')
4 files changed, 16 insertions, 70 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer-vaapi/vaapivideobufferpool-create-allocator-if-needed.patch b/meta/recipes-multimedia/gstreamer/gstreamer-vaapi/vaapivideobufferpool-create-allocator-if-needed.patch deleted file mode 100644 index f666adc819..0000000000 --- a/meta/recipes-multimedia/gstreamer/gstreamer-vaapi/vaapivideobufferpool-create-allocator-if-needed.patch +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> | ||
2 | Upstream-Status: Backport [commit 59a731be6b in '1.10' branch] | ||
3 | |||
4 | |||
5 | From 02a6002c3a80b3a5301c0943b1a1518bbdf439fc Mon Sep 17 00:00:00 2001 | ||
6 | From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= | ||
7 | <vjaquez@igalia.com> | ||
8 | Date: Fri, 21 Apr 2017 19:07:18 +0200 | ||
9 | Subject: [PATCH] vaapivideobufferpool: create allocator if needed | ||
10 | |||
11 | Backport to branch 1.10 | ||
12 | |||
13 | Sometimes a video decoder could set different buffer pool | ||
14 | configurations, because their frame size changes. In this case we | ||
15 | did not reconfigure the allocator. | ||
16 | |||
17 | This patch enables this use case, creating a new allocator inside | ||
18 | the VAAPI buffer pool if the caps changed, if it is not dmabuf-based. | ||
19 | If so, it is just reconfigured, since it doesn't have a surface pool. | ||
20 | |||
21 | https://bugzilla.gnome.org/show_bug.cgi?id=781577 | ||
22 | --- | ||
23 | gst/vaapi/gstvaapivideobufferpool.c | 21 +++++++++++++++++++++ | ||
24 | 1 file changed, 21 insertions(+) | ||
25 | |||
26 | diff --git a/gst/vaapi/gstvaapivideobufferpool.c b/gst/vaapi/gstvaapivideobufferpool.c | ||
27 | index a3b9223f..9a50614b 100644 | ||
28 | --- a/gst/vaapi/gstvaapivideobufferpool.c | ||
29 | +++ b/gst/vaapi/gstvaapivideobufferpool.c | ||
30 | @@ -159,6 +159,27 @@ gst_vaapi_video_buffer_pool_set_config (GstBufferPool * pool, | ||
31 | gst_object_replace ((GstObject **) & priv->allocator, NULL); | ||
32 | priv->video_info = new_vip; | ||
33 | |||
34 | + { | ||
35 | + guint surface_alloc_flags; | ||
36 | + gboolean vinfo_changed = FALSE; | ||
37 | + | ||
38 | + if (allocator) { | ||
39 | + const GstVideoInfo *alloc_vinfo = | ||
40 | + gst_allocator_get_vaapi_video_info (allocator, &surface_alloc_flags); | ||
41 | + vinfo_changed = gst_video_info_changed (alloc_vinfo, &new_vip); | ||
42 | + } | ||
43 | + | ||
44 | + if (vinfo_changed && allocator && priv->use_dmabuf_memory) { | ||
45 | + gst_allocator_set_vaapi_video_info (allocator, &new_vip, | ||
46 | + surface_alloc_flags); | ||
47 | + } else if (!priv->use_dmabuf_memory && (vinfo_changed || !allocator)) { | ||
48 | + /* let's destroy the other allocator and create a new one */ | ||
49 | + allocator = gst_vaapi_video_allocator_new (priv->display, &new_vip, | ||
50 | + surface_alloc_flags); | ||
51 | + gst_buffer_pool_config_set_allocator (config, allocator, NULL); | ||
52 | + } | ||
53 | + } | ||
54 | + | ||
55 | if (!gst_buffer_pool_config_has_option (config, | ||
56 | GST_BUFFER_POOL_OPTION_VAAPI_VIDEO_META)) | ||
57 | goto error_no_vaapi_video_meta_option; | ||
58 | -- | ||
59 | 2.11.0 | ||
60 | |||
61 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi.inc b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi.inc index ef0734ba93..abfcc65390 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi.inc +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi.inc | |||
@@ -22,12 +22,21 @@ REQUIRED_DISTRO_FEATURES ?= "opengl" | |||
22 | 22 | ||
23 | PACKAGES =+ "${PN}-tests" | 23 | PACKAGES =+ "${PN}-tests" |
24 | 24 | ||
25 | # OpenGL packageconfig factored out to make it easy for distros | ||
26 | # and BSP layers to pick either glx, egl, or no GL. By default, | ||
27 | # try detecting X11 first, and if found (with OpenGL), use GLX, | ||
28 | # otherwise try to check if EGL can be used. | ||
29 | PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'glx', \ | ||
30 | bb.utils.contains('DISTRO_FEATURES', 'opengl', 'egl', \ | ||
31 | '', d), d)}" | ||
32 | |||
25 | PACKAGECONFIG ??= "drm \ | 33 | PACKAGECONFIG ??= "drm \ |
26 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'glx', '', d)} \ | 34 | ${PACKAGECONFIG_GL} \ |
27 | ${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}" | 35 | ${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}" |
28 | 36 | ||
29 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,udev libdrm" | 37 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,udev libdrm" |
30 | PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,virtual/mesa" | 38 | PACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl" |
39 | PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,virtual/libgl" | ||
31 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland" | 40 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland" |
32 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxrandr libxrender" | 41 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxrandr libxrender" |
33 | 42 | ||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.10.4.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.10.4.bb deleted file mode 100644 index 44c66de442..0000000000 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.10.4.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | require gstreamer1.0-vaapi.inc | ||
2 | SRC_URI[md5sum] = "318af17f906637570b61dd7be9b5581d" | ||
3 | SRC_URI[sha256sum] = "03e690621594d9f9495d86c7dac8b8590b3a150462770ed070dc76f66a70de75" | ||
4 | |||
5 | SRC_URI += "file://vaapivideobufferpool-create-allocator-if-needed.patch" | ||
6 | |||
7 | DEPENDS += "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.12.2.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.12.2.bb new file mode 100644 index 0000000000..fbd9f8675f --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.12.2.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require gstreamer1.0-vaapi.inc | ||
2 | SRC_URI[md5sum] = "bea015f33696a15ad9575fb71af862ed" | ||
3 | SRC_URI[sha256sum] = "23c714e0474b3c7ae6ff8884aebf8503a1bc3ded335fa2d2b2ac31788466163a" | ||
4 | |||
5 | DEPENDS += "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||