Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

L1394_MM::Converter Class Reference
[L1394_Display]

This class provides functions to convert image formats. More...

#include <l1394_converter.h>

List of all members.

Public Member Functions

 Converter ()
 constructor
virtual ~Converter ()
 destructor
virtual l1394_converter getConverter (string source_format, string destination_format, bool mmx)
 With this function you can get a pointer to Converter routine you need.

Static Public Member Functions

static int UYVYtoBGRA32 (unsigned char *source, int source_size, unsigned char *destination)
static int RGB24toBGRA32 (unsigned char *source, int source_size, unsigned char *destination)


Detailed Description

This class provides functions to convert image formats.

The idea of this class is to say which source and destination format yo need, and this class returns a pointer to the correct converter routine.
To add your own Converter functions inherit from this class and implement your own Converter routines. All Converter routines have the same parameter. The first parameter is an unsigned char pointer to the source array. The second parameter is an integer value with the size of the source array and the third parameter is an unsigned char pointer to the destination array. The destination array must have correct size.

This class is still under develop. The converter routines are still public. Use these functions instead the getConverter() function.

Author:
Michael Repplinger

Definition at line 50 of file l1394_converter.h.


Constructor & Destructor Documentation

L1394_MM::Converter::Converter  ) 
 

constructor

Definition at line 24 of file l1394_converter.cpp.

L1394_MM::Converter::~Converter  )  [virtual]
 

destructor

Definition at line 26 of file l1394_converter.cpp.


Member Function Documentation

L1394_MM::Converter::getConverter string  source_format,
string  destination_format,
bool  mmx
[virtual]
 

With this function you can get a pointer to Converter routine you need.

You need to cast the void pointer to a Converter_t. Example:

 Converter c;
 l1394_converter converter = (l1394_converter) c.getConverter(YUV_422, RGB, 24, true);
 converter(source_pointer, source_size, destination_pointer);
Parameters:
source_format : source format of your image
destination_format : format you will decode the image
color_depth : color depth of your destination format
mmx : if true a mmx optimized function will be returned (if one exist), else a normal C-routine.
Returns:
void* : pointer to the converter function, or NULL, if no converter exist

Definition at line 101 of file l1394_converter.cpp.

int L1394_MM::Converter::RGB24toBGRA32 unsigned char *  source,
int  source_size,
unsigned char *  destination
[static]
 

Definition at line 86 of file l1394_converter.cpp.

int L1394_MM::Converter::UYVYtoBGRA32 unsigned char *  source,
int  source_size,
unsigned char *  destination
[static]
 

Definition at line 36 of file l1394_converter.cpp.

References CLIPPED, and L1394_FAILED.

Referenced by main().


The documentation for this class was generated from the following files:
Generated on Wed Aug 24 00:36:46 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/