Main Page | Data Structures | Directories | File List | Data Fields | Globals

yuv_buffer Struct Reference

A YUV buffer for passing uncompressed frames to and from the codec. More...

#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.


Detailed Description

A YUV buffer for passing uncompressed frames to and from the codec.

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.


The documentation for this struct was generated from the following file:
Generated on Sat Aug 20 12:41:44 2005 for libtheora by  doxygen 1.4.0