GNOME Bugzilla – Bug 784605
ahcsrc: adjustable 'display-orientation' property
Last modified: 2018-11-03 14:10:38 UTC
Without compensation of the orientation degrees, 'ahcsrc' displays upside-down screen when the android device is rotated left at 90 degrees. This compensation value is available from the android developer site[0]. I couldn't find a good way to set this value in Java-side while 'ahcsrc' is working so I added a JNI function which was omitted before. [0] https://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int)
Created attachment 355007 [details] [review] ahcsrc: Make 'display-orientation' property writable
I thought this was read-only and you had to compensate when displaying (e.g. in GL) ?
(In reply to Nicolas Dufresne (stormer) from comment #2) > I thought this was read-only and you had to compensate when displaying (e.g. > in GL) ? Yes, but in recording situation(e.g filesink), can I still handle the orientation in sink?
I was asking this question as I thought it was not portable (not all phone would work with a property). I'm glad if this is wrong. Note that you can always correct the orientation in sw using videoclip, or in GL using glvideoflip. Both have an automatic mode that rely on the orientation meta.
I got your point. Although 'setDisplayOrientation' is defined, it doesn't guarantee it will work for all device. In that case, 'orientation' property will have default value. Let me try to use meta.
-- 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-bad/issues/579.