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.

25 lines
722 B

  1. //
  2. // SCManagedCapturePreviewView.h
  3. // Snapchat
  4. //
  5. // Created by Liu Liu on 5/5/15.
  6. // Copyright (c) 2015 Snapchat, Inc. All rights reserved.
  7. //
  8. #import <AVFoundation/AVFoundation.h>
  9. #import <UIKit/UIKit.h>
  10. @class LSAGLView;
  11. @interface SCManagedCapturePreviewView : UIView
  12. - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
  13. - (instancetype)initWithFrame:(CGRect)frame aspectRatio:(CGFloat)aspectRatio metalLayer:(CALayer *)metalLayer;
  14. // This method is called only once in case the metalLayer is nil previously.
  15. - (void)setupMetalLayer:(CALayer *)metalLayer;
  16. @property (nonatomic, strong) AVCaptureVideoPreviewLayer *videoPreviewLayer;
  17. @property (nonatomic, strong) LSAGLView *videoPreviewGLView;
  18. @end