Dear sirs,
by long time we are successfully using emWin.
We use emWin on NXP LPC1788 mcu + 4.3 or 7 inches color displays.
During the last days we are facing a very strange problem on JPG file visualization. We normally use GUI_JPEG_DrawScaledEx(GUI_GET_DATA_FUNC * pfGetData, void * p, int x0, int y0, int Num, int Denom)
but some JPG file make the whole application crash!! The file is normally shown on PC/Windows and it is not a dimension/memory problem; it seems it is related to that file only!
We attached such a file.
In the last years we know that JPG file format has changed and several new markers have been added to header section (like JFIF, EXIF, etc.) and we suspect that emWin library has some problems with Progressive JPG file (its related marker is 0xFF 0xC2). Is it possible? Is there a list where allowed JPG sub-format are shown? Or we ask for a suggestion to read these markers on JPG file (actually we have only GUI_JPEG_GetInfo(const void * pFileData, int DataSize, GUI_JPEG_INFO * pInfo) that returns X and Y dimensions only).
Thank you in advance.
Best regards,
Valter Rasicci
by long time we are successfully using emWin.
We use emWin on NXP LPC1788 mcu + 4.3 or 7 inches color displays.
During the last days we are facing a very strange problem on JPG file visualization. We normally use GUI_JPEG_DrawScaledEx(GUI_GET_DATA_FUNC * pfGetData, void * p, int x0, int y0, int Num, int Denom)
but some JPG file make the whole application crash!! The file is normally shown on PC/Windows and it is not a dimension/memory problem; it seems it is related to that file only!
We attached such a file.
In the last years we know that JPG file format has changed and several new markers have been added to header section (like JFIF, EXIF, etc.) and we suspect that emWin library has some problems with Progressive JPG file (its related marker is 0xFF 0xC2). Is it possible? Is there a list where allowed JPG sub-format are shown? Or we ask for a suggestion to read these markers on JPG file (actually we have only GUI_JPEG_GetInfo(const void * pFileData, int DataSize, GUI_JPEG_INFO * pInfo) that returns X and Y dimensions only).
Thank you in advance.
Best regards,
Valter Rasicci