Hello All,
I wanted to rotate the 4.3" LCD Display on i.MX23 Development kit by 90 degree to play the videos in portrait mode.
Can any one please direct me to where the changes has to be made in the source to implement the display rotation by 90 degree?
I have been trying to rotate the video while playing with "gplay", but had no luck with it. However, I have tried the same in the i.MX53 Development kit, it works.
But I am not sure why this is not working in the i.MX23 EVK.
Regards,
Gopi
The PXP on i.MX23 can do the screen rotation.
PXP is supported as a v4l2 driver. Please try to open /dev/video0, then call VIDIOC_S_CTRL ioctl with a struct v4l2_control which id=V4L2_CID_PRIVATE_BASE and value=90.
Regards
Jacky
We tried below method to rotate frame buffer while playing a video
root@freescale# gst-launch playbin2 uri=file:///mnt/floppy/Videos/a.mp4 video-sink="mfw_v4lsink disp-width=320 disp-height=240 axis-top=16 axis-left=144" &
Video plays on the display with offset
root@freescale# echo "1" > /sys/class/graphics/fb0/rotate
root@freescale# cat /sys/class/graphics/fb0/rotate
0
After above command, the display goes blank - but gst-lauch process continues to run in background.
Same is case with
root@freescale# echo "1" > /sys/class/graphics/fbcon/rotate
root@freescale# cat /sys/class/graphics/fb0/rotate
0
When we kill the gst-launch process, and start again the video plays as normal (without any rotation).
Please advice what could be issue with this?
robby can you continue with the follow up on this case?
gplay's based on gstreamer, so to be accurate freescale gstreamer plugins doesn't support rotation on mx23/28.
need ask mm team to modify the codes.
Hi Jacky,
Thank a lot for the information.
I will check this and get back to you.
However, I am still wondering, why gplay is unable to do the rotation of the video? I have seen it working on the i.MX53, but it doesn't work on i.MX233.
Regards,
Gopi
It's different underlying IP to do image processing. For IMX5X, it's IPU. For MX23/MX28, it's PxP.
I understand that they use two different IPs.
How can we implement the same rotation with the i.MX23 PXP?
Regards,
Gopi