Skip to main content
MTana.1
Associate II
January 21, 2022
Question

Video and jpeg picture are rotated with Display Orientation.

  • January 21, 2022
  • 4 replies
  • 2230 views

0693W00000JMn4qQAD.bmpWhen I run simulator of video sample with Display Orientation, the video is rotated.

Jpeg picture with LIBJPEG is also rotated.

Could you please advice me?

This topic has been closed for replies.

4 replies

Romain DIELEMAN
ST Employee
January 21, 2022

Hi,

Apparently the Video widget in portrait mode is not implemented yet. It is "expensive" to rotate the decoded image when putting it in the framebuffer.

/Romain

MTana.1
MTana.1Author
Associate II
January 21, 2022

Thank you for the prompt answer. I understand it is "expensive".

However, I'd like to know how to rotate the framebuffer for decompress with LIBJPEG.

Could you please advice me?

Romain DIELEMAN
ST Employee
January 21, 2022

I do not know how to do this myself. It is still under discussion on if it should be implemented for TouchGFX 19 or for a later version.

What I can only recommend for now is to change your project settings within STM32CubeMX to invert the size and width of the display to change the display orientation there instead of through TouchGFX Designer.

/Romain

MTana.1
MTana.1Author
Associate II
January 22, 2022

Thank you for your explanation.

I think JPEGFileLoader::readJPEGFile() in JPEGFileLoader.cpp is used for pasting the image to Dynamic Bitmap buffer.

Could you please tell me about the address mapping of the buffer?

I'll try to modify this function for swapping the row and column.