zoukankan      html  css  js  c++  java
  • AVCaptureDevice

    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;

  • 相关阅读:
    unity3D相机缓慢看向目标物体
    设计原则
    unity3D中GUI标题内文字滚动效果
    python3.6中安装PyQt报错
    codeforces 515B.Drazil and His Happy Friends
    HDU 1029 Ignatius and the Princess IV
    POJ 1052 Plato's Blocks
    Uva220 Othello
    uva201 Squares
    uva1587 Box
  • 原文地址:https://www.cnblogs.com/ylg-----/p/4753024.html
Copyright © 2011-2022 走看看