2014年4月14日月曜日

AVCaptureDeviceのactiveFormatについて


前回AVCaptureSessionPresetInputPriorityを調べてたので『activeFormat』てのが何度か出てきたのでそっちも調べた。

要するに、高フレームレート撮影(iPhone5sの120fps撮影とか)したい場合は
activeformatを設定してsessionPresetにAVCaptureSessionPresetInputPriorityを設定し、
それ以外はactiveFormat関係ないんじゃないかな。


AVCaptureDeviceのactiveFormatについて

【原文】
You use this property to get or set the currently active device format.
On iOS, you should generally set the session preset on an AVCaptureSession object to configure image or video capture and use the shared AVAudioSession object to configure audio capture.
When using a session preset, the session automatically controls the capture device’s active format.
However, some specialized capture options (such as high frame rate) are not available in session presets.
For these options, you can set the capture device’s active format instead.
Doing so changes the associated capture session’s preset to AVCaptureSessionPresetInputPriority.

【超・雑訳】
現在のアクティブデバイスフォーマットとしてgetとかsetとかできるよ!
iOSでは一般的に、画像とか 動画とかのキャプチャの設定にAVCaptureSessionのsessionPresetを使うよ!
sessionPresetを使うとき、自動的にセッションはキャプチャデバイスのactiveFormatをコントロールするよ!
でも、いくつかの特別なキャプチャオプション(高フレームレートとか)はsessonPresetで利用できないよ!
それらのオプションでは、お前はキャプチャデバイスのactiveFormatをかわりに設定できるよ!
で関連したキャプチャセッションのプリセットはAVCaptureSessionPresetInputPriorityで設定できるよ!

 ・・・みたいな感じ?

0 件のコメント:

コメントを投稿