¡@

Home 

2014/10/15 ¤U¤È 10:09:43

iphone Programming Glossary: gl_bgra

OpenGL ES 2d rendering into image

http://stackoverflow.com/questions/10455329/opengl-es-2d-rendering-into-image

NULL texture attributes GL_TEXTURE_2D GL_RGBA opengl format int imageSize.width int imageSize.height GL_BGRA native iOS format GL_UNSIGNED_BYTE 0 renderTexture CFRelease attrs CFRelease empty glBindTexture CVOpenGLESTextureGetTarget..

Hardware accelerated h.264 decoding to texture, overlay or similar in iOS

http://stackoverflow.com/questions/10646657/hardware-accelerated-h-264-decoding-to-texture-overlay-or-similar-in-ios

kCFAllocatorDefault coreVideoTextureCache movieFrame NULL GL_TEXTURE_2D GL_RGBA bufferWidth bufferHeight GL_BGRA GL_UNSIGNED_BYTE 0 texture if texture err NSLog @ Movie CVOpenGLESTextureCacheCreateTextureFromImage failed error d err.. BGRA extension to pull in video frame data directly glTexImage2D GL_TEXTURE_2D 0 GL_RGBA bufferWidth bufferHeight 0 GL_BGRA GL_UNSIGNED_BYTE CVPixelBufferGetBaseAddress movieFrame CGSize currentSize CGSizeMake bufferWidth bufferHeight for id GPUImageInput..

How do I grab an image from my EAGLLayer ?

http://stackoverflow.com/questions/314254/how-do-i-grab-an-image-from-my-eagllayer

though I'm not sure I'm doing the right thing as of what kind of malloc I should be doing. I gather that on OSX it's GL_BGRA but on the iPhone that doesn't work... iphone opengl es eaglview share improve this question All OpenGL ES complient..

Bump Mapping on top of iPhone Camera

http://stackoverflow.com/questions/5273946/bump-mapping-on-top-of-iphone-camera

has only ever come back tightly packed so no padding between lines meaning that it can be uploaded immediately as GL_BGRA since the APPLE_texture_format_BGRA8888 extension is supported on all iPhones to date. From there you obviously need to..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio

GL_TEXTURE_2D GL_TEXTURE_WRAP_T GL_CLAMP_TO_EDGE glTexImage2D GL_TEXTURE_2D 0 GL_RGBA bufferWidth bufferHeight 0 GL_BGRA GL_UNSIGNED_BYTE CVPixelBufferGetBaseAddress cameraFrame glBindBuffer GL_ARRAY_BUFFER self vertexBuffer glBindBuffer GL_ELEMENT_ARRAY_BUFFER.. but with a format that this line doesn't understand glTexImage2D GL_TEXTURE_2D 0 GL_RGBA bufferWidth bufferHeight 0 GL_BGRA GL_UNSIGNED_BYTE CVPixelBufferGetBaseAddress cameraFrame My hunch was that changing the external format from GL_BGRA to.. 0 GL_BGRA GL_UNSIGNED_BYTE CVPixelBufferGetBaseAddress cameraFrame My hunch was that changing the external format from GL_BGRA to something else would help but it doesn't... and through various means it looks like the buffer is actually in GL_BGRA...

Faster alternative to glReadPixels in iPhone OpenGL ES 2.0

http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0

NULL texture attributes GL_TEXTURE_2D GL_RGBA opengl format int videoSize.width int videoSize.height GL_BGRA native iOS format GL_UNSIGNED_BYTE 0 renderTexture glBindTexture CVOpenGLESTextureGetTarget renderTexture CVOpenGLESTextureGetName..