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

  1. //
  2. // SCCaptureStateUtil.h
  3. // Snapchat
  4. //
  5. // Created by Lin Jia on 10/27/17.
  6. //
  7. //
  8. #import "SCLogger+Camera.h"
  9. #import <SCBase/SCMacros.h>
  10. #import <SCFoundation/SCLog.h>
  11. #import <Foundation/Foundation.h>
  12. #define SCLogCaptureStateMachineInfo(fmt, ...) SCLogCoreCameraInfo(@"[SCCaptureStateMachine] " fmt, ##__VA_ARGS__)
  13. #define SCLogCaptureStateMachineError(fmt, ...) SCLogCoreCameraError(@"[SCCaptureStateMachine] " fmt, ##__VA_ARGS__)
  14. typedef NSNumber SCCaptureStateKey;
  15. typedef NS_ENUM(NSUInteger, SCCaptureStateMachineStateId) {
  16. SCCaptureBaseStateId = 0,
  17. SCCaptureUninitializedStateId,
  18. SCCaptureInitializedStateId,
  19. SCCaptureImageStateId,
  20. SCCaptureImageWhileRecordingStateId,
  21. SCCaptureRunningStateId,
  22. SCCaptureRecordingStateId,
  23. SCCaptureScanningStateId,
  24. SCCaptureStateMachineStateIdCount
  25. };
  26. SC_EXTERN_C_BEGIN
  27. NSString *SCCaptureStateName(SCCaptureStateMachineStateId stateId);
  28. SC_EXTERN_C_END