//
//  StitchSDKBridge.h
//  Retail_REA
//
//  Created by clobotics_ccp on 2019/3/29.
//  Copyright © 2019 ice.hu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability-completeness"

@protocol ImageStitchMangerDelegate

-(void) didGetNewPreviewImage:(UIImage *__nullable)image
                  isUnitImage:(int)isUnitImage
             isValidHintLines:(int)isValidHintLines
        currentHintLinesWidth:(int)currentHintLinesWidth
       currentHintLinesHeight:(int)currentHintLinesHeight
               currentHintP1x:(int)currentHintP1x
               currentHintP1y:(int)currentHintP1y
               currentHintP2x:(int)currentHintP2x
               currentHintP2y:(int)currentHintP2y
               currentHintP3x:(int)currentHintP3x
               currentHintP3y:(int)currentHintP3y
               currentHintP4x:(int)currentHintP4x
               currentHintP4y:(int)currentHintP4y
           currentHintOverlap:(int)currentHintOverlap
            currentHintStatus:(int)currentHintStatus
       currentImageFrameIndex:(int)currentImageFrameIndex
                   homography:(NSArray *)homography
                     pixelCor:(NSArray *)pixelCor
                      bestPOV:(int)bestPOV
                 previewImage:(UIImage *_Nullable)previewImage
                    logString:(NSString *_Nullable)log;
@end

@interface StitchSDKBridge : NSObject

@property (nonatomic, weak)id<ImageStitchMangerDelegate> delegate;

- (int)handleSampleBuffer:(CVImageBufferRef)sampleBuffer isUnitImage:(int)isUnitImage;
- (void)handleSampleBuffer:(CMSampleBufferRef)sampleBuffer;
@end
#pragma clang diagnostic pop
