Hi everyone,
I'm developing a Qt application for an i.MX6 platform that runs under XWindows. I'm using Ubuntu 12.04, but I've disabled lightdm and I'm starting the application with startx.
The application plays video with GStreamer and displays images on the screen at the same time. I need a way to rotate the entire display so that it works in portrait mode as well as landscape mode.
Normally, I would do this using xrandr, but it looks like the vivante driver does not support that functionality. I can't use the Qt framebuffer driver, because I need XWindows to have GStreamer place my videos properly.
Can you help me find a way to rotate the entire display by 90 degrees?
Thanks!
Marlon
you can use mfw_v4lsink to rotate 90 degree.
For your reference.
Thanks Jimmy, but I need to rotate the whole display, including the graphics being displayed by Qt. For now, I'm using fbdev with Xorg instead of Vivante. There's a large performance hit, but I think it's my only option.
Hello Marlon,
It seems rotation in supported in Xorg since 3.10.17:
https://lists.yoctoproject.org/pipermail/meta-freescale/2014-January/006736.html
Else, I wrote a patch to rotate framebuffer using imx6 hardware acceleration. You still should use fbdev with Xorg, but at least screen rotation won't consume CPU anymore.
My code is available here:
jerome-pouiller/mxc-video-rotate · GitHub
BR,