2

I'm doing some video processing in opengl using the raw camera frames. I tell the camera to give me BGRA, as I've heard that is more performant on the iPhone. Now, I know the native camera format is YUV, but for processing I am doing red green blue.

Is there any truth to the whole BGRA thing? Could someone explain what's happening under the hood here? I'm trying to optimize for opengl, and not sure if I should be using BGRA, RGBA, GL_RGBA8_OES, or GL_RGB565 for my FBOs, etc. My pipeline is Camera>glTexImage2D>Shaders>glReadPixels>H.264.

Thanks everyone.

1

1 Answer 1

1

It seems that BGRA with premultiplied alpha is the best way for the iphone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.