TcrSdk-Windows V1.0
|
The I420Buffer class represents a buffer in I420 format. More...
#include <video_frame_observer.h>
Public Member Functions | |
I420Buffer (const uint8_t *data_y, const uint8_t *data_u, const uint8_t *data_v, int32_t stride_y, int32_t stride_u, int32_t stride_v, int32_t width, int32_t height) | |
Constructs an I420Buffer object with the specified parameters. | |
~I420Buffer () | |
Destructs the I420Buffer object. | |
const uint8_t * | DataY () |
Returns a pointer to the Y plane data. | |
const uint8_t * | DataU () |
Returns a pointer to the U plane data. | |
const uint8_t * | DataV () |
Returns a pointer to the V plane data. | |
int32_t | StrideY () |
Returns the stride (number of bytes between consecutive rows) of the Y plane. | |
int32_t | StrideU () |
Returns the stride (number of bytes between consecutive rows) of the U plane. | |
int32_t | StrideV () |
Returns the stride (number of bytes between consecutive rows) of the V plane. | |
int32_t | width () |
Returns the width of the buffer in pixels. | |
int32_t | height () |
Returns the height of the buffer in pixels. | |
The I420Buffer class represents a buffer in I420 format.
I420 is a planar YUV format with 8 bits per component. The Y plane is first, followed by the U and V planes. The U and V planes are subsampled by a factor of 2 in both dimensions.
I420Buffer | ( | const uint8_t * | data_y, |
const uint8_t * | data_u, | ||
const uint8_t * | data_v, | ||
int32_t | stride_y, | ||
int32_t | stride_u, | ||
int32_t | stride_v, | ||
int32_t | width, | ||
int32_t | height | ||
) |
Constructs an I420Buffer object with the specified parameters.
data_y | A pointer to the Y plane data. |
data_u | A pointer to the U plane data. |
data_v | A pointer to the V plane data. |
stride_y | The stride (number of bytes between consecutive rows) of the Y plane. |
stride_u | The stride (number of bytes between consecutive rows) of the U plane. |
stride_v | The stride (number of bytes between consecutive rows) of the V plane. |
width | The width of the buffer in pixels. |
height | The height of the buffer in pixels. |
~I420Buffer | ( | ) |
Destructs the I420Buffer object.
const uint8_t * DataU | ( | ) |
Returns a pointer to the U plane data.
const uint8_t * DataV | ( | ) |
Returns a pointer to the V plane data.
const uint8_t * DataY | ( | ) |
Returns a pointer to the Y plane data.
int32_t height | ( | ) |
Returns the height of the buffer in pixels.
int32_t StrideU | ( | ) |
Returns the stride (number of bytes between consecutive rows) of the U plane.
int32_t StrideV | ( | ) |
Returns the stride (number of bytes between consecutive rows) of the V plane.
int32_t StrideY | ( | ) |
Returns the stride (number of bytes between consecutive rows) of the Y plane.
int32_t width | ( | ) |
Returns the width of the buffer in pixels.