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.

26 lines
898 B

  1. //
  2. // SCManagedVideoFileStreamer.h
  3. // Snapchat
  4. //
  5. // Created by Alexander Grytsiuk on 3/4/16.
  6. // Copyright © 2016 Snapchat, Inc. All rights reserved.
  7. //
  8. #import <SCCameraFoundation/SCManagedVideoDataSource.h>
  9. #import <AVFoundation/AVFoundation.h>
  10. #import <Foundation/Foundation.h>
  11. typedef void (^sc_managed_video_file_streamer_pixel_buffer_completion_handler_t)(CVPixelBufferRef pixelBuffer);
  12. /**
  13. * SCManagedVideoFileStreamer reads a video file from provided NSURL to create
  14. * and publish video output frames. SCManagedVideoFileStreamer also conforms
  15. * to SCManagedVideoDataSource allowing chained consumption of video frames.
  16. */
  17. @interface SCManagedVideoFileStreamer : NSObject <SCManagedVideoDataSource>
  18. - (instancetype)initWithPlaybackForURL:(NSURL *)URL;
  19. - (void)getNextPixelBufferWithCompletion:(sc_managed_video_file_streamer_pixel_buffer_completion_handler_t)completion;
  20. @end