TuSDKVideoCameraInterface Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TuSDKVideoCameraInterface.h |
sampleBufferDelegate
required method
相机帧采样缓冲委托
@property (nonatomic, weak) id<TuSDKVideoCameraSampleBufferDelegate> sampleBufferDelegate
Declared In
TuSDKVideoCameraInterface.h
inputCamera
required method
系统相机对象
@property (readonly) AVCaptureDevice *inputCamera
Declared In
TuSDKVideoCameraInterface.h
outputImageOrientation
required method
图像输出方向
@property (readwrite, nonatomic) UIInterfaceOrientation outputImageOrientation
Declared In
TuSDKVideoCameraInterface.h
frontFacingCameraPresent
required method
是否为前置摄像头
@property (readonly, getter=isFrontFacingCameraPresent) BOOL frontFacingCameraPresent
Declared In
TuSDKVideoCameraInterface.h
backFacingCameraPresent
required method
是否为后置摄像头
@property (readonly, getter=isBackFacingCameraPresent) BOOL backFacingCameraPresent
Declared In
TuSDKVideoCameraInterface.h
horizontallyMirrorFrontFacingCamera
required method
水平镜像前置摄像头
@property (readwrite, nonatomic) BOOL horizontallyMirrorFrontFacingCamera
Declared In
TuSDKVideoCameraInterface.h
horizontallyMirrorRearFacingCamera
required method
水平镜像后置摄像头
@property (readwrite, nonatomic) BOOL horizontallyMirrorRearFacingCamera
Declared In
TuSDKVideoCameraInterface.h
disableMirrorFrontFacing
required method
禁用前置摄像头水平镜像 (默认: NO,前置摄像头输出画面进行水平镜像)
@property (nonatomic) BOOL disableMirrorFrontFacing
Declared In
TuSDKVideoCameraInterface.h
state
required method
相机状态
@property (nonatomic, readonly) lsqCameraState state
Declared In
TuSDKVideoCameraInterface.h
enableFilterConfig
required method
开启滤镜配置选项
@property (nonatomic) BOOL enableFilterConfig
Declared In
TuSDKVideoCameraInterface.h
enableLongTouchCapture
required method
是否开启长按拍摄 (默认: NO)
@property (nonatomic) BOOL enableLongTouchCapture
Declared In
TuSDKVideoCameraInterface.h
disableContinueFoucs
required method
禁用持续自动对焦 (默认: NO)
@property (nonatomic) BOOL disableContinueFoucs
Declared In
TuSDKVideoCameraInterface.h
autoFoucsDelay
required method
自动聚焦延时 (默认: 5秒)
@property (nonatomic) NSTimeInterval autoFoucsDelay
Declared In
TuSDKVideoCameraInterface.h
longTouchDelay
required method
长按延时 (默认: 1.2秒)
@property (nonatomic) NSTimeInterval longTouchDelay
Declared In
TuSDKVideoCameraInterface.h
cameraViewRatio
required method
视频视图显示比例 (默认:0, 0 <= mRegionRatio, 当设置为0时全屏显示)
@property (nonatomic) CGFloat cameraViewRatio
Declared In
TuSDKVideoCameraInterface.h
regionViewColor
required method
视频覆盖区域颜色 (默认:[UIColor blackColor])
@property (nonatomic, retain) UIColor *regionViewColor
Declared In
TuSDKVideoCameraInterface.h
displayGuideLine
required method
是否显示辅助线 (默认: false)
@property (nonatomic) BOOL displayGuideLine
Declared In
TuSDKVideoCameraInterface.h
regionHandler
required method
选区范围算法
@property (nonatomic, retain) id<TuSDKCPRegionHandler> regionHandler
Declared In
TuSDKVideoCameraInterface.h
outputSize
required method
照片输出分辨率
@property (nonatomic) CGSize outputSize
Declared In
TuSDKVideoCameraInterface.h
enableFaceDetection
required method
是否开启脸部追踪
@property (nonatomic) BOOL enableFaceDetection
Declared In
TuSDKVideoCameraInterface.h
enableFocalDistance
required method
是否开启焦距调节 (默认关闭)
@property (nonatomic, assign) BOOL enableFocalDistance
Declared In
TuSDKVideoCameraInterface.h
focalDistanceScale
required method
相机显示焦距 (默认为 1,最大不可超过硬件最大值,当小于 1 时,取 1)
@property (nonatomic, assign) CGFloat focalDistanceScale
Declared In
TuSDKVideoCameraInterface.h
supportMaxFocalDistanceScale
required method
相机支持的最大值 (只读属性)
@property (nonatomic, readonly, assign) CGFloat supportMaxFocalDistanceScale
Declared In
TuSDKVideoCameraInterface.h
– cameraPosition
required method
视频相机前置或后置
- (AVCaptureDevicePosition)cameraPosition
Return Value
cameraPosition 视频相机前置或后置
Declared In
TuSDKVideoCameraInterface.h
– isSupportFocusWithMode:
required method
是否支持对焦
- (BOOL)isSupportFocusWithMode:(AVCaptureFocusMode)focusMode
Parameters
focusMode |
对焦模式 |
---|
Return Value
BOOL 是否支持对焦
Declared In
TuSDKVideoCameraInterface.h
– isSupportExposureWithMode:
required method
是否支持曝光模式
- (BOOL)isSupportExposureWithMode:(AVCaptureExposureMode)exposureMode
Parameters
exposureMode |
曝光模式 |
---|
Return Value
BOOL 是否支持曝光模式
Declared In
TuSDKVideoCameraInterface.h
– bindFocusTouchView:
required method
绑定聚焦触摸视图
- (void)bindFocusTouchView:(UIView<TuSDKVideoCameraExtendViewInterface> *)view
Parameters
view |
聚焦触摸视图 |
---|
Declared In
TuSDKVideoCameraInterface.h
– hasFlash
required method
是否存在闪关灯
- (BOOL)hasFlash
Return Value
BOOL 是否存在闪关灯
Declared In
TuSDKVideoCameraInterface.h
– flashWithMode:
required method
设置闪光灯模式
- (void)flashWithMode:(AVCaptureFlashMode)flashMode
Parameters
flashMode |
设置闪光灯模式 |
---|
Declared In
TuSDKVideoCameraInterface.h
– getFlashModel
required method
获取闪光灯模式
- (AVCaptureFlashMode)getFlashModel
Return Value
AVCaptureFlashMode
Declared In
TuSDKVideoCameraInterface.h
– changeCameraViewRatio:
required method
改变视频视图显示比例 (使用动画)
- (void)changeCameraViewRatio:(CGFloat)cameraViewRatio
Parameters
cameraViewRatio |
范围比例 |
---|
Declared In
TuSDKVideoCameraInterface.h
– resumeCameraCapture
required method
恢复拍摄
- (void)resumeCameraCapture
Declared In
TuSDKVideoCameraInterface.h
– pauseCameraCapture
required method
暂停拍摄
- (void)pauseCameraCapture
Declared In
TuSDKVideoCameraInterface.h
– stopCameraCapture
required method
停止拍摄
- (void)stopCameraCapture
Declared In
TuSDKVideoCameraInterface.h
– tryStartCameraCapture
required method
尝试启动相机
- (void)tryStartCameraCapture
Declared In
TuSDKVideoCameraInterface.h
– switchFilterWithCode:
required method
切换滤镜
- (BOOL)switchFilterWithCode:(NSString *)code
Parameters
code |
滤镜代号 |
---|
Return Value
BOOL 是否成功切换滤镜
Declared In
TuSDKVideoCameraInterface.h