cancel
Showing results for 
Search instead for 
Did you mean: 

full screen video on stm32h7

shark
Senior

I can already play full screen video using hardware jpeg decoder without touchgfx.

Now touchgfx only works as a management UI, how can i suspend touchgfx when playing video in fullscreen mode, to prevent it from access frame buffer and DMA2D, LTDC etc.

Another question, if playing video in window mode with hardware jpeg decoder, can my software and touchgfx live peacefully together?

Any suggestions are appreciated.

1 REPLY 1
eng23
Senior

Hi,

I use camera in my application and initially I tried to use with touchgfx, but after I figured out a better performance writing directly in framebuffer used by LTDC.

So, I suspend touchgfx task and enable my camera task:

osThreadSuspend(defaultTaskHandle);

I use other layer in LTDC to write the camera framebuffer, so:

HAL_LTDC_SetAlpha(&hltdc, 0, 0);	/* Disable layer 0 (touchgfx)  */
HAL_LTDC_SetAlpha(&hltdc, 255, 1);	/* Enable layer 1 (camera) */

With this approach I get an improvement in the FPS, because the Touchgfx CPU resources is now for the camera processing.

Regards,

Anderson