カメラ画質の設定に必要になる、sessionPreset値は何があるか?
一覧です。
AVCaptureSession Class Reference
NSString *const AVCaptureSessionPresetPhoto; NSString *const AVCaptureSessionPresetHigh; NSString *const AVCaptureSessionPresetMedium; NSString *const AVCaptureSessionPresetLow; NSString *const AVCaptureSessionPreset352x288; NSString *const AVCaptureSessionPreset640x480; NSString *const AVCaptureSessionPreset1280x720; NSString *const AVCaptureSessionPreset1920x1080; NSString *const AVCaptureSessionPresetiFrame960x540; NSString *const AVCaptureSessionPresetiFrame1280x720; NSString *const AVCaptureSessionPresetInputPriority;
各項目の説明に関しては、以下の通り。原文コピペ。
AVCaptureSessionPresetPhoto
- Specifies capture settings suitable for high resolution photo quality output.
AVCaptureSessionPresetHigh
- Specifies capture settings suitable for high quality video and audio output.
AVCaptureSessionPresetMedium
- Specifies capture settings suitable for output video and audio bitrates suitable for sharing over WiFi.
AVCaptureSessionPresetLow
- Specifies capture settings suitable for output video and audio bitrates suitable for sharing over 3G.
AVCaptureSessionPreset352x288
- Specifies capture settings suitable for CIF quality (352x288 pixel) video output.
AVCaptureSessionPreset640x480
- Specifies capture settings suitable for VGA quality (640x480 pixel) video output.
AVCaptureSessionPreset1280x720
- Specifies capture settings suitable for 720p quality (1280x720 pixel) video output.
AVCaptureSessionPreset1920x1080
- Specifies capture settings suitable for 1080p quality (1920x1080 pixel) video output.
AVCaptureSessionPresetiFrame960x540
- Specifies capture settings to achieve 960x540 quality iFrame H.264 video at about 30 Mbits/sec with AAC audio.
QuickTime movies captured in iFrame format are optimal for editing applications. AVCaptureSessionPresetiFrame1280x720
- Specifies capture settings to achieve 1280x720 quality iFrame H.264 video at about 40 Mbits/sec with AAC audio.
QuickTime movies captured in iFrame format are optimal for editing applications. AVCaptureSessionPresetInputPriority
- Specifies that the capture session does not control audio and video output settings.
To enable capture settings not supported by any session presets (such as high frame rate), change the value of theactiveFormat
property on the appropriate capture device. When you change the device’s format, the session preset automatically changes to this value, indicating that theAVCaptureSession
object has relinquished responsibility for configuring its inputs and outputs. (Instead, the capture device’s active format dictates the quality of service level provided at the outputs.) To return to automatic configuration, use the session’ssessionPreset
property to choose another preset.
→ 訳した 。AVCaptureSessionPresetInputPriorityの機能について
0 件のコメント:
コメントを投稿