Add files via upload
This commit is contained in:
parent
07e6fa0d33
commit
b99120b660
23
Lens/SCManagedCapturerARImageCaptureProvider.h
Normal file
23
Lens/SCManagedCapturerARImageCaptureProvider.h
Normal 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
|
27
Lens/SCManagedCapturerGLViewManagerAPI.h
Normal file
27
Lens/SCManagedCapturerGLViewManagerAPI.h
Normal 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
|
19
Lens/SCManagedCapturerLSAComponentTrackerAPI.h
Normal file
19
Lens/SCManagedCapturerLSAComponentTrackerAPI.h
Normal 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
|
67
Lens/SCManagedCapturerLensAPI.h
Normal file
67
Lens/SCManagedCapturerLensAPI.h
Normal 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
|
20
Lens/SCManagedCapturerLensAPIProvider.h
Normal file
20
Lens/SCManagedCapturerLensAPIProvider.h
Normal 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
|
Reference in New Issue
Block a user