After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 786991 - gtkglsink: add "rotate-method" property
gtkglsink: add "rotate-method" property
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.12.x
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-08-29 21:32 UTC by Olivier Crête
Modified: 2018-11-03 15:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glutils: Export affine transmortation functions for gtkglsink (1.90 KB, patch)
2017-08-29 21:34 UTC, Olivier Crête
needs-work Details | Review
gtkglsink: Add rotate-method property (20.13 KB, patch)
2017-08-29 21:34 UTC, Olivier Crête
needs-work Details | Review

Description Olivier Crête 2017-08-29 21:32:48 UTC
This should match the capabilities of glimagesink, this includes support for the AffineTransformationMeta and the image-orientation tag as well as manual rotation using the property.

I didn't do it in glsinkbin becausse the GL happens in the GTK thread in that case.
Comment 1 Olivier Crête 2017-08-29 21:34:09 UTC
Created attachment 358730 [details] [review]
glutils: Export affine transmortation functions for gtkglsink
Comment 2 Olivier Crête 2017-08-29 21:34:13 UTC
Created attachment 358731 [details] [review]
gtkglsink: Add rotate-method property

This mostly just takes code out of glimagesink and applies it here.
Comment 3 Matthew Waters (ystreet00) 2017-08-30 03:04:17 UTC
Review of attachment 358730 [details] [review]:

The symbols in _private.h should be moved to the non-private header if they are to be exported.  The _private.h header is not installed.

Should also remove the duplicated symbols in ext/gl/gstglutils.c if you want to do this.
Comment 4 Matthew Waters (ystreet00) 2017-08-30 03:14:41 UTC
Review of attachment 358731 [details] [review]:

Looks mostly ok.

::: ext/gtk/gstgtkglsink.c
@@ +392,3 @@
+        if (!g_strcmp0 ("rotate-0", orientation))
+          gtk_gst_gl_widget_set_rotate_method (GTK_GST_GL_WIDGET
+              (gst_gtk_base_sink_acquire_widget (GST_GTK_BASE_SINK (sink))),

Erm, could you retrieve the widget earlier and make this line (and subsequent lines) a lot shorter please.

::: ext/gtk/gtkgstglwidget.c
@@ +31,3 @@
+#include <gst/video/gstvideoaffinetransformationmeta.h>
+#include <gst/gl/gstglutils.h>
+#include <gst/gl/gstglutils_private.h>

Private header.
Comment 5 GStreamer system administrator 2018-11-03 15:21:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/397.