Avcapturedevice iOS Camera properties

Source: Internet
Author: User

AVCaptureDevice.h, mainly used to get the iphone some properties about camera devices.

AVCaptureDevice.h, the Avfoundation.framework package must be introduced.

1. Front-and rear-facing cameras
Enum {
avcapturedevicepositionback = 1,
Avcapturedevicepositionfront = 2
};
typedef nsinteger Avcapturedeviceposition;

2. Flash Switch
Enum {
avcaptureflashmodeoff = 0,
Avcaptureflashmodeon = 1,
Avcaptureflashmodeauto = 2
};
typedef nsinteger Avcaptureflashmode;

3. Flashlight Switch
Enum {
avcapturetorchmodeloff = 0,
Avcapturetorchmodelon = 1,
Avcapturetorchmodeauto = 2
};
typedef nsinteger Avcapturetorchmode;

4. Focal length adjustment
Enum {
avcapturefocusmodellocked = 0,
Avcapturefocusmodeautofocus = 1,
Avcapturefocusmodecontinousautofocus = 2
};
typedef nsinteger Avcapturefocusmode;

5. Adjustment of exposure Volume
Enum {
avcaptureexposuremodelocked = 0,
avcaptureexposuremodeautoexpose = 1,
avcaptureexposuremodecontinuousautoexposure = 2
};
typedef nsinteger Avcaptureexposuremode;

6. White balance
Enum {
avcapturewhitebalancemodelocked = 0,
avcapturewhitebalancemodeautowhitebalance = 1,
avcapturewhitebalancemodecontinuousautowhitebalance = 2
};
typedef nsinteger Avcapturewhitebalancemode;

Avcapturedevice iOS Camera properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.