i.MX6 rotate display

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX6 rotate display

4,760 次查看
marlonsmith
Contributor IV

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

标签 (2)
标记 (2)
0 项奖励
回复
3 回复数

2,288 次查看
jimmychan
NXP TechSupport
NXP TechSupport

you can use  mfw_v4lsink to rotate 90 degree.

For your reference.

https://community.freescale.com/message/341311#341311

0 项奖励
回复

2,288 次查看
marlonsmith
Contributor IV

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.

0 项奖励
回复

2,288 次查看
jérômepouiller
Contributor III

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,

0 项奖励
回复