¡@

Home 

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

iphone Programming Glossary: gpuimageopenglescontext

OpenGL ES 2d rendering into image

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

cache and bind the FBO texture CVReturn err CVOpenGLESTextureCacheCreate kCFAllocatorDefault NULL __bridge void GPUImageOpenGLESContext sharedImageProcessingOpenGLESContext context NULL rawDataTextureCache if err NSAssert NO @ Error at CVOpenGLESTextureCacheCreate..

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

movieFrame int bufferWidth CVPixelBufferGetWidth movieFrame CFAbsoluteTime startTime CFAbsoluteTimeGetCurrent if GPUImageOpenGLESContext supportsFastTextureUpload CVPixelBufferLockBaseAddress movieFrame 0 GPUImageOpenGLESContext useImageProcessingContext CVOpenGLESTextureRef.. if GPUImageOpenGLESContext supportsFastTextureUpload CVPixelBufferLockBaseAddress movieFrame 0 GPUImageOpenGLESContext useImageProcessingContext CVOpenGLESTextureRef texture NULL CVReturn err CVOpenGLESTextureCacheCreateTextureFromImage kCFAllocatorDefault..

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

Once I have that I configure the FBO that I'll be rendering my video frames to using the following code if GPUImageOpenGLESContext supportsFastTextureUpload CVReturn err CVOpenGLESTextureCacheCreate kCFAllocatorDefault NULL __bridge void GPUImageOpenGLESContext.. supportsFastTextureUpload CVReturn err CVOpenGLESTextureCacheCreate kCFAllocatorDefault NULL __bridge void GPUImageOpenGLESContext sharedImageProcessingOpenGLESContext context NULL coreVideoTextureCache if err NSAssert NO @ Error at CVOpenGLESTextureCacheCreate.. else NSLog @ Recorded pixel buffer at time lld currentTime.value CVPixelBufferUnlockBaseAddress pixel_buffer 0 if GPUImageOpenGLESContext supportsFastTextureUpload CVPixelBufferRelease pixel_buffer Note that at no point here am I reading anything manually. Also..