forked from rFlex/SCRecorder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CIImageRenderer.h
48 lines (38 loc) · 1.04 KB
/
CIImageRenderer.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// SCImageHolder.h
// SCRecorder
//
// Created by Simon CORSIN on 13/09/14.
// Copyright (c) 2014 rFlex. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreImage/CoreImage.h>
#import <AVFoundation/AVFoundation.h>
@protocol CIImageRenderer <NSObject>
/**
The CIImage to display
*/
@property (strong, nonatomic) CIImage *__nullable CIImage;
/**
The timestamp of the CIImage
*/
@property (assign, nonatomic) CFTimeInterval CIImageTime;
@optional
/**
Some objects may use this property to set a buffer instead of always creating
a CIImage. This avoids creating multiple CIImage if it is not necesarry.
*/
- (void)setImageBySampleBuffer:(__nonnull CMSampleBufferRef)sampleBuffer;
/**
Set the CIImage using an UIImage
*/
- (void)setImageByUIImage:(UIImage *__nullable)image;
/**
The preferred transform for rendering the CIImage
*/
@property (assign, nonatomic) CGAffineTransform preferredCIImageTransform;
/**
Some objects such as the SCPlayer may need to get a frame.
*/
@property (readonly, nonatomic) CGRect frame;
@end