¡@

Home 

2014/10/15 ¤U¤È 10:12:37

iphone Programming Glossary: pixelbufferpool

OpenGL ES 2d rendering into image

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

attrs kCVPixelBufferIOSurfacePropertiesKey empty CVPixelBufferPoolCreatePixelBuffer NULL assetWriterPixelBufferInput pixelBufferPool renderTarget CVPixelBufferCreate kCFAllocatorDefault int imageSize.width int imageSize.height kCVPixelFormatType_32BGRA..

AVAssetWriter Woes

http://stackoverflow.com/questions/6189535/avassetwriter-woes

method was to use the recommended AVAssetWriterInputPixelBufferAdaptor and then pull pixel buffers from the adaptors pixelBufferPool with CVPixelBufferPoolCreatePixelBuffer. That also works on the simulator but fails on the device because the adaptor's.. nil retain CVPixelBufferPoolCreate kCFAllocatorSystemDefault NULL CFDictionaryRef bufferAttributes pixelBufferPool Create buffer pool NSMutableDictionary attributes attributes NSMutableDictionary dictionary int width 480 int height 320.. kCVPixelBufferHeightKey CVReturn theError CVPixelBufferPoolCreate kCFAllocatorDefault NULL CFDictionaryRef attributes pixelBufferPool NSParameterAssert writerInput NSParameterAssert videoWriter canAddInput writerInput videoWriter addInput writerInput writerInput.expectsMediaDataInRealTime..

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

NO @ Error at CVOpenGLESTextureCacheCreate d CVPixelBufferPoolCreatePixelBuffer NULL assetWriterPixelBufferInput pixelBufferPool renderTarget CVOpenGLESTextureRef renderTexture CVOpenGLESTextureCacheCreateTextureFromImage kCFAllocatorDefault coreVideoTextureCache..

Record the drawing as a m4v video file - OpenGL

http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl

CVPixelBufferRef pixel_buffer NULL CVReturn status CVPixelBufferPoolCreatePixelBuffer NULL assetWriterPixelBufferInput pixelBufferPool pixel_buffer if pixel_buffer NULL status kCVReturnSuccess return else CVPixelBufferLockBaseAddress pixel_buffer 0 GLubyte..