- Home /
Question by
luyangliu123 · Jun 26, 2017 at 02:02 PM ·
imagerendertexturegpurealtimeencoding
Real-time Image Compression/Encoding on GPU
Hi guys,
I have a question about real-time image compression. I'm currently working on a project to real-time stream the rendered images to a remote client. I need to compress/encode the rendered image immediately and send it out.
The typical solution ( Texture2D.readpixel(), then encodeJPG() ) doesn't work for me because it copies the raw image from the GPU out to CPU, and encode the image in CPU, which waste a huge time.
So I'm thinking if I could find the address of the image in GPU in the onPostRender() funtion, and direct apply encoding algorithm on it in GPU. Then it could save a lot of time.
So my key question is: how can I get the address of image(or rendertexture maybe?) in GPU? Thanks!
Comment