MillicastSDK 2.0.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
Definition frames.h:68
int bitsPerSample
The number of bits per audio sample.
Definition frames.h:73
size_t frameNumber
The number of frames in the data array. The number of frames is dependent on the sample rate and chun...
Definition frames.h:82
const void * data
The audio data containing raw audio samples.
Definition frames.h:70
size_t channelNumber
The number of audio channels defining whether the audio is mono, stereo, or has more complex channel ...
Definition frames.h:79
int sampleRate
The sample rate of the audio data, which is either 48kHz or 44.1kHz.
Definition frames.h:76
Class responsible for initializing a MCAudioFrame from a CMSampleBuffer
Definition frames.h:88