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