AnsweredAssumed Answered

I.MX6ULL Image Rotation Using PXP

Question asked by tk cheng on Mar 1, 2018
Latest reply on Mar 21, 2018 by tk cheng


I am using i.mx6ull chipset with release fsl-yocto-L4.9.11_1.0.0. I would like to implement framebuffer image rotation (90 degree) using PXP. I manage to run imx-test/Display/pxp_test.out demo on EVK. Below are the snapshot of image for no rotation, with command: .pxp_test.out -I "-o/dev/fb0 -r0"

Diagram 1


When I executed rotation of 90degree with command: ./pxp_test.out -I "-o/dev/fb0 -r90", I would expect the image is rotate 90 degree, with a section of the image fall outside of the LCD screen, as shown below.

Diagram 2

But in actual the output is shown as below.

Diagram 3


We tried to modify the parameter in the pxp_test.c(especially on width, height of srect/drect/s0_param parameters) to try achieve of Diagram2 but it is unsuccessful.

Kindly advise what changes is require in code to get output as in Diagram 2.

It would be very helpful if I can have some documentations on usage of the pxp library