Hello,
Do some have some hints on how to rotate the screen 180 degress on i.mx6 ?
I use DirectFB.
I did find this in the linux source code:
/*
* Enumeration of IPU rotation modes
*/
enum ipu_rotate_mode {
/* Note the enum values correspond to BAM value */
IPU_ROTATE_NONE = 0,
IPU_ROTATE_VERT_FLIP = 1,
IPU_ROTATE_HORIZ_FLIP = 2,
IPU_ROTATE_180 = 3,
IPU_ROTATE_90_RIGHT = 4,
IPU_ROTATE_90_RIGHT_VFLIP = 5,
IPU_ROTATE_90_RIGHT_HFLIP = 6,
IPU_ROTATE_90_LEFT = 7,
};
I want to able to rotate the screen in one of these:
1. arch/arm/mach-mx6/*
2. Some scripts when the system have booted.
Example: echo '1' > /sys/class/graphics/fb0/rotate
I think this is IPU_ROTATE_HORIZ_FLIP, but I am not able to get the function IPU_ROTATE_180
3. Parameter to DirectFB. Example: df_andi -dfb:layer-rotate=180
Does not work.
I did find this example:
ipu-examples release notes - v0.1
Have not tested, but should there not be a simpler way?
For DirectFB the parameter --dfb:layer-rotate=180 can be used.
Note the type error with only one - over, that was the bug...
You can use the mfw_v4lsink/mfw_isink gstreamer elements to rotate. Would that help?
Leo
We are not going to have gstreamer on the system.
I am not IPU expert, but you may find what you need on this code https://github.com/rogeriorps/ipu-examples
Leo