CameraManager.h 893 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // CameraManager.h
  3. // PanoramicCameraSDK
  4. //
  5. // Created by 王昭威 on 2023/1/14.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <AVFoundation/AVFoundation.h>
  9. #import "LenzSDKConstant.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @class AVCaptureDevice;
  12. @interface CameraManager : NSObject
  13. @property (nonatomic, assign, nullable, readonly) AVCaptureDevice* back;
  14. @property (nonatomic, readonly, nullable) AVCaptureDevice* front;
  15. @property (nonatomic, assign, readonly) CGFloat backAspect;
  16. @property (nonatomic, assign, readonly) CGFloat frontAspect;
  17. + (instancetype)shared;
  18. - (void)focusOn:(CGPoint)point;
  19. - (void)focusOn:(CGPoint)point device: (AVCaptureDevice*)device;
  20. - (void)setResolutionFor:(AVCaptureDevicePosition)position with: (NSInteger)desiredHeight model:(SDKCaptureModeIndex)model;
  21. - (AVCaptureDevice *)cameraWithPosition:(AVCaptureDevicePosition)position;
  22. @end
  23. NS_ASSUME_NONNULL_END