AVCaptureSessionPresetMediumを使用する場合
// 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
呼び出されてそこで決定されますが、パフォーマンス上の理由からいくつかの値を事前に計算できるように、事前に実行したいと思います。