¡@

Home 

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

iphone Programming Glossary: cmsamplebuffergetimagebuffer

iOS: Get pixel-by-pixel data from camera

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

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 return the base address of the byte array for the raw pixel..

Convert UIImage to CMSampleBufferRef

http://stackoverflow.com/questions/16475737/convert-uiimage-to-cmsamplebufferref

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

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

CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CGSize imageSize CVImageBufferGetEncodedSize imageBuffer also in the 'mediaSpecific' dict of the sampleBuffer..

how to convert a CVImageBufferRef to UIImage

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

CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer Lock the image buffer CVPixelBufferLockBaseAddress imageBuffer 0 Get information about the image uint8_t baseAddress..

UIImage created from CMSampleBufferRef not displayed in UIImageView?

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

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

iPhone: AVCaptureSession capture output crashing (AVCaptureVideoDataOutput)

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

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

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

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

Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time?

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

CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer a very dense way to keep track of the time at which this frame occurs relative to the output stream but it's..

Uploading live streaming video from iPhone [duplicate]

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

CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CGSize imageSize CVImageBufferGetEncodedSize imageBuffer also in the 'mediaSpecific' dict of the sampleBuffer..

Bump Mapping on top of iPhone Camera

http://stackoverflow.com/questions/5273946/bump-mapping-on-top-of-iphone-camera

didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection You can use CMSampleBufferGetImageBuffer to get a CVImageBuffer and from that use a combination of CVPixelBufferLockBaseAddress CVPixelBufferGetBaseAddress CVPixelBufferGetBytesPerRow..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

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

CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef pixelBuffer CMSampleBufferGetImageBuffer sampleBuffer self.delegate processNewCameraFrame pixelBuffer 6 Then the delegate processes draws them void processNewCameraFrame..

iPhone Watermark on recorded Video.

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

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

Having trouble creating UIImage from CIImage in iOS5

http://stackoverflow.com/questions/7788438/having-trouble-creating-uiimage-from-ciimage-in-ios5

didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVPixelBufferRef pb CMSampleBufferGetImageBuffer sampleBuffer CIImage ciImage CIImage imageWithCVPixelBuffer pb self.imageView.image UIImage imageWithCIImage ciImage I am..

iOS - Scale and crop CMSampleBufferRef/CVImageBufferRef

http://stackoverflow.com/questions/8493583/ios-scale-and-crop-cmsamplebufferref-cvimagebufferref

share improve this question You might consider using CoreImage 5.0 . CIImage ciImage CIImage imageWithCVPixelBuffer CMSampleBufferGetImageBuffer sampleBuffer options NSDictionary dictionaryWithObjectsAndKeys NSNull null kCIImageColorSpace nil ciImage ciImage imageByApplyingTransform..

Crop and Scale CGContext - iOS

http://stackoverflow.com/questions/8501149/crop-and-scale-cgcontext-ios

of the CGContext using the following code void modifyImage CMSampleBufferRef sampleBuffer CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer Lock the image buffer CVPixelBufferLockBaseAddress imageBuffer 0 Get information about the image uint8_t baseAddress..

kCVPixelFormatType_420YpCbCr8BiPlanarFullRange frame to UIImage conversion

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

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 imageBuffer 0 Get the number of bytes..

iPhone take augmented reality screenshot with AVCaptureVideoPreviewLayer

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

1 return if CMSampleBufferIsValid sampleBuffer return if CMSampleBufferDataIsReady sampleBuffer return imageBuffer CMSampleBufferGetImageBuffer sampleBuffer if CVPixelBufferGetPixelFormatType imageBuffer kCVPixelFormatType_32BGRA return CVPixelBufferLockBaseAddress..

AVCaptureSession only got video buffer

http://stackoverflow.com/questions/9257052/avcapturesession-only-got-video-buffer

NSLog @ Video Buffer capped if videoWriterInput isReadyForMoreMediaData break @try CVImageBufferRef buffer CMSampleBufferGetImageBuffer sampleBuffer CMTime frameTime CMSampleBufferGetPresentationTimeStamp sampleBuffer if buffer if videoWriterInput isReadyForMoreMediaData..

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

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 imageBuffer 0 Get the number of bytes..

How can I mute the capture sound in AVFoundation?

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

thread we are in if captureImageNow NSAutoreleasePool pool NSAutoreleasePool alloc init CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer Lock the image buffer CVPixelBufferLockBaseAddress imageBuffer 0 Get information about the image uint8_t baseAddress..