Fast colourspace transformations
[Image I/O]

Collaboration diagram for Fast colourspace transformations:

Mimas provides several fast algorithms for converting from different YUV formats to RGBA- and grey-level images. More...

Functions

void mimas::rgb_to_rgba (const char *in, int width, int height, char *out)
 Colour conversion from RGB to RGBA.
void mimas::yv12_to_rgba (const char *in, int width, int height, char *out)
 Colour conversion from YV12 to RGBA.
void mimas::yuv420p_to_rgba (const char *in, int width, int height, char *out)
 Colour conversion from YUV420p to RGBA.
void mimas::yuv420p_to_grey (const char *in, int width, int height, char *out)
 Colour conversion from YUV420p to grey.
void mimas::yv12_to_grey (const char *in, int width, int height, char *out)
 Colour conversion from YV12 to Grey.
void mimas::rgba_to_yv12 (const char *in, int width, int height, char *out)
 Colour conversion from RGBA to YV12.
void mimas::uyvy_to_rgba (const char *in, int width, int height, char *out)
 Colour conversion from UYVY to RGBA.
void mimas::yuy2_to_rgba (const char *in, int width, int height, char *out)
 Colour conversion from YUY2 to RGBA.
void mimas::yuy2_to_grey (const char *in, int width, int height, char *out)
 Colour conversion from YUY2 to grey.

Detailed Description

Mimas provides several fast algorithms for converting from different YUV formats to RGBA- and grey-level images.

There also is a transformation from RGBA to the YV12 format.

The methods are used internally by the image-I/O classes.

See https://www.fourcc.org/yuv.php and https://www.fourcc.org/fccyvrgb.php for more information on colourspaces.

See also:
Image I/O
Author:
Bala Amavasai (bpa@amavasai.org)

Jan Wedekind (jan at wedesoft.de)

Date:
Fri Jan 10 15:53:56 UTC 2006

Function Documentation

void mimas::rgb_to_rgba ( const char *  in,
int  width,
int  height,
char *  out 
)

Colour conversion from RGB to RGBA.

Adding A-byte to RGB.

Parameters:
in Input RGB data (8 bit)
width Width of input image
height Height of input image
out Pointer to store RGBA data in
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Fri Jan 10 11:40:53 UTC 2006

void mimas::rgba_to_yv12 ( const char *  in,
int  width,
int  height,
char *  out 
)

Colour conversion from RGBA to YV12.

Colourspace transformation from RGBA to YV12.

Parameters:
in Input RGBA data (8 bit)
width Width of input image
height Height of input image
out Pointer to store YV12 data in
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Fri Jan 10 11:40:53 UTC 2006

void mimas::uyvy_to_rgba ( const char *  in,
int  width,
int  height,
char *  out 
)

Colour conversion from UYVY to RGBA.

Colourspace transformation from UYVY to RGBA.

Parameters:
in Input UYVY data (8 bit)
width Width of input image
height Height of input image
out Pointer to store RGBA data in
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Fri Jan 10 11:40:53 UTC 2006

void mimas::yuv420p_to_grey ( const char *  in,
int  width,
int  height,
char *  out 
)

Colour conversion from YUV420p to grey.

Colourspace transformation from YUV420p to grey.

Parameters:
in Input YUV420p data (8 bit)
width Width of input image
height Height of input image
out Pointer to store grey data in
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Fri Jan 10 18:37:08 UTC 2006

void mimas::yuv420p_to_rgba ( const char *  in,
int  width,
int  height,
char *  out 
)

Colour conversion from YUV420p to RGBA.

Colourspace transformation from YUV420p to RGBA.

Parameters:
in Input YUV420p data (8 bit)
width Width of input image
height Height of input image
out Pointer to store RGBA data in
Author:
Bala Amavasai (bpa@amavasai.org)
Date:
Fri Jan 10 18:37:08 UTC 2006

void mimas::yuy2_to_grey ( const char *  in,
int  width,
int  height,
char *  out 
)

Colour conversion from YUY2 to grey.

Colourspace transformation from YUY2 to grey.

Parameters:
in Input YUY2 data (8 bit)
width Width of input image
height Height of input image
out Pointer to store grey data in
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Fri Jan 10 16:21:13 UTC 2006

void mimas::yuy2_to_rgba ( const char *  in,
int  width,
int  height,
char *  out 
)

Colour conversion from YUY2 to RGBA.

Colourspace transformation from YUY2 to RGBA.

Parameters:
in Input YUY2 data (8 bit)
width Width of input image
height Height of input image
out Pointer to store RGBA data in
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Fri Jan 10 11:40:53 UTC 2006

void mimas::yv12_to_grey ( const char *  in,
int  width,
int  height,
char *  out 
)

Colour conversion from YV12 to Grey.

Colourspace transformation from YV12 to Grey.

Parameters:
in Input YV12 data (8 bit)
width Width of input image
height Height of input image
out Pointer to store grey data in
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Fri Jan 10 11:40:53 UTC 2006

void mimas::yv12_to_rgba ( const char *  in,
int  width,
int  height,
char *  out 
)

Colour conversion from YV12 to RGBA.

Colourspace transformation from YV12 to RGBA.

Parameters:
in Input YV12 data (8 bit)
width Width of input image
height Height of input image
out Pointer to store RGBA data in
Author:
Jan Wedekind (jan at wedesoft.de)
Date:
Fri Jan 10 11:40:53 UTC 2006


[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:20 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...