¡@

Home 

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

iphone Programming Glossary: cvimagebufferref

iOS: Get pixel-by-pixel data from camera

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

fromConnection delegate method where one of the parameters will be a CMSampleBufferRef. That will have a CVImageBufferRef within it that you access via CMSampleBufferGetImageBuffer . Using CVPixelBufferGetBaseAddress on that pixel buffer will..

Upload live streaming video from iPhone like Ustream or Qik

http://stackoverflow.com/questions/1960782/upload-live-streaming-video-from-iphone-like-ustream-or-qik

captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CGSize imageSize CVImageBufferGetEncodedSize imageBuffer also in the..

how to convert a CVImageBufferRef to UIImage

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

to convert a CVImageBufferRef to UIImage I amy trying to capture video from a camera. i have gotten the captureOutput didOutputSampleBuffer callback.. the captureOutput didOutputSampleBuffer callback to trigger and it gives me a sample buffer that i then convert to a CVImageBufferRef. i then attempt to convert that image to a UIImage that i can then view in my app. void captureOutput AVCaptureOutput captureOutput.. captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer Lock the image buffer CVPixelBufferLockBaseAddress imageBuffer 0 Get..

UIImage created from CMSampleBufferRef not displayed in UIImageView?

http://stackoverflow.com/questions/3305862/uiimage-created-from-cmsamplebufferref-not-displayed-in-uiimageview

cgImage CGImageRef imageFromSampleBuffer CMSampleBufferRef sampleBuffer Create a CGImageRef from sample buffer data CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CVPixelBufferLockBaseAddress imageBuffer 0 Lock the image buffer uint8_t..

iPhone: AVCaptureSession capture output crashing (AVCaptureVideoDataOutput)

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

CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CONVERT CMSAMPLEBUFFER INTO A CGIMAGE CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CVPixelBufferLockBaseAddress imageBuffer 0 uint8_t baseAddress uint8_t..

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

captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef pixelBuffer CMSampleBufferGetImageBuffer sampleBuffer CVPixelBufferLockBaseAddress pixelBuffer 0 unsigned char rawPixelBase..

Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time?

http://stackoverflow.com/questions/4944083/can-use-avcapturevideodataoutput-and-avcapturemoviefileoutput-at-the-same-time

captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer a very dense way to keep track of the time at which this frame occurs..

Uploading live streaming video from iPhone [duplicate]

http://stackoverflow.com/questions/5062266/uploading-live-streaming-video-from-iphone

captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CGSize imageSize CVImageBufferGetEncodedSize imageBuffer also in the..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

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

captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef pixelBuffer CMSampleBufferGetImageBuffer sampleBuffer self.delegate processNewCameraFrame pixelBuffer 6 Then the delegate.. self.delegate processNewCameraFrame pixelBuffer 6 Then the delegate processes draws them void processNewCameraFrame CVImageBufferRef cameraFrame CVPixelBufferLockBaseAddress cameraFrame 0 int bufferHeight CVPixelBufferGetHeight cameraFrame int bufferWidth.. compensate for this but OpenGL ES cannot more info here openGL SubTexturing So here is how I'm doing it in OpenGL ES CVImageBufferRef pixelBuffer pixelBuffer containing the raw image data is passed in ... glActiveTexture GL_TEXTURE0 glBindTexture GL_TEXTURE_2D..

iPhone Watermark on recorded Video.

http://stackoverflow.com/questions/7205820/iphone-watermark-on-recorded-video

this code CGImageRef imageFromSampleBuffer CMSampleBufferRef sampleBuffer Create a CGImageRef from sample buffer data CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CVPixelBufferLockBaseAddress imageBuffer 0 Lock the image buffer uint8_t..

kCVPixelFormatType_420YpCbCr8BiPlanarFullRange frame to UIImage conversion

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

imageFromSampleBuffer CMSampleBufferRef sampleBuffer Get a CMSampleBuffer's Core Video image buffer for the media data CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer Lock the base address of the pixel buffer CVPixelBufferLockBaseAddress..

iPhone take augmented reality screenshot with AVCaptureVideoPreviewLayer

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

self performImageCaptureFrom sampleBuffer Create a UIImage void performImageCaptureFrom CMSampleBufferRef sampleBuffer CVImageBufferRef imageBuffer if CMSampleBufferGetNumSamples sampleBuffer 1 return if CMSampleBufferIsValid sampleBuffer return if CMSampleBufferDataIsReady..

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

sampleBuffer NSLog @ imageFromSampleBuffer called Get a CMSampleBuffer's Core Video image buffer for the media data CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer Lock the base address of the pixel buffer CVPixelBufferLockBaseAddress..

How can I mute the capture sound in AVFoundation?

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

an autorelease pool for the thread we are in if captureImageNow NSAutoreleasePool pool NSAutoreleasePool alloc init CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer Lock the image buffer CVPixelBufferLockBaseAddress imageBuffer 0 Get.. width CVPixelBufferGetWidth imageBuffer size_t height CVPixelBufferGetHeight imageBuffer Create a CGImageRef from the CVImageBufferRef CGColorSpaceRef colorSpace CGColorSpaceCreateDeviceRGB CGContextRef newContext CGBitmapContextCreate baseAddress width height..