1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
Source-SnapChatCamera/ManagedCapturer/SCManagedVideoFrameSampler.h
2018-08-08 02:32:46 +03:00

23 lines
602 B
Objective-C

//
// SCManagedVideoFrameSampler.h
// Snapchat
//
// Created by Michel Loenngren on 3/10/17.
// Copyright © 2017 Snapchat, Inc. All rights reserved.
//
#import "SCManagedCapturerListener.h"
#import <Foundation/Foundation.h>
/**
Allows consumer to register a block to sample the next CMSampleBufferRef and
automatically leverages Core image to convert the pixel buffer to a UIImage.
Returned image will be a copy.
*/
@interface SCManagedVideoFrameSampler : NSObject <SCManagedCapturerListener>
- (void)sampleNextFrame:(void (^)(UIImage *frame, CMTime presentationTime))completeBlock;
@end