cancel
Showing results for 
Search instead for 
Did you mean: 

Video widget on portrait mode

FToma.1
Associate

Hello,

I use a custom board based on STM32H750 (as Discovery board) with a 800*480 TFT (24 bit).

I try using the Video widget with the sample_video_1_medium_480*272 but in portait mode it show bad image, not understandable.

Next I try a custom video with 480*320 resolution: now i see the rows and columns are inverted.

For the first video I think there is also a problem with number of rows (272) since is not divisible for 32.

If I change setting in Touchgfx designer with landscape, both 2 video are correct.

I need to work in portait mode: I have to modify something in the program or try to rotate the video before compile?

Thanks.

toma Fabio

1 REPLY 1
Osman SOYKURT
ST Employee

Hello FToma.1,

This issue is known, the video widget and the portrait mode are not natively compatible with TouchGFX Designer. However, there's an easy workaround for this issue : you'll need to reverse your width and height value in STM32CubeMX.

So in CubeMX, change the value of your width to 480 and your height to 800 at these places as follow :

0693W00000Svz1zQAB.png0693W00000Svz24QAB.png0693W00000Svz2xQAB.png0693W00000Svz37QAB.png 

Regenerate code from STM32CubeMX, and reopen your TouchGFX project : here's the trick, do not open the .touchgfx file, but the .part file instead:

0693W00000Svz4jQAB.pngThen you'll see your screen in portrait mode, and video should work fine with this one :)

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX