12-20-2012 04:57 AM
Currently trying to send the camera preview buffer through an opengl shader, but basically just as a regular texture. The data i am getting from the camera buffer is:
Framsdesc: width 720
Framsdesc: stride 4096
Framsdesc: uvoffset 5242880
Framsdesc: uvstride 4096
Now the only thing ive really done so far in opengl shaders is send in a regular rgb image (jpg etc.) and apply it as a texture. Does anyone recommend how i would deal with this in opengl or how to process the data any other way? Even explaining what is meant by the offset and stride might help.
Thanks in advance
12-21-2012 07:29 AM - edited 12-21-2012 07:29 AM
Offset and stride are described here:
This thread may help:
This JAM session recording is worth watching:
IIRC, it is recommended to use power-of-two sized textures in OpenGL ES.