¡@

Home 

2014/10/15 ¤U¤È 10:14:19

iphone Programming Glossary: sourcepixelbufferattributesdictionary

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

AVAssetWriterInput assetWriterInputWithMediaType AVMediaTypeVideo outputSettings videoSettings NSDictionary sourcePixelBufferAttributesDictionary NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kCVPixelFormatType_32ARGB kCVPixelBufferPixelFormatTypeKey.. assetWriterInputPixelBufferAdaptorWithAssetWriterInput writerInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary NSParameterAssert writerInput NSParameterAssert videoWriter canAddInput writerInput if videoWriter canAddInput writerInput..

AVCaptureSession only got video buffer

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

addInput videoWriterInput videoWriter addInput audioWriterInput The code of starting the capture NSDictionary sourcePixelBufferAttributesDictionary NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kCVPixelFormatType_32ARGB NSNumber numberWithInt.. assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary retain NSLog @ Adaptor init finished. Going to start capture Session... We start the capture self.captureSession startRunning..

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

input and configuring a pixel buffer input. The following code is used to set up the pixel buffer input NSDictionary sourcePixelBufferAttributesDictionary NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kCVPixelFormatType_32BGRA kCVPixelBufferPixelFormatTypeKey.. assetWriterInputPixelBufferAdaptorWithAssetWriterInput assetWriterVideoInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary Once I have that I configure the FBO that I'll be rendering my video frames to using the following code if GPUImageOpenGLESContext..

Record the drawing as a m4v video file - OpenGL

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

I use a color swizzling shader to line up glReadPixels' normal RGBA output with the movie input's BGRA. NSDictionary sourcePixelBufferAttributesDictionary NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kCVPixelFormatType_32BGRA kCVPixelBufferPixelFormatTypeKey.. assetWriterInputPixelBufferAdaptorWithAssetWriterInput assetWriterVideoInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary assetWriter addInput assetWriterVideoInput and begin recording with the following startTime NSDate date assetWriter startWriting..