2014 snapchat source code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
943 B

//
// SCCaptureStateUtil.h
// Snapchat
//
// Created by Lin Jia on 10/27/17.
//
//
#import "SCLogger+Camera.h"
#import <SCBase/SCMacros.h>
#import <SCFoundation/SCLog.h>
#import <Foundation/Foundation.h>
#define SCLogCaptureStateMachineInfo(fmt, ...) SCLogCoreCameraInfo(@"[SCCaptureStateMachine] " fmt, ##__VA_ARGS__)
#define SCLogCaptureStateMachineError(fmt, ...) SCLogCoreCameraError(@"[SCCaptureStateMachine] " fmt, ##__VA_ARGS__)
typedef NSNumber SCCaptureStateKey;
typedef NS_ENUM(NSUInteger, SCCaptureStateMachineStateId) {
SCCaptureBaseStateId = 0,
SCCaptureUninitializedStateId,
SCCaptureInitializedStateId,
SCCaptureImageStateId,
SCCaptureImageWhileRecordingStateId,
SCCaptureRunningStateId,
SCCaptureRecordingStateId,
SCCaptureScanningStateId,
SCCaptureStateMachineStateIdCount
};
SC_EXTERN_C_BEGIN
NSString *SCCaptureStateName(SCCaptureStateMachineStateId stateId);
SC_EXTERN_C_END