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.

53 lines
2.1 KiB

  1. //
  2. // SCLogger+Camera.h
  3. // Snapchat
  4. //
  5. // Created by Derek Peirce on 5/8/17.
  6. // Copyright © 2017 Snapchat, Inc. All rights reserved.
  7. //
  8. #import "AVCameraViewEnums.h"
  9. #import <SCBase/SCSignPost.h>
  10. #import <SCLogger/SCLogger.h>
  11. #import <CoreMedia/CoreMedia.h>
  12. typedef NS_ENUM(NSUInteger, CameraCreationDelayLoggingStatus) {
  13. CAMERA_CREATION_DELAY_LOGGING_START,
  14. CAMERA_CREATION_DELAY_LOGGINT_LAST_STEP,
  15. CAMERA_CREATION_DELAY_LOGGING_END,
  16. };
  17. @interface SCLogger (Camera)
  18. @property (nonatomic, strong) NSNumber *cameraCreationDelayLoggingStatus;
  19. - (void)logCameraCreationStartWithMethod:(SCCameraRecordingMethod)method
  20. lensesEnabled:(BOOL)lensesEnabled
  21. activeLensId:(NSString *)activeLensId
  22. captureSessionId:(NSString *)captureSessionId;
  23. - (void)logStillImageCaptureApi:(NSString *)api;
  24. - (void)logPreCaptureOperationRequestedAt:(CFTimeInterval)requestTime;
  25. - (void)logPreCaptureOperationFinishedAt:(CFTimeInterval)time;
  26. - (void)logCameraCaptureRecordingGestureFinishedAtTime:(CFTimeInterval)endRecordingTime;
  27. - (void)logCameraCaptureFinishedWithDuration:(CFTimeInterval)duration;
  28. - (void)logCameraCaptureContentReady;
  29. - (void)logPreviewFinishedPreparation;
  30. - (void)logPreviewDisplayedForImage:(BOOL)isImage;
  31. - (void)logPreviewAnimationComplete:(BOOL)isImage;
  32. - (void)logPreviewFirstFramePlayed:(BOOL)isImage;
  33. - (void)cancelCameraCreationEvent;
  34. - (void)logRecordingMayBeTooShortWithMethod:(SCCameraRecordingMethod)method;
  35. - (void)logRecordingWasTooShortWithFirstFrame:(CMTime)firstFrame
  36. frontFacingCamera:(BOOL)isFrontFacing
  37. cameraFlips:(NSInteger)cameraFlips;
  38. - (void)logManagedCapturerSettingFailure:(NSString *)settingTask error:(NSError *)error;
  39. - (void)logCameraExposureAdjustmentDelayStart;
  40. - (void)logCameraExposureAdjustmentDelayEndWithStrategy:(NSString *)strategy;
  41. - (void)logCameraCreationDelaySubMetricsStartWithSignCode:(kSCSignPostCodeEnum)signPostCode;
  42. - (void)logCameraCreationDelaySubMetricsEndWithSignCode:(kSCSignPostCodeEnum)signPostCod;
  43. @end