gpt4 book ai didi

iOS AVFoundation - 4K 视频

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:39:53 25 4
gpt4 key购买 nike

好的,有一个相机应用程序,已经能够像这样有条件地预先设置分辨率:

        if ([_captureSession canSetSessionPreset:AVCaptureSessionPreset1920x1080]) {
_captureSession.sessionPreset = AVCaptureSessionPreset1920x1080;
} else if ([_captureSession canSetSessionPreset:AVCaptureSessionPreset1280x720]) {
_captureSession.sessionPreset = AVCaptureSessionPreset1280x720;
} else {
_captureSession.sessionPreset = AVCaptureSessionPresetPhoto;
}

感谢 iPhone 6S,我知道我们可以获得 4K 视频。但是,似乎不是该分辨率的预设。 AVCaptureSessionPresetPhoto else 语句会默认为那个,还是有我可以为该分辨率设置的常量?

最佳答案

您想使用 AVCaptureSessionPreset3840x2160

它是新的 4K AVCaptureSessionPreset,似乎尚未在线记录,但如果您运行最新的 Xcode beta,它将显示在您的自动完成中。

关于iOS AVFoundation - 4K 视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32931213/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com