imx6sx rotation usage

Document created by Joan Xie Employee on Jun 27, 2017Last modified by ebiz_ws_prod on Dec 13, 2017
Version 3Show Document
  • View in full screen mode

as we known, mx6sx doesn’t have IPU, if we need to resize, rotation or blending…., we can use pxp module, this part, we talk about rotation for example.

We also can use GPU for rotation, but in imx6sx, the number after 6sx in the part number stands for the chip including gpu or not, the number 4 and 3 mean mx6sx has gpu, like MCIMX6X3EVN10AB. and 1,2 and 3 mean mx6sx doesn’t have gpu, like MCIMX6X2EVN10AB

for gpu, we know we can use xrander to rotate ,in this part, we focus on pxp rotation

the stesp:

  • enable pxp in the kernel:

              $ bitbake -c menuconfig linux-imx, then choose Device Drivers ---> DMA Engine support --->

[*] MXC PxP support

[*] MXC PxP Client Device

2) download the built image from tmp/deploy/images/imx6sxsabresd

3) boot up the board, then you can find the pxp_v4l2_test.out in the unit test

4) use the command as below to test the rotation:

./pxp_v4l2_test.out -sx 480 -sy 272 -res 352:240 -a 100  -r 90 fb-352x240.yuv BLANK

 

Sx and sy is resolution for display, -res is resolution for image or video. -r is for rotaion, you can set 0,90,180 and 270 for it. I attach the fb-352x240.yuv for testing

Original Attachment has been moved to: fb-352x240.yuv.zip

1 person found this helpful

Attachments

    Outcomes