MillicastSDK 2.2.0
Loading...
Searching...
No Matches
frames.h
Go to the documentation of this file.
1#ifndef MILLICAST_FRAMES_H
2#define MILLICAST_FRAMES_H
3
4#import <CoreMedia/CoreMedia.h>
5
7
10MILLICAST_API @protocol MCVideoFrame<NSObject>
11
14- (int) width;
15
18- (int) height;
19
22- (MCVideoType) frameType;
23
26- (uint32_t) sizeRgb;
27
30- (uint32_t) sizeI420;
31
34- (uint32_t) sizeI444;
35
39- (void) getRgbBuffer:(uint8_t*) buffer;
40
44- (void) getI420Buffer:(uint8_t*) buffer;
45
49- (void) getI444Buffer:(uint8_t*) buffer;
50
51@end
52
53
67MILLICAST_API @interface MCAudioFrame : NSObject
68
70@property const void* data;
71
73@property int bitsPerSample;
74
76@property int sampleRate;
77
79@property size_t channelNumber;
80
82@property size_t frameNumber;
83
84@end
85
88
95- (id) initWithSampleBuffer: (CMSampleBufferRef) buffer;
96
97@end
98
99#endif /* FRAMES_H */
#define MILLICAST_API
Definition exports.h:51
id initWithSampleBuffer
Definition frames.h:95