So, in my application I get continuous Video Frames as a RGBA buffer in the Uint8Array array format:
const videoFrameRGBABuffer = new Uint8Array(Width * Height * Uint32Array.BYTES_PER_ELEMENT);
I want to convert this into a png image string, just like one can get from canvas.toDataUrl(), same format.
So, it's a browser app, may I know what libraries I can use to convert rgba buffer into png image in JavaScript?
I will be converting this on a dedicated web worker.
Thank you!