1
AVCaptureSessionPresetMedium 이미지 크기?
// Create the session
AVCaptureSession * newSession = [[AVCaptureSession alloc] init];
// Configure our capturesession
newSession.sessionPreset = AVCaptureSessionPresetMedium;
동적으로는 너비 x 높이로 해결할 것을 알 수있는 방법이 있습니까 AVCaptureSessionPresetMedium
를 사용하고 계십니까? 분명히 나는 호출되는- (void)captureOutput:(AVCaptureOutput *)captureOutput
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
fromConnection:(AVCaptureConnection *)connection
같은 위임 될 때까지 기다릴 수 거기를 결정하지만 성능상의 이유로 일부 값을 미리 계산 할 수 있도록 차라리 사전에 그것을 할 것입니다.
완벽하게 작동합니다. 감사합니다. – Kyle