i.mx23 EVK_Rotate the LCD Display or Video by 90 degree-

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx23 EVK_Rotate the LCD Display or Video by 90 degree-

1,107 Views
GopiNagaBharath
Contributor IV

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

Labels (2)
Tags (1)
0 Kudos
7 Replies

656 Views
JackyAtFreescal
Senior Contributor II

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

0 Kudos

656 Views
GopiNagaBharath
Contributor IV

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?

0 Kudos

656 Views
karina_valencia
NXP Apps Support
NXP Apps Support

robby can you continue with the  follow up on this case?

0 Kudos

656 Views
karina_valencia
NXP Apps Support
NXP Apps Support
Re: i.mx23 EVK_Rotate the LCD Display or Video by 90 degree-
Dongjun CaiEmployee

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.

0 Kudos

656 Views
GopiNagaBharath
Contributor IV

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

0 Kudos

656 Views
robby
NXP Employee
NXP Employee

It's different underlying IP to do image processing. For IMX5X, it's IPU. For MX23/MX28, it's PxP.

0 Kudos

656 Views
GopiNagaBharath
Contributor IV

I understand that they use two different IPs.

How can we implement the same rotation with the i.MX23 PXP?

Regards,

Gopi

0 Kudos