No description, website, or topics provided.
Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CameraKitHelloWorld
CameraKitSDK.framework
.gitignore
README.md

README.md

Camera-Kit-SDK

@protocol DRCameraKitConnectionDelegate <NSObject>
- (void)cameraKitConnectionStatusDidChange:(DRCameraKit *)theKit;
@end

@protocol DRCameraKitImageDelegate <NSObject>
- (void)cameraKit:(DRCameraKit *)theKit didReceiveImage:(UIImage *)theImage sizeInBytes:(NSInteger)length;
@end

@protocol DRCameraKitControlDelegate <NSObject>
- (void)cameraKitReceivedStatusUpdate:(DRCameraKit *)theKit;
@end

typedef struct {
	unsigned int reg;
	unsigned char value;
} cameraSetting;

@interface DRCameraKit : NSObject

extern NSString *const kCameraKitVideoProtocolString;
extern NSString *const kCameraKitControlProtocolString;

extern const cameraSetting kCameraSettingsFullRes_15FPS[];
extern const cameraSetting kCameraSettingsFullRes_15FPS_low[];
extern const cameraSetting kCameraSettings1280x960_30FPS[];
extern const cameraSetting kCameraSettings640x480_30FPS[];
extern const cameraSetting kCameraSettings640x480_30FPS_low[];
extern const cameraSetting kCameraSettings1280x960_15FPS_ISP[];
extern const cameraSetting kCameraSettings640x480_15FPS_ISP[];
extern const cameraSetting kCameraSettings640x480_15FPS_ISP_low[];

@property (nonatomic, weak) id <DRCameraKitConnectionDelegate> connectionDelegate;
@property (nonatomic, weak) id <DRCameraKitImageDelegate> imageDelegate;
@property (nonatomic, weak) id <DRCameraKitControlDelegate> controlDelegate;
@property (nonatomic, readonly) BOOL videoIsStreaming;
@property (nonatomic) NSInteger firmwareVersion;

#pragma mark - Singleton
+ (DRCameraKit *)sharedCameraKit;

#pragma mark - Setup
- (BOOL)isConnected;
- (void)disconnect;
- (void)connectToAccessory:(EAAccessory *)theAccessory;
- (void)startVideo;
- (void)stopVideo;
- (void)setCameraSettingsWithArray:(cameraSetting*)settings;
- (void)setCameraSetting:(unsigned int)reg value:(unsigned char)value;
- (void)startCharging;
- (void)stopCharging;
- (void)setLED:(UIColor*)color;
- (void)fadeLEDtoColor:(UIColor*)color overTime:(NSInteger)millis;
- (void)requestStatus;
- (NSString *)iAPFirmwareVersion;
- (NSString *)iAPSerialNumber;
- (NSString *)iAPHardwareRevision;
- (cameraSetting *)lastCameraSetting;
- (BOOL)needsOverscanCrop;
- (CGSize)sizeForCameraSetting:(cameraSetting *)theSetting;