TuSDKStillCamera Class Reference

Inherits from SLGPUImageStillCamera : SLGPUImageVideoCamera : SLGPUImageOutput : NSObject
Conforms to TuSDKStillCameraInterface
Declared in TuSDKStillCamera.h

Overview

相机对象

  sampleBufferDelegate

相机帧采样缓冲委托

@property (nonatomic, weak) id<TuSDKVideoCameraSampleBufferDelegate> sampleBufferDelegate

Declared In

TuSDKStillCamera.h

  captureDelegate

相机事件委托

@property (nonatomic, weak) id<TuSDKStillCameraDelegate> captureDelegate

Declared In

TuSDKStillCamera.h

  state

相机状态

@property (nonatomic, readonly) lsqCameraState state

Declared In

TuSDKStillCamera.h

  regionHandler

选区范围算法

@property (nonatomic, retain) id<TuSDKCPRegionHandler> regionHandler

Declared In

TuSDKStillCamera.h

  isResgisterFocusEvent

是否已注册聚焦事件

@property (nonatomic) BOOL isResgisterFocusEvent

Declared In

TuSDKStillCamera.h

  isFilterChanging

是否正在切换滤镜

@property (nonatomic, readonly) BOOL isFilterChanging

Declared In

TuSDKStillCamera.h

  enableFilterConfig

开启滤镜配置选项

@property (nonatomic) BOOL enableFilterConfig

Declared In

TuSDKStillCamera.h

  enableLongTouchCapture

是否开启长按拍摄 (默认: NO)

@property (nonatomic) BOOL enableLongTouchCapture

Declared In

TuSDKStillCamera.h

  disableContinueFoucs

禁用持续自动对焦 (默认: NO)

@property (nonatomic) BOOL disableContinueFoucs

Declared In

TuSDKStillCamera.h

  autoFoucsDelay

自动聚焦延时 (默认: 5秒)

@property (nonatomic) NSTimeInterval autoFoucsDelay

Declared In

TuSDKStillCamera.h

  longTouchDelay

长按延时 (默认: 1.2秒)

@property (nonatomic) NSTimeInterval longTouchDelay

Declared In

TuSDKStillCamera.h

  cameraViewRatio

视频视图显示比例 (默认:0, 0 <= mRegionRatio, 当设置为0时全屏显示)

@property (nonatomic) CGFloat cameraViewRatio

Declared In

TuSDKStillCamera.h

  regionViewColor

视频覆盖区域颜色 (默认:[UIColor blackColor])

@property (nonatomic, retain) UIColor *regionViewColor

Declared In

TuSDKStillCamera.h

  displayGuideLine

默认是否显示辅助线 (默认: false)

@property (nonatomic) BOOL displayGuideLine

Declared In

TuSDKStillCamera.h

  outputSize

照片输出分辨率 (设置后 cameraViewRatio 将失效)

@property (nonatomic) CGSize outputSize

Declared In

TuSDKStillCamera.h

  disableMirrorFrontFacing

禁用前置摄像头自动水平镜像 (默认: NO,前置摄像头拍摄结果自动进行水平镜像)

@property (nonatomic) BOOL disableMirrorFrontFacing

Declared In

TuSDKStillCamera.h

  enableFaceDetection

是否开启脸部追踪

@property (nonatomic) BOOL enableFaceDetection

Declared In

TuSDKStillCamera.h

  enableFocalDistance

是否开启焦距调节 (默认关闭)

@property (nonatomic, assign) BOOL enableFocalDistance

Declared In

TuSDKStillCamera.h

  focalDistanceScale

相机显示焦距 (默认为 1,最大不可超过硬件最大值)

@property (nonatomic, assign) CGFloat focalDistanceScale

Declared In

TuSDKStillCamera.h

  supportMaxFocalDistanceScale

相机支持的最大值 (只读属性)

@property (nonatomic, readonly, assign) CGFloat supportMaxFocalDistanceScale

Declared In

TuSDKStillCamera.h

+ initWithSessionPreset:cameraPosition:cameraView:

初始化相机

+ (instancetype)initWithSessionPreset:(NSString *)sessionPreset cameraPosition:(AVCaptureDevicePosition)cameraPosition cameraView:(UIView *)view

Parameters

sessionPreset

相机分辨率类型

cameraPosition

相机设备标识 (前置或后置)

cameraView

相机显示容器视图

Return Value

相机对象

Declared In

TuSDKStillCamera.h

– focusWithMode:

设置聚焦模式

- (BOOL)focusWithMode:(AVCaptureFocusMode)focusMode

Parameters

focusMode

聚焦模式

Return Value

是否支持对焦

Declared In

TuSDKStillCamera.h

– focusWithMode:point:

设置聚焦模式

- (BOOL)focusWithMode:(AVCaptureFocusMode)focusMode point:(CGPoint)point

Parameters

focusMode

聚焦模式

point

聚焦坐标

Return Value

是否支持对焦

Declared In

TuSDKStillCamera.h

– exposureWithMode:

设置曝光模式

- (BOOL)exposureWithMode:(AVCaptureExposureMode)exposureMode

Parameters

exposureMode

曝光模式

Return Value

是否支持曝光模式

Declared In

TuSDKStillCamera.h

– destory

销毁

- (void)destory

Declared In

TuSDKStillCamera.h