¡@

Home 

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

iphone Programming Glossary: cvpixelbuffergetbaseaddress

OpenGL ES 2d rendering into image

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

the RGBA of glReadPixels using something like CVPixelBufferLockBaseAddress renderTarget 0 _rawBytesForImage GLubyte CVPixelBufferGetBaseAddress renderTarget Do something with the bytes CVPixelBufferUnlockBaseAddress renderTarget 0 However if you just want to reuse..

iOS: Get pixel-by-pixel data from camera

http://stackoverflow.com/questions/10865100/ios-get-pixel-by-pixel-data-from-camera

That will have a CVImageBufferRef within it that you access via CMSampleBufferGetImageBuffer . Using CVPixelBufferGetBaseAddress on that pixel buffer will return the base address of the byte array for the raw pixel data representing your camera frame...

how to convert a CVImageBufferRef to UIImage

http://stackoverflow.com/questions/3152259/how-to-convert-a-cvimagebufferref-to-uiimage

image buffer CVPixelBufferLockBaseAddress imageBuffer 0 Get information about the image uint8_t baseAddress uint8_t CVPixelBufferGetBaseAddress imageBuffer size_t bytesPerRow CVPixelBufferGetBytesPerRow imageBuffer size_t width CVPixelBufferGetWidth imageBuffer size_t..

iPhone: AVCaptureSession capture output crashing (AVCaptureVideoDataOutput)

http://stackoverflow.com/questions/3331644/iphone-avcapturesession-capture-output-crashing-avcapturevideodataoutput

CMSampleBufferGetImageBuffer sampleBuffer CVPixelBufferLockBaseAddress imageBuffer 0 uint8_t baseAddress uint8_t CVPixelBufferGetBaseAddress imageBuffer size_t bytesPerRow CVPixelBufferGetBytesPerRow imageBuffer size_t width CVPixelBufferGetWidth imageBuffer size_t..

How do I export UIImage array as a movie?

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

pxbuffer NSParameterAssert status kCVReturnSuccess pxbuffer NULL CVPixelBufferLockBaseAddress pxbuffer 0 void pxdata CVPixelBufferGetBaseAddress pxbuffer NSParameterAssert pxdata NULL CGColorSpaceRef rgbColorSpace CGColorSpaceCreateDeviceRGB CGContextRef context CGBitmapContextCreate..

ASSETWriterInput for making Video from UIImages on Iphone Issues

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

warning. NSParameterAssert status kCVReturnSuccess pxbuffer NULL CVPixelBufferLockBaseAddress pxbuffer 0 void pxdata CVPixelBufferGetBaseAddress pxbuffer NSParameterAssert pxdata NULL CGColorSpaceRef rgbColorSpace CGColorSpaceCreateDeviceRGB CGContextRef context CGBitmapContextCreate..

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

sampleBuffer CVPixelBufferLockBaseAddress pixelBuffer 0 unsigned char rawPixelBase unsigned char CVPixelBufferGetBaseAddress pixelBuffer Do something with the raw pixels here CVPixelBufferUnlockBaseAddress pixelBuffer 0 You could then figure out..

AVFoundation + AssetWriter: Generate Movie With Images and Audio

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

pxbuffer NSParameterAssert status kCVReturnSuccess pxbuffer NULL CVPixelBufferLockBaseAddress pxbuffer 0 void pxdata CVPixelBufferGetBaseAddress pxbuffer NSParameterAssert pxdata NULL CGColorSpaceRef rgbColorSpace CGColorSpaceCreateDeviceRGB CGContextRef context CGBitmapContextCreate..

AVAssetWriter Woes

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

pxbuffer NSParameterAssert status kCVReturnSuccess pxbuffer NULL CVPixelBufferLockBaseAddress pxbuffer 0 void pxdata CVPixelBufferGetBaseAddress pxbuffer NSParameterAssert pxdata NULL CGColorSpaceRef rgbColorSpace CGColorSpaceCreateDeviceRGB CGContextRef context CGBitmapContextCreate..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio

GL_CLAMP_TO_EDGE glTexImage2D GL_TEXTURE_2D 0 GL_RGBA bufferWidth bufferHeight 0 GL_BGRA GL_UNSIGNED_BYTE CVPixelBufferGetBaseAddress cameraFrame glBindBuffer GL_ARRAY_BUFFER self vertexBuffer glBindBuffer GL_ELEMENT_ARRAY_BUFFER self indexBuffer glDrawElements.. sending it to openGL CGColorSpaceRef colorSpace CGColorSpaceCreateDeviceRGB CGContextRef context CGBitmapContextCreate CVPixelBufferGetBaseAddress cameraFrame bufferWidth bufferHeight 8 bytesPerRow colorSpace kCGBitmapByteOrder32Little kCGImageAlphaPremultipliedFirst.. this line doesn't understand glTexImage2D GL_TEXTURE_2D 0 GL_RGBA bufferWidth bufferHeight 0 GL_BGRA GL_UNSIGNED_BYTE CVPixelBufferGetBaseAddress cameraFrame My hunch was that changing the external format from GL_BGRA to something else would help but it doesn't... and..

kCVPixelFormatType_420YpCbCr8BiPlanarFullRange frame to UIImage conversion

http://stackoverflow.com/questions/8838481/kcvpixelformattype-420ypcbcr8biplanarfullrange-frame-to-uiimage-conversion

CVPixelBufferLockBaseAddress imageBuffer 0 Get the number of bytes per row for the pixel buffer void baseAddress CVPixelBufferGetBaseAddress imageBuffer Get the number of bytes per row for the pixel buffer size_t bytesPerRow CVPixelBufferGetBytesPerRow imageBuffer.. 0 size_t width CVPixelBufferGetWidth imageBuffer size_t height CVPixelBufferGetHeight imageBuffer uint8_t baseAddress CVPixelBufferGetBaseAddress imageBuffer CVPlanarPixelBufferInfo_YCbCrBiPlanar bufferInfo CVPlanarPixelBufferInfo_YCbCrBiPlanar baseAddress NSUInteger..

iPhone take augmented reality screenshot with AVCaptureVideoPreviewLayer

http://stackoverflow.com/questions/8980847/iphone-take-augmented-reality-screenshot-with-avcapturevideopreviewlayer

imageBuffer kCVPixelFormatType_32BGRA return CVPixelBufferLockBaseAddress imageBuffer 0 uint8_t baseAddress uint8_t CVPixelBufferGetBaseAddress imageBuffer size_t bytesPerRow CVPixelBufferGetBytesPerRow imageBuffer size_t width CVPixelBufferGetWidth imageBuffer size_t..

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

CVPixelBufferLockBaseAddress imageBuffer 0 Get the number of bytes per row for the pixel buffer void baseAddress CVPixelBufferGetBaseAddress imageBuffer Get the number of bytes per row for the pixel buffer size_t bytesPerRow CVPixelBufferGetBytesPerRow imageBuffer..

How can I mute the capture sound in AVFoundation?

http://stackoverflow.com/questions/9557081/how-can-i-mute-the-capture-sound-in-avfoundation

image buffer CVPixelBufferLockBaseAddress imageBuffer 0 Get information about the image uint8_t baseAddress uint8_t CVPixelBufferGetBaseAddress imageBuffer size_t bytesPerRow CVPixelBufferGetBytesPerRow imageBuffer size_t width CVPixelBufferGetWidth imageBuffer size_t..

Record the drawing as a m4v video file - OpenGL

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

NULL status kCVReturnSuccess return else CVPixelBufferLockBaseAddress pixel_buffer 0 GLubyte pixelBufferData GLubyte CVPixelBufferGetBaseAddress pixel_buffer glReadPixels 0 0 videoSize.width videoSize.height GL_RGBA GL_UNSIGNED_BYTE pixelBufferData May need to add..