<commit_before>//
//  SECameraViewController.h
//  Pods
//
//  Created by <NAME> on 1/26/16.
//
//

@import UIKit;
@import AVFoundation;

typedef NS_ENUM(NSInteger, SEOutputFormat) {
	SEOutputFormatSquare, // 1:1
	SEOutputFormatWidescreen, // 16:9
};

@protocol SECameraViewControllerDelegate;
@interface SECameraViewController : UIViewController

- (instancetype)initWithDelegate:(id<SECameraViewControllerDelegate>)delegate;
@property (nonatomic, weak) id<SECameraViewControllerDelegate> delegate;

@property (nonatomic) SEOutputFormat outputFormat;
@property (nonatomic, getter=isFlashEnabled) BOOL flashEnabled;

@end

@protocol SECameraViewControllerDelegate <NSObject>

@optional

- (void)cameraViewController:(SECameraViewController *)cameraViewController
 didCaptureVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer;

- (void)cameraViewController:(SECameraViewController *)cameraViewController
    didCaptureBGRASampleData:(u_int8_t *)data
					   width:(NSUInteger)width
					  height:(NSUInteger)height;

@required
<commit_msg>initial commit for engine protocol<commit_after>//
//  SECameraViewController.h
//  Pods
//
//  Created by <NAME> on 1/26/16.
//
//

@import UIKit;
@import AVFoundation;

typedef NS_ENUM(NSInteger, SEOutputFormat) {
	SEOutputFormatSquare, // 1:1
	SEOutputFormatWidescreen, // 16:9
};

@protocol EngineProtocol <NSObject>

- (void)feedBGRAImageData:(u_int8_t *)data
					width:(NSUInteger)width
				  heieght:(NSUInteger)height;

@property (nonatomic) CGFloat progress;

@end

@protocol SECameraViewControllerDelegate;
@interface SECameraViewController : UIViewController

- (instancetype)initWithDelegate:(id<SECameraViewControllerDelegate>)delegate;
@property (nonatomic, weak) id<SECameraViewControllerDelegate> delegate;

@property (nonatomic) SEOutputFormat outputFormat;
@property (nonatomic, getter=isFlashEnabled) BOOL flashEnabled;

@property (nonatomic, weak) id<EngineProtocol> engine;

@end

@protocol SECameraViewControllerDelegate <NSObject>

@optional

- (void)cameraViewController:(SECameraViewController *)cameraViewController
 didCaptureVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer;

- (void)cameraViewController:(SECameraViewController *)cameraViewController
    didCaptureBGRASampleData:(u_int8_t *)data
					   width:(NSUInteger)width
					  height:(NSUInteger)height;

@required

{'fraction_non_alphanumeric': 0.10290350128095645, 'fraction_numerical': 0.00982066609735269, 'mean_word_length': 6.8624161073825505, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7041169', 'n_tokens_mistral': 773, 'n_tokens_neox': 677, 'n_words': 129}