2021-03-03 13:46:07 +01:00
|
|
|
---
|
|
|
|
id: "camerapreset"
|
|
|
|
title: "Module: CameraPreset"
|
|
|
|
sidebar_label: "CameraPreset"
|
|
|
|
custom_edit_url: null
|
|
|
|
hide_title: true
|
|
|
|
---
|
|
|
|
|
|
|
|
# Module: CameraPreset
|
|
|
|
|
|
|
|
## Type aliases
|
|
|
|
|
|
|
|
### CameraPreset
|
|
|
|
|
|
|
|
Ƭ **CameraPreset**: *cif-352x288* \| *hd-1280x720* \| *hd-1920x1080* \| *hd-3840x2160* \| *high* \| *iframe-1280x720* \| *iframe-960x540* \| *input-priority* \| *low* \| *medium* \| *photo* \| *vga-640x480*
|
|
|
|
|
|
|
|
Indicates the quality level or bit rate of the output.
|
|
|
|
|
|
|
|
* `"cif-352x288"`: Specifies capture settings suitable for CIF quality (352 x 288 pixel) video output
|
|
|
|
* `"hd-1280x720"`: Specifies capture settings suitable for 720p quality (1280 x 720 pixel) video output.
|
|
|
|
* `"hd-1920x1080"`: Capture settings suitable for 1080p-quality (1920 x 1080 pixels) video output.
|
|
|
|
* `"hd-3840x2160"`: Capture settings suitable for 2160p-quality (3840 x 2160 pixels, "4k") video output.
|
|
|
|
* `"high"`: Specifies capture settings suitable for high-quality video and audio output.
|
|
|
|
* `"iframe-1280x720"`: Specifies capture settings to achieve 1280 x 720 quality iFrame H.264 video at about 40 Mbits/sec with AAC audio.
|
|
|
|
* `"iframe-960x540"`: Specifies capture settings to achieve 960 x 540 quality iFrame H.264 video at about 30 Mbits/sec with AAC audio.
|
|
|
|
* `"input-priority"`: Specifies that the capture session does not control audio and video output settings.
|
|
|
|
* `"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.
|
|
|
|
* `"photo"`: Specifies capture settings suitable for high-resolution photo quality output.
|
|
|
|
* `"vga-640x480"`: Specifies capture settings suitable for VGA quality (640 x 480 pixel) video output.
|
|
|
|
|
2021-03-03 14:04:46 +01:00
|
|
|
Defined in: [src/CameraPreset.ts:17](https://github.com/cuvent/react-native-vision-camera/blob/c314255/src/CameraPreset.ts#L17)
|