2021-07-12 01:42 AM
HI ,
How can i display simple image on to the screen ?
Currently we have weston demo running. I am aware of how to stop it , but post that what command can i use to simply just display an image on to screen?
2021-07-12 01:46 AM
Hi,
i think this wiki page is what you are looking for:
https://wiki.st.com/stm32mpu/wiki/Wayland_Weston_overview#Display_some_images
Regards.
2021-07-12 02:28 AM
Hi @NPal.2 ,
You can use gstreamer framework. ( gst-launch command )
See old post : How to run BMP files using Linux yocto on STM32MP157C-DK2 board
Wiki : https://wiki.st.com/stm32mpu/wiki/GStreamer_overview
You have also an example in Starter package / Demo launcher.
The AI demo is displaying a picture on demand by doing :
"gst-launch-1.0 filesrc location=/usr/local/demo/media/stm32cubeai.png ! pngdec ! videoconvert ! imagefreeze ! waylandsink &"
See on target : /usr/local/demo/bin/apps_launcher_example.sh
Olivier
2021-07-12 04:44 AM
THanks for answer @PatrickF . The information on the page was really helpful. But is there a way i can display image on screen, as full screen? Wasn't able to get that anywhere.
2021-07-12 05:25 AM
Hi,
I'm not specialist, and I'm not sure it is available on proposed examples.
weston-image is just for demo and show a 'window' image you can resize using mouse (you can try connecting a mouse to the DK2).
Otherwise please see https://wiki.st.com/stm32mpu/wiki/Wayland_Weston_overview#To_go_further
There is plenty of way to use the screen (see for instance GTK demo launcher, started with /usr/local/demo/demo_launcher.py)
Regards.
2021-07-13 01:16 AM
Thanks @Community member , will check on my side, thanks.