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.

36 lines
1.2 KiB

  1. //
  2. // SCManagedVideoStreamer.h
  3. // Snapchat
  4. //
  5. // Created by Liu Liu on 4/30/15.
  6. // Copyright (c) 2015 Liu Liu. All rights reserved.
  7. //
  8. #import "SCManagedVideoARDataSource.h"
  9. #import <SCCameraFoundation/SCManagedVideoDataSource.h>
  10. #import <AVFoundation/AVFoundation.h>
  11. #import <Foundation/Foundation.h>
  12. @class ARSession;
  13. /**
  14. * SCManagedVideoStreamer uses the current AVCaptureSession to create
  15. * and publish video output frames. SCManagedVideoStreamer also conforms
  16. * to SCManagedVideoDataSource allowing chained consumption of video frames.
  17. */
  18. @interface SCManagedVideoStreamer : NSObject <SCManagedVideoDataSource, SCManagedVideoARDataSource>
  19. - (instancetype)initWithSession:(AVCaptureSession *)session
  20. devicePosition:(SCManagedCaptureDevicePosition)devicePosition;
  21. - (instancetype)initWithSession:(AVCaptureSession *)session
  22. arSession:(ARSession *)arSession
  23. devicePosition:(SCManagedCaptureDevicePosition)devicePosition NS_AVAILABLE_IOS(11_0);
  24. - (void)setupWithSession:(AVCaptureSession *)session devicePosition:(SCManagedCaptureDevicePosition)devicePosition;
  25. - (void)setupWithARSession:(ARSession *)arSession NS_AVAILABLE_IOS(11_0);
  26. @end