I am trying to copy a 800x600 frame captured from the HDMI input into a bigger frame for output and its working great. Here is the code (pretty simple).
out_frame = hdmi_out.newframe()
for _ in range(numframes):
f = hdmi_in.readframe()
out_frame[0:600, 0:800] = f[0:600, 0:800]
The thing is that it is not a fast as needed (Pynq Z2 - 20fps).
My question is: How can I improve that?
Maybe adding and IP that can do the copying process on logic? I thinks it is the best approach but out of reach for my skills right know.
Maybe an optimized way of copying the frame that I don’t know
In the end what I need to do is a configurable PiP where the main source is a python generated graphic and the overlay is the HDMI input.
I’d love to hear your thoughts.