![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
ColorPacket; Image; unsigned int dumpToGif_quantizeImage (unsigned int number_colors, GString *buffer, voidDataFunc functionWait, gpointer data); void dumpToGif_syncImage (void); void dumpToGif_setImage (Image *data); DumpType* dumpToGif_init ();
typedef struct { unsigned char red, green, blue; unsigned short index; } ColorPacket;
A private structure used by the GIF conversion. It is usefull for all convertion from RGB to color table.
unsigned char |
red value ; |
unsigned char |
green value ; |
unsigned char |
blue value. |
unsigned short |
typedef struct { unsigned int columns, rows, colors; ColorPacket *colormap, *pixels, *packet; unsigned long packets; } Image;
A private structure used by the GIF conversion. It is usefull for all convertion from RGB to color table.
unsigned int |
number of columns ; |
unsigned int |
number of rows ; |
unsigned int |
number of colours ; |
ColorPacket * |
an array of colours ; |
ColorPacket * |
the definition for each pixels ; |
ColorPacket * |
?? |
unsigned long |
unsigned int dumpToGif_quantizeImage (unsigned int number_colors, GString *buffer, voidDataFunc functionWait, gpointer data);
This routine transform an RGB image to an indexed colours image. To set the image
to quantize, use setImage()
.
|
the number of desired colours ; |
|
a string to store some error messages ; |
|
a method that will be called during the quantize process ; |
|
an argument to give to the wait function. |
Returns : |
void dumpToGif_setImage (Image *data);
Set the image to be manipulated by the GIF convertor (see
dumpToGif_quantizeImage()
).
|
DumpType* dumpToGif_init ();
This routine should not be used since it inialised the module and is already called when V_Sim is launched.
Returns : |