1
當使用AVCaptureSessionPresetMediumAVCaptureSessionPresetMedium圖像大小?
// Create the session
AVCaptureSession * newSession = [[AVCaptureSession alloc] init];
// Configure our capturesession
newSession.sessionPreset = AVCaptureSessionPresetMedium;
有什麼辦法來動態地告訴這將解決爲寬度x高度?很顯然,我可以等到一個委託像
- (void)captureOutput:(AVCaptureOutput *)captureOutput
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
fromConnection:(AVCaptureConnection *)connection
被調用,並確定它在那裏,但我寧願做提前,這樣我可以預先計算一些數值的性能的原因。
這工作完美,謝謝! – Kyle 2011-04-10 17:43:02