#include <theora.h>
Data Fields | |
int | y_width |
Width of the Y' luminance plane. | |
int | y_height |
Height of the luminance plane. | |
int | y_stride |
Offset in bytes between successive rows. | |
int | uv_width |
Height of the Cb and Cr chroma planes. | |
int | uv_height |
Width of the chroma planes. | |
int | uv_stride |
Offset between successive chroma rows. | |
unsigned char * | y |
Pointer to start of luminance data. | |
unsigned char * | u |
Pointer to start of Cb data. | |
unsigned char * | v |
Pointer to start of Cr data. |
This holds a Y'CbCr frame in planar format. The CbCr planes can be subsampled and have their own separate dimensions and row stride offsets. Note that the strides may be negative in some configurations. For theora the width and height of the largest plane must be a multiple of 16. The actual meaningful picture size and offset are stored in the theora_info structure; frames returned by the decoder may need to be cropped for display. All samples are 8 bits.