i.MX6 rotate display

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX6 rotate display

4,859件の閲覧回数
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,387件の閲覧回数
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,387件の閲覧回数
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,387件の閲覧回数
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 件の賞賛
返信