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.

74 lines
3.0 KiB

  1. //
  2. // SCCaptureCommon.h
  3. // Snapchat
  4. //
  5. // Created by Lin Jia on 9/29/17.
  6. //
  7. //
  8. #import "SCManagedCaptureDevice.h"
  9. #import "SCManagedDeviceCapacityAnalyzerListener.h"
  10. #import "SCVideoCaptureSessionInfo.h"
  11. #import <SCCameraFoundation/SCManagedVideoDataSourceListener.h>
  12. #import <AVFoundation/AVFoundation.h>
  13. #import <Foundation/Foundation.h>
  14. @class SCManagedCapturerState;
  15. @class SCManagedLensesProcessor;
  16. @class SCManagedVideoDataSource;
  17. @class SCManagedVideoCapturerOutputSettings;
  18. @class SCLens;
  19. @class SCLensCategory;
  20. @class SCLookseryFilterFactory;
  21. @class SCSnapScannedData;
  22. @class SCCraftResourceManager;
  23. @class SCScanConfiguration;
  24. @class SCCapturerToken;
  25. @class SCProcessingPipeline;
  26. @class SCTimedTask;
  27. @protocol SCManagedSampleBufferDisplayController;
  28. typedef void (^sc_managed_capturer_capture_still_image_completion_handler_t)(UIImage *fullScreenImage,
  29. NSDictionary *metadata, NSError *error,
  30. SCManagedCapturerState *state);
  31. typedef void (^sc_managed_capturer_capture_video_frame_completion_handler_t)(UIImage *image);
  32. typedef void (^sc_managed_capturer_start_recording_completion_handler_t)(SCVideoCaptureSessionInfo session,
  33. NSError *error);
  34. typedef void (^sc_managed_capturer_convert_view_coordniates_completion_handler_t)(CGPoint pointOfInterest);
  35. typedef void (^sc_managed_capturer_unsafe_changes_t)(AVCaptureSession *session, AVCaptureDevice *front,
  36. AVCaptureDeviceInput *frontInput, AVCaptureDevice *back,
  37. AVCaptureDeviceInput *backInput, SCManagedCapturerState *state);
  38. typedef void (^sc_managed_capturer_stop_running_completion_handler_t)(BOOL succeed);
  39. typedef void (^sc_managed_capturer_scan_results_handler_t)(NSObject *resultObject);
  40. typedef void (^sc_managed_lenses_processor_category_point_completion_handler_t)(SCLensCategory *category,
  41. NSInteger categoriesCount);
  42. extern CGFloat const kSCManagedCapturerAspectRatioUnspecified;
  43. extern CGFloat const kSCManagedCapturerDefaultVideoActiveFormatWidth;
  44. extern CGFloat const kSCManagedCapturerDefaultVideoActiveFormatHeight;
  45. extern CGFloat const kSCManagedCapturerVideoActiveFormatWidth1080p;
  46. extern CGFloat const kSCManagedCapturerVideoActiveFormatHeight1080p;
  47. extern CGFloat const kSCManagedCapturerNightVideoHighResActiveFormatWidth;
  48. extern CGFloat const kSCManagedCapturerNightVideoHighResActiveFormatHeight;
  49. extern CGFloat const kSCManagedCapturerNightVideoDefaultResActiveFormatWidth;
  50. extern CGFloat const kSCManagedCapturerNightVideoDefaultResActiveFormatHeight;
  51. extern CGFloat const kSCManagedCapturerLiveStreamingVideoActiveFormatWidth;
  52. extern CGFloat const kSCManagedCapturerLiveStreamingVideoActiveFormatHeight;