#include <l1394_converter.h>
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) |
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.
Definition at line 50 of file l1394_converter.h.
|
constructor
Definition at line 24 of file l1394_converter.cpp. |
|
destructor
Definition at line 26 of file l1394_converter.cpp. |
|
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);
Definition at line 101 of file l1394_converter.cpp. |
|
Definition at line 86 of file l1394_converter.cpp. |
|
Definition at line 36 of file l1394_converter.cpp. References CLIPPED, and L1394_FAILED. Referenced by main(). |