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