yuv2rgb.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* yuv2rgb_fun )(uint8_t *image, uint8_t *py, uint8_t *pu, uint8_t *pv, int h_size, int v_size, int rgb_stride, int y_stride, int uv_stride, int alphaones)
typedef void(* conv_i420_2vuy_fun )(uint8_t *image, int vuy_stride, const uint8_t *py, const uint8_t *pu, const uint8_t *pv, int y_stride, int u_stride, int v_stride, int h_size, int v_size)
typedef void(* conv_2vuy_i420_fun )(uint8_t *py, uint8_t *pu, uint8_t *pv, int y_stride, int u_stride, int v_stride, const uint8_t *image, int vuy_stride, int h_size, int v_size)

Functions

void yuv2rgb_init (int bpp, int mode)
yuv2rgb_fun yuv2rgb_init_mmxext (int bpp, int mode)
 This returns a yuv to rgba converter, using mmxext if MMX was compiled in.
yuv2rgb_fun yuv2rgb_init_mmx (int bpp, int mode)
 This returns a yuv to rgba converter, using mmx if MMX was compiled in.
void rgb32_to_yuv420p (unsigned char *lum, unsigned char *cb, unsigned char *cr, unsigned char *alpha, unsigned char *src, int width, int height, int srcwidth)
 Convert planar RGB to YUV420.
conv_i420_2vuy_fun get_i420_2vuy_conv (void)
conv_2vuy_i420_fun get_2vuy_i420_conv (void)
 Returns 2VUY to I420 conversion function.

Variables

yuv2rgb_fun yuv2rgb


Typedef Documentation

typedef void(* yuv2rgb_fun)(uint8_t *image, uint8_t *py, uint8_t *pu, uint8_t *pv, int h_size, int v_size, int rgb_stride, int y_stride, int uv_stride, int alphaones)

Definition at line 32 of file yuv2rgb.h.

typedef void(* conv_i420_2vuy_fun)(uint8_t *image, int vuy_stride, const uint8_t *py, const uint8_t *pu, const uint8_t *pv, int y_stride, int u_stride, int v_stride, int h_size, int v_size)

Definition at line 53 of file yuv2rgb.h.

typedef void(* conv_2vuy_i420_fun)(uint8_t *py, uint8_t *pu, uint8_t *pv, int y_stride, int u_stride, int v_stride, const uint8_t *image, int vuy_stride, int h_size, int v_size)

Definition at line 62 of file yuv2rgb.h.


Function Documentation

void yuv2rgb_init ( int  bpp,
int  mode 
)

yuv2rgb_fun yuv2rgb_init_mmxext ( int  bpp,
int  mode 
)

This returns a yuv to rgba converter, using mmxext if MMX was compiled in.

Parameters:
mode must be MODE_RGB
bpp must be 32
Returns:
function pointer or NULL if converter could not be found.

Definition at line 348 of file yuv2rgb.cpp.

yuv2rgb_fun yuv2rgb_init_mmx ( int  bpp,
int  mode 
)

This returns a yuv to rgba converter, using mmx if MMX was compiled in.

Parameters:
mode must be MODE_RGB
bpp must be 32
Returns:
function pointer or NULL if converter could not be found.

Definition at line 372 of file yuv2rgb.cpp.

Referenced by VideoOutputIvtv::ShowPip().

void rgb32_to_yuv420p ( unsigned char *  lum,
unsigned char *  cb,
unsigned char *  cr,
unsigned char *  alpha,
unsigned char *  src,
int  width,
int  height,
int  srcwidth 
)

Convert planar RGB to YUV420.

Despite the name, this actually converts to i420

Definition at line 484 of file yuv2rgb.cpp.

Referenced by OSDTypeImage::Load().

conv_i420_2vuy_fun get_i420_2vuy_conv ( void   ) 

Definition at line 1007 of file yuv2rgb.cpp.

Referenced by DVDV::DrawOSD(), and VideoOutputQuartz::Init().

conv_2vuy_i420_fun get_2vuy_i420_conv ( void   ) 

Returns 2VUY to I420 conversion function.

See http://developer.apple.com/quicktime/icefloe/dispatch019.html for a complete description of 2VUY and fourcc.org for YUV 4:2:0.

2vuy is a like a 8-bit per component YUV 4:2:2, but it's actually a Y'Cb'Cr sampling. 2vuy is packed with bytes [Cb, Y, Cr, Y] representing two pixels.

Returns:
A pointer to a 2VUY to I420 conversion function, which uses Altivec when supported.

Definition at line 1201 of file yuv2rgb.cpp.


Variable Documentation

yuv2rgb_fun yuv2rgb

Referenced by ifopalette(), and yuv2rgb().


Generated on Sat Dec 18 05:15:56 2010 for MythTV by  doxygen 1.5.5