//=============================================================================================================================
//
// Copyright (c) 2015-2021 VisionStar Information Technology (Shanghai) Co., Ltd. All Rights Reserved.
// EasyAR is the registered trademark or trademark of VisionStar Information Technology (Shanghai) Co., Ltd in China
// and other countries for the augmented reality technology developed by VisionStar Information Technology (Shanghai) Co., Ltd.
//
//=============================================================================================================================
#ifndef __EASYAR_CORE_DEVICE_CAMERA_IOS_H__
#define __EASYAR_CORE_DEVICE_CAMERA_IOS_H__

#import <AVFoundation/AVFoundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <easyar/dataflow.oc.h>

@interface MyCamera : NSObject

@property (nonatomic, strong) AVCaptureSession *captureSession;
@property (nonatomic, strong) AVCaptureDeviceInput *deviceInput;
@property (nonatomic, strong) easyar_InputFrameSink *sink;

- (instancetype)init;
- (void)connect:(easyar_InputFrameSink *)inputFrameSink;
- (BOOL)open;
- (BOOL)start;
- (BOOL)stop;
-(CGSize)size;
@end

#endif
