Main Page | Data Structures | 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 my been to be cropped for display. All samples are 8 bits.


The documentation for this struct was generated from the following file:
Generated on Wed Dec 15 12:06:33 2004 for libtheora by  doxygen 1.3.9.1