cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5 Video 640 x 480 to 800 x 600 display

spaceMonkey77
Associate

Hi,

I am using a STM32U5G9J-DK2. What I want to do is take the image from a camera at 640 x 480 and resize it into a display of 800 x 600 using the GPU2D hardware. How can get this with TouchGFX ? Is posible to use the GPU2D hardware without touchGFX ? 

4 REPLIES 4
GaetanGodart
ST Employee

Hello @spaceMonkey77 and welcome to the community!

 

That sounds possible to do, however GPU2D is not a beginner tool.
You can request access to the GPU2D by contacting @JMYGI by mail at Jorgen.mygind@st.com.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hi @GaetanGodart thanks for your response. 

There would be no problem to do it using TouchGFX but I can not configure the reading of a video stream through a camera with the library functions. Nor do I know how to rescale it. I don't know if you could give me some guidance on how to do it or if it is possible using TouchGFX.
Previously I was able to get video from a camera and paint it on a display using a STM32H7. But now I need to rescale it in real time so I thought of using the STM32U5 which has hardware for it.

It seems that these 2 sentences are in contradiction (or perhaps there is something I did not understood): "I can not configure the reading of a video" and "Previously I was able to get video from a camera"

 

"I can not configure the reading of a video"
To do so, you should read the documentation that comes with the camera you are using, perhaps the manufacturer provides basic C library?
I am not sure I can help you a lot with that, ST does not provide a universal video reading interface.

 

"Nor do I know how to rescale it"
This is really an image processing question, I am not an expert at image processing but here you want to keep the same aspect ratio so you should just rescale each frames by using an algorithm such as (from simplest to more computational heavy) nearest neighbor, bilinear interpolation, bicubic interpolation, Lanczos resampling.
If you want more information or guidance, maybe the best thing would be to ask it on a dedicated forum or subreddit.

 

The STM32U5G8 and the STM32H7S7 both ahve NeoChrom (GPU2D).

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hello @spaceMonkey77 ,

 

Have you been able to move forward on your project?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)