-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMICMSampleBuffer.h
More file actions
28 lines (19 loc) · 804 Bytes
/
MICMSampleBuffer.h
File metadata and controls
28 lines (19 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// MICMSampleBuffer.h
// MovieMaker
//
// Copyright (c) 2015 Zukini Ltd. All rights reserved.
@import Foundation;
@import AVFoundation;
/// A wrapper for a CMSampleBuffer to manage sample buffer allocation lifetime.
@interface MICMSampleBuffer : NSObject <NSCopying>
/// Copy initializer. Designated initializer.
-(instancetype)initWithMICMSampleBuffer:(MICMSampleBuffer *)sampleBuffer;
/// Initialize with a CMSampleBuffer. Designated initializer.
-(instancetype)initWithCMSampleBuffer:(CMSampleBufferRef)sampleBuffer;
/// copy this object method.
-(instancetype)copy;
/// Retains the sampleBuffer and releases previously owned buffer.
-(void)setCMSampleBuffer:(CMSampleBufferRef)sampleBuffer;
/// Returns the CMSampleBuffer.
-(CMSampleBufferRef)CMSampleBuffer CF_RETURNS_NOT_RETAINED;
@end