¡@

Home 

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

iphone Programming Glossary: cvreturn

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

NSNumber numberWithBool YES kCVPixelBufferCGBitmapContextCompatibilityKey nil CVPixelBufferRef pxbuffer NULL CVReturn status CVPixelBufferCreate kCFAllocatorDefault size.width size.height kCVPixelFormatType_32ARGB CFDictionaryRef options.. kCFAllocatorDefault size.width size.height kCVPixelFormatType_32ARGB CFDictionaryRef options pxbuffer CVReturn status CVPixelBufferPoolCreatePixelBuffer NULL adaptor.pixelBufferPool pxbuffer NSParameterAssert status kCVReturnSuccess.. CVReturn status CVPixelBufferPoolCreatePixelBuffer NULL adaptor.pixelBufferPool pxbuffer NSParameterAssert status kCVReturnSuccess pxbuffer NULL CVPixelBufferLockBaseAddress pxbuffer 0 void pxdata CVPixelBufferGetBaseAddress pxbuffer NSParameterAssert..

OpenGL ES 2d rendering into image

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

show the code for raw data access there. You do the following to set up the texture cache and bind the FBO texture CVReturn err CVOpenGLESTextureCacheCreate kCFAllocatorDefault NULL __bridge void GPUImageOpenGLESContext sharedImageProcessingOpenGLESContext..

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 0 GPUImageOpenGLESContext useImageProcessingContext CVOpenGLESTextureRef texture NULL CVReturn err CVOpenGLESTextureCacheCreateTextureFromImage kCFAllocatorDefault coreVideoTextureCache movieFrame NULL GL_TEXTURE_2D..

How do I export UIImage array as a movie?

http://stackoverflow.com/questions/3741323/how-do-i-export-uiimage-array-as-a-movie

NSNumber numberWithBool YES kCVPixelBufferCGBitmapContextCompatibilityKey nil CVPixelBufferRef pxbuffer NULL CVReturn status CVPixelBufferCreate kCFAllocatorDefault frameSize.width frameSize.height kCVPixelFormatType_32ARGB CFDictionaryRef.. frameSize.width frameSize.height kCVPixelFormatType_32ARGB CFDictionaryRef options pxbuffer NSParameterAssert status kCVReturnSuccess pxbuffer NULL CVPixelBufferLockBaseAddress pxbuffer 0 void pxdata CVPixelBufferGetBaseAddress pxbuffer NSParameterAssert..

ASSETWriterInput for making Video from UIImages on Iphone Issues

http://stackoverflow.com/questions/3983882/assetwriterinput-for-making-video-from-uiimages-on-iphone-issues

NSNumber numberWithBool YES kCVPixelBufferCGBitmapContextCompatibilityKey nil CVPixelBufferRef pxbuffer NULL CVReturn status CVPixelBufferCreate kCFAllocatorDefault size.width size.height kCVPixelFormatType_32ARGB CFDictionaryRef options.. options pxbuffer status status Added to make the stupid compiler not show a stupid warning. NSParameterAssert status kCVReturnSuccess pxbuffer NULL CVPixelBufferLockBaseAddress pxbuffer 0 void pxdata CVPixelBufferGetBaseAddress pxbuffer NSParameterAssert..

AVFoundation + AssetWriter: Generate Movie With Images and Audio

http://stackoverflow.com/questions/5640657/avfoundation-assetwriter-generate-movie-with-images-and-audio

NSNumber numberWithBool YES kCVPixelBufferCGBitmapContextCompatibilityKey nil CVPixelBufferRef pxbuffer NULL CVReturn status CVPixelBufferCreate kCFAllocatorDefault size.width size.height kCVPixelFormatType_32ARGB CFDictionaryRef options.. size.width size.height kCVPixelFormatType_32ARGB CFDictionaryRef options pxbuffer NSParameterAssert status kCVReturnSuccess pxbuffer NULL CVPixelBufferLockBaseAddress pxbuffer 0 void pxdata CVPixelBufferGetBaseAddress pxbuffer NSParameterAssert..

AVAssetWriter Woes

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

kCVPixelBufferWidthKey attributes setObject NSNumber numberWithInt height forKey NSString kCVPixelBufferHeightKey CVReturn theError CVPixelBufferPoolCreate kCFAllocatorDefault NULL CFDictionaryRef attributes pixelBufferPool NSParameterAssert.. YES kCVPixelBufferCGBitmapContextCompatibilityKey nil if pixelBufferPool NULL NSLog @ pixelBufferPool is null CVReturn status CVPixelBufferPoolCreatePixelBuffer NULL pixelBufferPool pxbuffer if pxbuffer NULL CVReturn status CVPixelBufferCreate.. is null CVReturn status CVPixelBufferPoolCreatePixelBuffer NULL pixelBufferPool pxbuffer if pxbuffer NULL CVReturn status CVPixelBufferCreate kCFAllocatorDefault size.width size.height kCVPixelFormatType_32ARGB CFDictionaryRef options..

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

I'll be rendering my video frames to using the following code if GPUImageOpenGLESContext supportsFastTextureUpload CVReturn err CVOpenGLESTextureCacheCreate kCFAllocatorDefault NULL __bridge void GPUImageOpenGLESContext sharedImageProcessingOpenGLESContext..

Record the drawing as a m4v video file - OpenGL

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

kCMTimeZero 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 assetWriterPixelBufferInput pixelBufferPool pixel_buffer if pixel_buffer NULL status kCVReturnSuccess return else CVPixelBufferLockBaseAddress pixel_buffer 0 GLubyte pixelBufferData GLubyte CVPixelBufferGetBaseAddress..