¡@

Home 

2014/10/15 ¤U¤È 10:05:53

iphone Programming Glossary: cvpixelbufferpoolcreatepixelbuffer

Merge Two Video files in iPhone Application

http://stackoverflow.com/questions/10071029/merge-two-video-files-in-iphone-application

convert uiimage to CGImage. xPixel 0 yPixel 250 buffer self pixelBufferFromCGImage UIImage imageNamed @ 1.jpeg CGImage CVPixelBufferPoolCreatePixelBuffer NULL adaptor.pixelBufferPool buffer adaptor appendPixelBuffer buffer withPresentationTime kCMTimeZero for int i 0 i 2 i..

Creating 16:9 Video Rather than 4:3 - AVAsset Writer - iPhone

http://stackoverflow.com/questions/10358086/creating-169-video-rather-than-43-avasset-writer-iphone

kCFAllocatorDefault size.width size.height kCVPixelFormatType_32ARGB CFDictionaryRef options pxbuffer CVReturn status CVPixelBufferPoolCreatePixelBuffer NULL adaptor.pixelBufferPool pxbuffer NSParameterAssert status kCVReturnSuccess pxbuffer NULL CVPixelBufferLockBaseAddress..

OpenGL ES 2d rendering into image

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

kCFTypeDictionaryValueCallBacks CFDictionarySetValue attrs kCVPixelBufferIOSurfacePropertiesKey empty CVPixelBufferPoolCreatePixelBuffer NULL assetWriterPixelBufferInput pixelBufferPool renderTarget CVPixelBufferCreate kCFAllocatorDefault int imageSize.width..

Make movie file with picture Array and song file, using AVAsset

http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset

printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount int32_t 10 CVPixelBufferPoolCreatePixelBuffer kCFAllocatorDefault adaptor.pixelBufferPool buffer append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime..

AVAssetWriter Woes

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

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 pixel buffer pool is never allocated. I.. nil if pixelBufferPool NULL NSLog @ pixelBufferPool is null CVReturn status CVPixelBufferPoolCreatePixelBuffer NULL pixelBufferPool pxbuffer if pxbuffer NULL CVReturn status CVPixelBufferCreate kCFAllocatorDefault size.width size.height.. already a pixel buffer pool created in the adaptor object so call just this instead CVPixelBufferRef pixelBuffer NULL CVPixelBufferPoolCreatePixelBuffer NULL adaptor.pixelBufferPool pixelBuffer CVPixelBufferLockBaseAddress pixelBuffer 0 ...fill the pixelbuffer here CVPixelBufferUnlockBaseAddress..

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

context NULL coreVideoTextureCache if err NSAssert NO @ Error at CVOpenGLESTextureCacheCreate d CVPixelBufferPoolCreatePixelBuffer NULL assetWriterPixelBufferInput pixelBufferPool renderTarget CVOpenGLESTextureRef renderTexture CVOpenGLESTextureCacheCreateTextureFromImage..

Record the drawing as a m4v video file - OpenGL

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

I grab and encode a color swizzled frame using the following CVPixelBufferRef pixel_buffer NULL CVReturn status CVPixelBufferPoolCreatePixelBuffer NULL assetWriterPixelBufferInput pixelBufferPool pixel_buffer if pixel_buffer NULL status kCVReturnSuccess return else CVPixelBufferLockBaseAddress..