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
26 lines
898 B
//
|
|
// SCManagedVideoFileStreamer.h
|
|
// Snapchat
|
|
//
|
|
// Created by Alexander Grytsiuk on 3/4/16.
|
|
// Copyright © 2016 Snapchat, Inc. All rights reserved.
|
|
//
|
|
|
|
#import <SCCameraFoundation/SCManagedVideoDataSource.h>
|
|
|
|
#import <AVFoundation/AVFoundation.h>
|
|
#import <Foundation/Foundation.h>
|
|
|
|
typedef void (^sc_managed_video_file_streamer_pixel_buffer_completion_handler_t)(CVPixelBufferRef pixelBuffer);
|
|
|
|
/**
|
|
* SCManagedVideoFileStreamer reads a video file from provided NSURL to create
|
|
* and publish video output frames. SCManagedVideoFileStreamer also conforms
|
|
* to SCManagedVideoDataSource allowing chained consumption of video frames.
|
|
*/
|
|
@interface SCManagedVideoFileStreamer : NSObject <SCManagedVideoDataSource>
|
|
|
|
- (instancetype)initWithPlaybackForURL:(NSURL *)URL;
|
|
- (void)getNextPixelBufferWithCompletion:(sc_managed_video_file_streamer_pixel_buffer_completion_handler_t)completion;
|
|
|
|
@end
|