GLSL for full resolution image manipulation?
I am currently using GLSL shaders to render effects to live video on iOS devices. The video resolution is 640x480. When you capture a picture, the image can come in at any res开发者_运维知识库olution up to 5mp. I am wondering if there is any way to apply the same GLSL shader to, for example, a 5mp texture.
It just depends if your graphics driver/device supports that large textures and render targets. If yes, it's absolutely no problem, GLSL doesn't care about the texture or render target size.
What you could do is process the image in chunks.
Like only process a 512x512 pixel part of the image at a time.
That way you wouldn't have to care about the final image resolution (it could even be 100mp big if you have enough memory).
And as Christian Rau already pointed out: GLSL doesn't care about the size of the texture/render target.
精彩评论