summaryrefslogtreecommitdiff
path: root/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0033-gl-viv-fb-transform-screen-coordinate-to.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0033-gl-viv-fb-transform-screen-coordinate-to.patch')
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0033-gl-viv-fb-transform-screen-coordinate-to.patch52
1 files changed, 0 insertions, 52 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0033-gl-viv-fb-transform-screen-coordinate-to.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0033-gl-viv-fb-transform-screen-coordinate-to.patch
deleted file mode 100644
index 3fd9f14..0000000
--- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0033-gl-viv-fb-transform-screen-coordinate-to.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From eb552ac9f5cb457de11d4da8214982de4ad35283 Mon Sep 17 00:00:00 2001
-From: Haihua Hu <jared.hu@nxp.com>
-Date: Mon, 11 Sep 2017 16:00:24 +0800
-Subject: [PATCH 2/3] [MMFMWK-7707]gl/viv-fb: transform screen coordinate to
- viewport coordinate
-
-In y direction, screen coordinate are opposite to viewport coordinate.
-
-Upstream-Status: Backport [1.13.1]
-https://bugzilla.gnome.org/show_bug.cgi?id=787394
----
- gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c | 17 +++++++++++++++--
- 1 file changed, 15 insertions(+), 2 deletions(-)
-
-diff --git a/gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c b/gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c
-index 14d9997..e1a3fd3 100644
---- a/gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c
-+++ b/gst-libs/gst/gl/viv-fb/gstglwindow_viv_fb_egl.c
-@@ -210,15 +210,28 @@ _free_set_render_rectangle (SetRenderRectangleData * render)
- }
-
- static void
-+_calculate_viewport_coordinates(GstGLWindowVivFBEGL * window_egl,
-+ GstVideoRectangle * req, GstVideoRectangle * result)
-+{
-+ result->x = req->x;
-+ result->y = window_egl->window_height - (req->y + req->h);
-+ result->w = req->w;
-+ result->h = req->h;
-+}
-+
-+static void
- _set_render_rectangle (gpointer data)
- {
- SetRenderRectangleData *render = data;
-- GstGLWindow *window = GST_GL_WINDOW (render->window_egl);
-+ GstGLWindowVivFBEGL *window_egl = render->window_egl;
-+ GstGLWindow *window = GST_GL_WINDOW (window_egl);
-
- GST_LOG_OBJECT (render->window_egl, "setting render rectangle %i,%i+%ix%i",
- render->rect.x, render->rect.y, render->rect.w, render->rect.h);
-
-- render->window_egl->render_rectangle = render->rect;
-+ _calculate_viewport_coordinates (window_egl, &render->rect,
-+ &window_egl->render_rectangle);
-+
- gst_gl_window_resize (window, render->rect.w, render->rect.h);
-
- window->queue_resize = TRUE;
---
-1.9.1
-