概述
aaaaaaaaaaaaaaa!
最近好忙的,都没有写博客!!!
宝宝不开心,宝宝有小情绪了。
最近一直在拍皂(照)片,
用了很多美颜相机啊潮自拍啊这类拍照和美图的app,
所以对摄像头心生爱意~~~
所以准备学习一番,
之前做的项目中只有拍照功能选取图片没有学习到这些,
今天弥补上来。。。
AVCaptureDevice.h,主要用来获取iphone一些关于相机设备的属性。
AVCaptureDevice.h,必须要引入AVFoundation.framework包。
1. 前置和后置摄像头
enum {
AVCaptureDevicePositionBack = 1,
AVCaptureDevicePositionFront = 2
};
typedef NSInteger AVCaptureDevicePosition;
2. 闪光灯开关
enum {
AVCaptureFlashModeOff = 0,
AVCaptureFlashModeOn = 1,
AVCaptureFlashModeAuto = 2
};
typedef NSInteger AVCaptureFlashMode;
3. 手电筒开关
enum {
AVCaptureTorchModelOff = 0,
AVCaptureTorchModelOn = 1,
AVCaptureTorchModeAuto = 2
};
typedef NSInteger AVCaptureTorchMode;
4. 焦距调整
enum {
AVCaptureFocusModelLocked = 0,
AVCaptureFocusModeAutoFocus = 1,
AVCaptureFocusModeContinousAutoFocus = 2
};
typedef NSInteger AVCaptureFocusMode;
5. 曝光量调节
enum {
AVCaptureExposureModeLocked = 0,
AVCaptureExposureModeAutoExpose = 1,
AVCaptureExposureModeContinuousAutoExposure = 2
};
typedef NSInteger AVCaptureExposureMode;
6. 白平衡
enum {
AVCaptureWhiteBalanceModeLocked = 0,
AVCaptureWhiteBalanceModeAutoWhiteBalance = 1,
AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance = 2
};
typedef NSInteger AVCaptureWhiteBalanceMode;
AVCaptureDevice.h,必须要引入AVFoundation.framework包。
1. 前置和后置摄像头
enum {
AVCaptureDevicePositionBack = 1,
AVCaptureDevicePositionFront = 2
};
typedef NSInteger AVCaptureDevicePosition;
2. 闪光灯开关
enum {
AVCaptureFlashModeOff = 0,
AVCaptureFlashModeOn = 1,
AVCaptureFlashModeAuto = 2
};
typedef NSInteger AVCaptureFlashMode;
3. 手电筒开关
enum {
AVCaptureTorchModelOff = 0,
AVCaptureTorchModelOn = 1,
AVCaptureTorchModeAuto = 2
};
typedef NSInteger AVCaptureTorchMode;
4. 焦距调整
enum {
AVCaptureFocusModelLocked = 0,
AVCaptureFocusModeAutoFocus = 1,
AVCaptureFocusModeContinousAutoFocus = 2
};
typedef NSInteger AVCaptureFocusMode;
5. 曝光量调节
enum {
AVCaptureExposureModeLocked = 0,
AVCaptureExposureModeAutoExpose = 1,
AVCaptureExposureModeContinuousAutoExposure = 2
};
typedef NSInteger AVCaptureExposureMode;
6. 白平衡
enum {
AVCaptureWhiteBalanceModeLocked = 0,
AVCaptureWhiteBalanceModeAutoWhiteBalance = 1,
AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance = 2
};
typedef NSInteger AVCaptureWhiteBalanceMode;
最后
以上就是激情人生为你收集整理的iOS AVCaptureDevice的几个属性的全部内容,希望文章能够帮你解决iOS AVCaptureDevice的几个属性所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复