plugin: sink: allow detecting and/or setting media rotation. Fixes #310

GstClapperSink now allows to specify the media rotation via the `rotation`
property, which should be of type GstVideoOrientationMethod.

The default behaviour is to detect the media rotation automatically.

Signed-off-by: Eugenio Paolantonio (g7) <me@medesimo.eu>
This commit is contained in:
Eugenio Paolantonio (g7)
2023-04-01 15:08:43 +02:00
parent 4e250c8f2a
commit e275c3017a
2 changed files with 59 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ struct _GstClapperSink
GstClapperImporterLoader *loader;
GstClapperImporter *importer;
GstVideoInfo v_info;
GstVideoOrientationMethod stream_orientation;
GtkWidget *widget;
GtkWindow *window;
@@ -58,6 +59,7 @@ struct _GstClapperSink
gboolean force_aspect_ratio;
gint par_n, par_d;
gboolean keep_last_frame;
GstVideoOrientationMethod rotation_mode;
/* Position coords */
gdouble last_pos_x;