#include <mnt_yuv_frame.h>
Inheritance diagram for MntYUVFrame:
Public Member Functions | |
int | get_width () |
int | get_height () |
int | get_csss () |
MntYUVFrame () | |
An empty constructor that do nothing. | |
MntYUVFrame (int w, int h, uint32_t ssrc, int csss, unsigned char *buf) | |
Constructor for MntYUVFrame object. | |
void | copy_to (MntYUVFrame *target) |
Copy this YUV frame to another YUV frame. | |
void | set_buffer (unsigned char *buf) |
Change the buffer that contains the YUV image. | |
Public Attributes | |
char | frame_type_ |
int | frame_no_ |
int | width_ |
int | height_ |
int | csss_ |
uint32_t | ssrc_ |
MntByteImage | y_ |
MntByteImage | u_ |
MntByteImage | v_ |
An MntYUVFrame object contains three MntByteImage objects, one of each of Y, U, and V color plane. It also contains members that indicates the color sub-sampling scheme, the width and the height of the frame. Additional information regarding the origin of this frame such as the SSRC, the frame number (in display order) and the frame type ('i', 'p', or 'b') are stored in MntYUVFrame object as well.
|
Constructor for MntYUVFrame object. A buffer that contains uncompressed YUV data, needs to be passed in. The pixels are assumed to be stored in the following order: YYYYYYY.......YUUUU......UVVVV......VAn MntYUVFrame object points its pointers to this buffer. Thus, the input buffer should NOT be freed nor modified while MntYUVFrame is still using the buffer. Regardless of csss, we assume the input YUV has 4:2:0 sub-sampling. The input SSRC is ignored. These certainly need to be fixed in the future.
|
|
Copy this YUV frame to another YUV frame.
|
|
Change the buffer that contains the YUV image. The new buffer should be of the same width and height as the width and height specified in constructor and has 4:2:0 color sub-sampling.
|
|
color sub-sampling scheme. It should be one of the following integer: 422,444,411,420 |
|
frame number of the MPEG frame where this uncompressed image is decoded from (starts from 0, in display order) |
|
frame type of the MPEG frame where this uncompressed image is decoded from. Either 'i', 'p' or 'b' |
|
height of this frame |
|
SSRC of the stream where this frame comes from. |
|
U plane of this image |
|
V plane of this image |
|
width of this frame |
|
Y plane of this image |