Add files via upload

This commit is contained in:
Khaled Alshehri 2018-08-08 02:17:00 +03:00 committed by GitHub
parent 07e6fa0d33
commit b99120b660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 156 additions and 0 deletions

View File

@ -0,0 +1,23 @@
//
// SCManagedCapturerARImageCaptureProvider.h
// SCCamera
//
// Created by Michel Loenngren on 4/11/18.
//
#import <Foundation/Foundation.h>
@class SCManagedStillImageCapturer;
@protocol SCManagedCapturerLensAPI
, SCPerforming;
/**
Bridging protocol providing the ARImageCapturer subclass of SCManagedStillImageCapturer
to capture core.
*/
@protocol SCManagedCapturerARImageCaptureProvider <NSObject>
- (SCManagedStillImageCapturer *)arImageCapturerWith:(id<SCPerforming>)performer
lensProcessingCore:(id<SCManagedCapturerLensAPI>)lensProcessingCore;
@end

View File

@ -0,0 +1,27 @@
//
// SCManagedCapturerGLViewManagerAPI.h
// SCCamera
//
// Created by Michel Loenngren on 4/11/18.
//
#import <Looksery/LSAGLView.h>
#import <Foundation/Foundation.h>
@class SCCaptureResource;
/**
Bridging protocol for providing a glViewManager to capture core.
*/
@protocol SCManagedCapturerGLViewManagerAPI <NSObject>
@property (nonatomic, readonly, strong) LSAGLView *view;
- (void)configureWithCaptureResource:(SCCaptureResource *)captureResource;
- (void)setLensesActive:(BOOL)active;
- (void)prepareViewIfNecessary;
@end

View File

@ -0,0 +1,19 @@
//
// SCManagedCapturerLSAComponentTrackerAPI.h
// SCCamera
//
// Created by Michel Loenngren on 4/11/18.
//
#import <Foundation/Foundation.h>
@class SCCaptureResource;
/**
SCCamera protocol providing LSA tracking logic.
*/
@protocol SCManagedCapturerLSAComponentTrackerAPI <NSObject>
- (void)configureWithCaptureResource:(SCCaptureResource *)captureResource;
@end

View File

@ -0,0 +1,67 @@
//
// SCManagedCapturerLensAPI.h
// SCCamera
//
// Created by Michel Loenngren on 4/11/18.
//
#import "SCManagedCapturerListener.h"
#import "SCManagedVideoARDataSource.h"
#import <SCCameraFoundation/SCManagedCaptureDevicePosition.h>
#import <SCLenses/SCLens.h>
#import <Foundation/Foundation.h>
@protocol SCManagedAudioDataSourceListener
, SCManagedVideoARDataSource;
@class LSAComponentManager;
/**
Encapsulation of LensesProcessingCore for use in SCCamera.
*/
@protocol SCManagedCapturerLensAPI <SCManagedCapturerListener>
@property (nonatomic, strong, readonly) LSAComponentManager *componentManager;
@property (nonatomic, strong) NSString *activeLensId;
@property (nonatomic, readonly) BOOL isLensApplied;
@property (nonatomic, strong, readonly)
id<SCManagedAudioDataSourceListener, SCManagedVideoDataSourceListener> capturerListener;
typedef void (^SCManagedCapturerLensAPIPointOfInterestCompletion)(SCLensCategory *category, NSInteger categoriesCount);
- (void)setAspectRatio:(BOOL)isLiveStreaming;
- (SCLens *)appliedLens;
- (void)setFieldOfView:(float)fieldOfView;
- (void)setAsFieldOfViewListenerForDevice:(SCManagedCaptureDevice *)captureDevice;
- (void)setAsFieldOfViewListenerForARDataSource:(id<SCManagedVideoARDataSource>)arDataSource NS_AVAILABLE_IOS(11_0);
- (void)removeFieldOfViewListener;
- (void)setModifySource:(BOOL)modifySource;
- (void)setLensesActive:(BOOL)lensesActive
videoOrientation:(AVCaptureVideoOrientation)videoOrientation
filterFactory:(SCLookseryFilterFactory *)filterFactory;
- (void)detectLensCategoryOnNextFrame:(CGPoint)point
videoOrientation:(AVCaptureVideoOrientation)videoOrientation
lenses:(NSArray<SCLens *> *)lenses
completion:(SCManagedCapturerLensAPIPointOfInterestCompletion)completion;
- (void)setShouldMuteAllSounds:(BOOL)shouldMuteAllSounds;
- (UIImage *)processImage:(UIImage *)image
maxPixelSize:(NSInteger)maxPixelSize
devicePosition:(SCManagedCaptureDevicePosition)position
fieldOfView:(float)fieldOfView;
- (void)setShouldProcessARFrames:(BOOL)shouldProcessARFrames;
- (NSInteger)maxPixelSize;
@end

View File

@ -0,0 +1,20 @@
//
// SCManagedCapturerLensAPIProvider.h
// SCCamera
//
// Created by Michel Loenngren on 4/12/18.
//
#import <Foundation/Foundation.h>
@protocol SCManagedCapturerLensAPI;
@class SCCaptureResource;
/**
Provider for creating new instances of SCManagedCapturerLensAPI within SCCamera.
*/
@protocol SCManagedCapturerLensAPIProvider <NSObject>
- (id<SCManagedCapturerLensAPI>)lensAPIForCaptureResource:(SCCaptureResource *)captureResouce;
@end