Hi,
I have a simulation where GUI_NUMBYTES is defined with 0x200 000, but in my source code it's only defined with 0x2 000.
The size of my GIF exceed 0x2000, so i can't see the animation on the target. The "GUI_GIF_GetInfo" function result set always the number of image to 0 as greater than max defined.
My code is very simple:
Display All
As it's only a compilation of image, is there any other way to display GIF?
Thanks
Mathieu
I have a simulation where GUI_NUMBYTES is defined with 0x200 000, but in my source code it's only defined with 0x2 000.
The size of my GIF exceed 0x2000, so i can't see the animation on the target. The "GUI_GIF_GetInfo" function result set always the number of image to 0 as greater than max defined.
My code is very simple:
Source Code
- void PlayGIF(const unsigned char * pFile, unsigned long FileSize, int XPos, int YPos, int NbPlay)
- {
- int i, j;
- GUI_GIF_INFO GifInfo = {0}; /* Info structure of GIF file */
- GUI_GIF_IMAGE_INFO ImageInfo = {0}; /* Info structure of one particular GIF image of the GIF file */
- /* Show movie */
- GUI_GIF_GetInfo(pFile, FileSize, &GifInfo); /* Get GIF info structure */
- for (i = 0; i < NbPlay; i++) /* Show the complete GIF 2 times ... */
- {
- for (j = 0; j < GifInfo.NumImages; j++)
- {
- GUI_GIF_DrawSub(pFile, FileSize, XPos, YPos, j); /* Draw sub image */
- GUI_GIF_GetImageInfo(pFile, FileSize, &ImageInfo, j); /* Get sub image information */
- GUI_Delay(20); /* Use the Delay member of the ImageInfo structure for waiting a while */
- }
- }
- }
As it's only a compilation of image, is there any other way to display GIF?
Thanks
Mathieu