2020-03-14 03:59 AM
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.
2020-03-16 03:44 AM
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