Macos 降低captureOutput:didOutputSampleBuffer:fromConnection中的分辨率:

Macos 降低captureOutput:didOutputSampleBuffer:fromConnection中的分辨率:,macos,avfoundation,webcam,avcapturesession,Macos,Avfoundation,Webcam,Avcapturesession,我尝试使用更小的分辨率来访问网络摄像头视频源,当涉及到预览时,我需要进行快速编辑。当前,当从样本缓冲区输出图像时,分辨率为1600x1200,这对于我想用它做的事情来说太高了 当设置会话时,我使用它接受的这个,但是不管这是什么,似乎没有进行更改 _session = [[AVCaptureSession alloc] init]; if ([_session canSetSessionPreset:AVCaptureSessionPreset320x240]) { [_session s

我尝试使用更小的分辨率来访问网络摄像头视频源,当涉及到预览时,我需要进行快速编辑。当前,当从样本缓冲区输出图像时,分辨率为1600x1200,这对于我想用它做的事情来说太高了

当设置会话时,我使用它接受的这个,但是不管这是什么,似乎没有进行更改

_session = [[AVCaptureSession alloc] init];
if ([_session canSetSessionPreset:AVCaptureSessionPreset320x240])
{
    [_session setSessionPreset:AVCaptureSessionPreset320x240];
}
还有一件事,我还需要网络摄像头使用
captureStillImageAsynchronouslyFromConnection:
,拍摄全尺寸图像,目前还可以