PDA

View Full Version : Attaching Grayscale Image to FrameBuffer object in OpenGL ES



Devikaelangovan
05-07-2016, 11:53 AM
Hi All,

I'm trying to do YUV420->RGB conversion using OpenGL ES for Android Platform.

I've written the shaders logic and its working fine when i'm displaying the output on Surface view.
But the same thing I want to attach to Framebuffer.

Here input would be GrayScale image (Y, U and V components). If I attach the grayscale textures to Framebuffer
I'm getting INCOMPLETE FRAMEBUFFER status. Please help me to fix this?

GClements
05-07-2016, 01:56 PM
I'm trying to do YUV420->RGB conversion using OpenGL ES for Android Platform.

I've written the shaders logic and its working fine when i'm displaying the output on Surface view.
But the same thing I want to attach to Framebuffer.

Here input would be GrayScale image (Y, U and V components). If I attach the grayscale textures to Framebuffer
I'm getting INCOMPLETE FRAMEBUFFER status.
Why would you attach the Y/U/V images to the framebuffer?