Reputation: 1947
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 resolution up to 5mp. I am wondering if there is any way to apply the same GLSL shader to, for example, a 5mp texture.
Upvotes: 2
Views: 677
Reputation: 1796
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.
Upvotes: 0
Reputation: 45968
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.
Upvotes: 2