i.mx6 IPU rotate 180 degree

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

i.mx6 IPU rotate 180 degree

2,241件の閲覧回数
zc_tee
Contributor III

Hi all,

Is the i.mx6 IPU able to do 180 degree rotation in kernel?

In drivers/video/mxc/mxc_ipuv3_fb.c, I saw that there are two lines as below:

     if(var->rotate > IPU_ROTATE_VERT_FLIP)

          var->rotate = IPU_ROTATE_NONE;

Does it means the IPU only can do vertical flip? why is these two lines in the coding?

I am using kernel version 3.0.101.

Regards,

Tee

ラベル(3)
タグ(3)
0 件の賞賛
返信
4 返答(返信)

1,038件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Tee

rotation and flip is supported by IPU, for examples one can look at

https://community.nxp.com/docs/DOC-94961

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,038件の閲覧回数
zc_tee
Contributor III

Hi Igor,

I see the example is implemented in application level.

I need it to be done in kernel level, is it possible?

Due to mechanical constraint, our display is to be mounted 180 degree rotated. Therefore, all of our display (console, UI, OS, application) needs to be rotated.

I think it would be easier to default it to 180 degree rotate in kernel.

Regards,

Tee

0 件の賞賛
返信

1,038件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Tee

one can try to reuse attached sdk example in ipu\src\ipu_ic.c

description in attached document sect.18.4.2 Main processing

Best regards

igor

0 件の賞賛
返信

1,038件の閲覧回数
zc_tee
Contributor III

Hi Igor,

I cannot understand that why in the kernel source drivers/video/mxc/mxc_ipuv3_fb.c there is a straight implementation on rotating the display and yet we cannot use it?

By saying try to reuse attached sdk example in ipu/src/ipu_ic.c, does it means that i need to incorporate the stated source into my kernel source drivers/mxc/ipu3/ipu_ic.c? Is there any patch that can be applied?

Thank you.

Regards,

Tee

0 件の賞賛
返信