MillicastSDK 2.0.0
|
#import <frames.h>
Instance Methods | |
(int) | - width |
(int) | - height |
(MCVideoType) | - frameType |
(uint32_t) | - sizeRgb |
(uint32_t) | - sizeI420 |
(uint32_t) | - sizeI444 |
(void) | - getRgbBuffer: |
(void) | - getI420Buffer: |
(void) | - getI444Buffer: |
This class represents a raw Video Frame. Used with MCVideoRenderer
for playback.
- (MCVideoType) frameType |
The pixel format. For example, can be an I420 or a I444 frame.
MCVideoType
representing the pixel format. - (void) getI420Buffer: | (uint8_t *) | buffer |
Get the video frame buffer as an I420 frame. Performs the necessary conversion.
MCVideoFrame/sizeI420
bytes. - (void) getI444Buffer: | (uint8_t *) | buffer |
Get the video frame buffer as an I444 frame. Performs the necessary conversion.
MCVideoFrame/sizeI444
bytes. - (void) getRgbBuffer: | (uint8_t *) | buffer |
Get the video frame buffer as an RGB frame. Performs the necessary conversion.
MCVideoFrame/sizeRgb
bytes. - (int) height |
The height of the video frame.
- (uint32_t) sizeI420 |
If the frame was an I420 frame, then this will return size of the frame in bytes.
- (uint32_t) sizeI444 |
If the frame was an I444 frame, then this will return size of the frame in bytes.
- (uint32_t) sizeRgb |
If the frame was an RGB frame, then this will return size of the frame in bytes.
- (int) width |
The width of the video frame.