¡@

Home 

2014/10/15 ¤U¤È 10:04:26

iphone Programming Glossary: avcapturedeviceinput

iOS: Get pixel-by-pixel data from camera

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

video or still camera. You need to set up an AVCaptureSession with an appropriate AVCaptureDevice and a corresponding AVCaptureDeviceInput and AVCaptureDeviceOutput AVCaptureVideoDataOutput or AVCaptureStillImageOutput . Apple has some examples of this process..

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

device NSError deviceError AVCaptureDevice cameraDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo AVCaptureDeviceInput inputDevice AVCaptureDeviceInput deviceInputWithDevice cameraDevice error deviceError make output device AVCaptureVideoDataOutput.. cameraDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo AVCaptureDeviceInput inputDevice AVCaptureDeviceInput deviceInputWithDevice cameraDevice error deviceError make output device AVCaptureVideoDataOutput outputDevice AVCaptureVideoDataOutput..

Turn on torch/flash on iPhone 4

http://stackoverflow.com/questions/3190034/turn-on-torch-flash-on-iphone-4

init AVCaptureDevice videoCaptureDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo NSError error nil AVCaptureDeviceInput videoInput AVCaptureDeviceInput deviceInputWithDevice videoCaptureDevice error error if videoInput captureSession addInput.. AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo NSError error nil AVCaptureDeviceInput videoInput AVCaptureDeviceInput deviceInputWithDevice videoCaptureDevice error error if videoInput captureSession addInput videoInput AVCaptureVideoDataOutput..

How to properly release an AVCaptureSession

http://stackoverflow.com/questions/3741121/how-to-properly-release-an-avcapturesession

AVCaptureDevice camera AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo session AVCaptureSession alloc init AVCaptureDeviceInput input AVCaptureDeviceInput deviceInputWithDevice camera error error session addInput input AVCaptureVideoDataOutput output.. defaultDeviceWithMediaType AVMediaTypeVideo session AVCaptureSession alloc init AVCaptureDeviceInput input AVCaptureDeviceInput deviceInputWithDevice camera error error session addInput input AVCaptureVideoDataOutput output AVCaptureVideoDataOutput..

iPhone SDK 4 AVFoundation - How to use captureStillImageAsynchronouslyFromConnection correctly?

http://stackoverflow.com/questions/3847140/iphone-sdk-4-avfoundation-how-to-use-capturestillimageasynchronouslyfromconnec

0 completionHandler ^ CMSampleBufferRef imageDataSampleBuffer NSError error NSLog @ inside void initCapture AVCaptureDeviceInput captureInput AVCaptureDeviceInput deviceInputWithDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo .. imageDataSampleBuffer NSError error NSLog @ inside void initCapture AVCaptureDeviceInput captureInput AVCaptureDeviceInput deviceInputWithDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo error nil AVCaptureVideoDataOutput..

This code to write video+audio through AVAssetWriter and AVAssetWriterInputs is not working. Why?

http://stackoverflow.com/questions/4149963/this-code-to-write-videoaudio-through-avassetwriter-and-avassetwriterinputs-is

defaultDeviceWithMediaType AVMediaTypeVideo Create a device input with the device and add it to the session. AVCaptureDeviceInput videoInput AVCaptureDeviceInput deviceInputWithDevice videoDevice error error Setup the video output _videoOutput AVCaptureVideoDataOutput.. AVMediaTypeVideo Create a device input with the device and add it to the session. AVCaptureDeviceInput videoInput AVCaptureDeviceInput deviceInputWithDevice videoDevice error error Setup the video output _videoOutput AVCaptureVideoDataOutput alloc init _videoOutput.alwaysDiscardsLateVideoFrames.. Setup the audio input AVCaptureDevice audioDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeAudio AVCaptureDeviceInput audioInput AVCaptureDeviceInput deviceInputWithDevice audioDevice error error Setup the audio output _audioOutput AVCaptureAudioDataOutput..

Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time?

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

captureSession alloc and init set your preferred preset etc AVCaptureDevice captureDevice default for video probably AVCaptureDeviceInput deviceInput input with device as above and attach it to the session AVCaptureVideoDataOutput output output for 32BGRA..

Uploading live streaming video from iPhone [duplicate]

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

device NSError deviceError AVCaptureDevice cameraDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo AVCaptureDeviceInput inputDevice AVCaptureDeviceInput deviceInputWithDevice cameraDevice error deviceError make output device AVCaptureVideoDataOutput.. cameraDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo AVCaptureDeviceInput inputDevice AVCaptureDeviceInput deviceInputWithDevice cameraDevice error deviceError make output device AVCaptureVideoDataOutput outputDevice AVCaptureVideoDataOutput..

iOS take picture

http://stackoverflow.com/questions/5237941/ios-take-picture

to your own custom controls. Two available in iOS 4.0 is to configure an AVCaptureSession providing it with an AVCaptureDeviceInput using the appropriate camera device and AVCaptureStillImageOutput . The first approach is much simpler and works on more..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

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

captureSession AVCaptureSession alloc init captureSession setSessionPreset AVCaptureSessionPreset640x480 2 Hook up an AVCaptureDeviceInput using the back facing camera. videoInput AVCaptureDeviceInput alloc initWithDevice backFacingCamera error error autorelease.. AVCaptureSessionPreset640x480 2 Hook up an AVCaptureDeviceInput using the back facing camera. videoInput AVCaptureDeviceInput alloc initWithDevice backFacingCamera error error autorelease captureSession addInput videoInput 3 Hook up an AVCaptureStillImageOutput..

Having trouble creating UIImage from CIImage in iOS5

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

self.videoDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo self.videoInput AVCaptureDeviceInput deviceInputWithDevice videoDevice error nil self.frameOutput AVCaptureVideoDataOutput alloc init self.frameOutput.videoSettings..