Skip to content

AVCaptureSessionPreset

AVCaptureSessionPreset enumeration contains constants that define capture setting presets.

class AVCaptureSessionPreset {
  static const int Low = 0;
  static const int Medium = 1;
  static const int High = 2;
  static const int Photo = 3;
  static const int InputPriority = 4;
  static const int QHD960x540 = 5;
  static const int Hd1280x720 = 6;
  static const int Hd1920x1080 = 7;
  static const int Hd4K3840x2160 = 8;
  static const int IFrame960x540 = 9;
  static const int IFrame1280x720 = 10;
  static const int Qvga320x240 = 11;
  static const int Vga640x480 = 12;
  static const int Cif352x288 = 13;
}
Constant Description
Low Specifies capture settings suitable for output video and audio bit rates suitable for sharing over 3G.
Medium Specifies capture settings suitable for output video and audio bit rates suitable for sharing over WiFi.
High Specifies capture settings suitable for high-quality video and audio output.
Photo Specifies capture settings suitable for high-resolution photo quality output.
InputPriority Specifies that the capture session does not control audio and video output settings.
QHD960x540 Specifies capture settings suitable for quarter HD quality (960 x 540 pixel) video output.
Hd1280x720 Specifies capture settings suitable for 720p quality (1280 x 720 pixel) video output.
Hd1920x1080 Capture settings suitable for 1080p-quality (1920 x 1080 pixels) video output.
Hd4K3840x2160 Capture settings suitable for 2160p-quality (3840 x 2160 pixels) video output.
IFrame960x540 Specifies capture settings to achieve 960 x 540 quality iFrame H.264 video at about 30 Mbits/sec with AAC audio.
IFrame1280x720 Specifies capture settings to achieve 1280 x 720 quality iFrame H.264 video at about 40 Mbits/sec with AAC audio.
Qvga320x240 Specifies capture settings suitable for 320 x 240 pixel video output.
Vga640x480 Specifies capture settings suitable for VGA quality (640 x 480 pixel) video output.
Cif352x288 Specifies capture settings suitable for CIF quality (352 x 288 pixel) video output.

Info

For more information, please see the official Apple documentation.