Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

Colorspaces constants.
[Global constants used in both encoder and decoder.]


Defines

#define XVID_CSP_RGB24   0
 24-bit RGB colorspace (b,g,r packed)

#define XVID_CSP_YV12   1
 YV12 colorspace (y,v,u planar).

#define XVID_CSP_YUY2   2
 YUY2 colorspace (y,u,y,v packed).

#define XVID_CSP_UYVY   3
 UYVY colorspace (u,y,v,y packed).

#define XVID_CSP_I420   4
 I420 colorsapce (y,u,v planar).

#define XVID_CSP_RGB555   10
 16-bit RGB555 colorspace

#define XVID_CSP_RGB565   11
 16-bit RGB565 colorspace

#define XVID_CSP_USER   12
 user colorspace format, where the image buffer points to a DEC_PICTURE (y,u,v planar) structure

#define XVID_CSP_EXTERN   1004
 Special colorspace used for slice rendering.

#define XVID_CSP_YVYU   1002
 YVYU colorspace (y,v,y,u packed).

#define XVID_CSP_RGB32   1000
 32-bit RGB colorspace (b,g,r,a packed)

#define XVID_CSP_NULL   9999
 NULL colorspace; no conversion is performed.

#define XVID_CSP_VFLIP   0x80000000
 (flag) Flip frame vertically during conversion


Define Documentation

#define XVID_CSP_EXTERN   1004
 

Special colorspace used for slice rendering.

The application provides an external buffer to XviD. This way, XviD works directly into the final rendering buffer, no need to specify this is a speed boost feature. This feature is only used by mplayer at the moment, refer to mplayer code to see how it can be used.

#define XVID_CSP_USER   12
 

user colorspace format, where the image buffer points to a DEC_PICTURE (y,u,v planar) structure

For encoding, image is read from the DEC_PICTURE parameter values. For decoding, the DEC_PICTURE parameters are set, pointing to the internal XviD image buffer.




Author : XviD team <xvid-devel@xvid.org> Date : 2003-02-13