首页 > 其他 > 详细

AVCaptureDevice的几个属性

时间:2015-04-21 12:59:47      阅读:133      评论:0      收藏:0      [点我收藏+]

本文转载自:http://laiguowei2004.blog.163.com/blog/static/36829000201281971136645/

 

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的几个属性

原文:http://www.cnblogs.com/NINIiOS/p/4443980.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!