iphone Programming Glossary: cvpixelbufferunlockbaseaddress
OpenGL ES 2d rendering into image http://stackoverflow.com/questions/10455329/opengl-es-2d-rendering-into-image renderTarget 0 _rawBytesForImage GLubyte CVPixelBufferGetBaseAddress renderTarget Do something with the bytes CVPixelBufferUnlockBaseAddress renderTarget 0 However if you just want to reuse your image within OpenGL ES you just need to render your scene to a texture..
how to convert a CVImageBufferRef to UIImage http://stackoverflow.com/questions/3152259/how-to-convert-a-cvimagebufferref-to-uiimage width CVPixelBufferGetWidth imageBuffer size_t height CVPixelBufferGetHeight imageBuffer We unlock the image buffer CVPixelBufferUnlockBaseAddress imageBuffer 0 Create a CGImageRef from the CVImageBufferRef CGColorSpaceRef colorSpace CGColorSpaceCreateDeviceRGB CGContextRef..
UIImage created from CMSampleBufferRef not displayed in UIImageView? http://stackoverflow.com/questions/3305862/uiimage-created-from-cmsamplebufferref-not-displayed-in-uiimageview
iPhone: AVCaptureSession capture output crashing (AVCaptureVideoDataOutput) http://stackoverflow.com/questions/3331644/iphone-avcapturesession-capture-output-crashing-avcapturevideodataoutput UIImageOrientationLeftMirrored CGImageRelease cgimage CGContextRelease newContext CGColorSpaceRelease colorSpace CVPixelBufferUnlockBaseAddress imageBuffer 0 Adding code after this point to do image transformation usually causes it to crash UIImage rot self scaleAndRotateImage..
How do I export UIImage array as a movie? http://stackoverflow.com/questions/3741323/how-do-i-export-uiimage-array-as-a-movie 0 0 CGImageGetWidth image CGImageGetHeight image image CGColorSpaceRelease rgbColorSpace CGContextRelease context CVPixelBufferUnlockBaseAddress pxbuffer 0 return pxbuffer frameSize is a CGSize describing your target frame size and frameTransform is a CGAffineTransform..
ASSETWriterInput for making Video from UIImages on Iphone Issues http://stackoverflow.com/questions/3983882/assetwriterinput-for-making-video-from-uiimages-on-iphone-issues
How to get the Y component from CMSampleBuffer resulted from the AVCaptureSession? http://stackoverflow.com/questions/4085474/how-to-get-the-y-component-from-cmsamplebuffer-resulted-from-the-avcapturesessio unsigned char rawPixelBase unsigned char CVPixelBufferGetBaseAddress pixelBuffer Do something with the raw pixels here CVPixelBufferUnlockBaseAddress pixelBuffer 0 You could then figure out the location in the frame data for each X Y coordinate on the image and pull the..
AVFoundation + AssetWriter: Generate Movie With Images and Audio http://stackoverflow.com/questions/5640657/avfoundation-assetwriter-generate-movie-with-images-and-audio 0 0 CGImageGetWidth image CGImageGetHeight image image CGColorSpaceRelease rgbColorSpace CGContextRelease context CVPixelBufferUnlockBaseAddress pxbuffer 0 return pxbuffer So can you help me out regarding how to add the audio files and how to make buffers for them..
AVAssetWriter Woes http://stackoverflow.com/questions/6189535/avassetwriter-woes 90 10 CGImageGetWidth image CGImageGetHeight image image CGColorSpaceRelease rgbColorSpace CGContextRelease context CVPixelBufferUnlockBaseAddress pxbuffer 0 return pxbuffer iphone ios avassetwriter share improve this question Well first you need to pass some bufferAttributes.. NULL adaptor.pixelBufferPool pixelBuffer CVPixelBufferLockBaseAddress pixelBuffer 0 ...fill the pixelbuffer here CVPixelBufferUnlockBaseAddress pixelBuffer 0 CMTime frameTime CMTimeMake frameCount int32_t 30 BOOL res adaptor appendPixelBuffer pixelBuffer withPresentationTime..
iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio GL_ELEMENT_ARRAY_BUFFER 0 self context presentRenderbuffer GL_RENDERBUFFER glDeleteTextures 1 videoFrameTexture_ CVPixelBufferUnlockBaseAddress cameraFrame 0 This all works and leads to the correct results. I can see a video preview of 640x480 processed through OpenGL...
iPhone Watermark on recorded Video. http://stackoverflow.com/questions/7205820/iphone-watermark-on-recorded-video CGImageRef newImage CGBitmapContextCreateImage newContext CGContextRelease newContext CGColorSpaceRelease colorSpace CVPixelBufferUnlockBaseAddress imageBuffer 0 CVBufferRelease imageBuffer do not call this return newImage From there you would convert to a UIImage UIImage..
kCVPixelFormatType_420YpCbCr8BiPlanarFullRange frame to UIImage conversion http://stackoverflow.com/questions/8838481/kcvpixelformattype-420ypcbcr8biplanarfullrange-frame-to-uiimage-conversion data in the bitmap graphics context CGImageRef quartzImage CGBitmapContextCreateImage context Unlock the pixel buffer CVPixelBufferUnlockBaseAddress imageBuffer 0 Free up the context and color space CGContextRelease context CGColorSpaceRelease colorSpace Create an image..
iPhone take augmented reality screenshot with AVCaptureVideoPreviewLayer http://stackoverflow.com/questions/8980847/iphone-take-augmented-reality-screenshot-with-avcapturevideopreviewlayer method self performSelectorOnMainThread @selector newCameraImageNotification withObject tempImage waitUntilDone YES CVPixelBufferUnlockBaseAddress imageBuffer 0 update the interface with a UIView that can actually be rendered in a graphics context void newCameraImageNotification..
AVCaptureSession specify resolution and quality of captured images obj-c iphone app http://stackoverflow.com/questions/9312832/avcapturesession-specify-resolution-and-quality-of-captured-images-obj-c-iphone data in the bitmap graphics context CGImageRef quartzImage CGBitmapContextCreateImage context Unlock the pixel buffer CVPixelBufferUnlockBaseAddress imageBuffer 0 Free up the context and color space CGContextRelease context CGColorSpaceRelease colorSpace Create an image..
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 appending pixel buffer at time lld currentTime.value 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..
How can I mute the capture sound in AVFoundation? http://stackoverflow.com/questions/9557081/how-can-i-mute-the-capture-sound-in-avfoundation
Record the drawing as a m4v video file - OpenGL http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl withPresentationTime currentTime NSLog @ Problem appending pixel buffer at time lld currentTime.value else CVPixelBufferUnlockBaseAddress pixel_buffer 0 CVPixelBufferRelease pixel_buffer and then when I'm done with it I finish it off with the following assetWriterVideoInput..
|