![]() |
Image Component Library (ICL)
|
Utility class for decoding JPEG-Data streams (with ICL_HAVE_LIBJPEG only) More...
#include <JPEGDecoder.h>
Static Public Member Functions | |
| static void | decode (utils::File &file, core::ImgBase **dst) |
| Decode JPEG-File (E.g. used for FileGrabberPluginJPEG) More... | |
| static void | decode (const unsigned char *data, unsigned int maxDataLen, core::ImgBase **dst) |
| Decode a data stream (E.g. used for Decoding Motion-JPEG streams in unicap's DefaultConvertEngine) More... | |
Static Private Member Functions | |
| static void | decode_internal (utils::File *file, const unsigned char *data, unsigned int maxDataLen, core::ImgBase **dst) |
| internal utility function, which does all the work More... | |
Utility class for decoding JPEG-Data streams (with ICL_HAVE_LIBJPEG only)
|
static |
Decode JPEG-File (E.g. used for FileGrabberPluginJPEG)
| file | must be opened in mode readBinary or not opend |
| dst | image, which is adapted to the found image parameters |
|
static |
Decode a data stream (E.g. used for Decoding Motion-JPEG streams in unicap's DefaultConvertEngine)
| data | jpeg data stream (must be valid, otherwise unpredictable behaviour occurs |
| maxDataLen | length of the given data pointer Note:This is just an upper limit to avoid segmentation faults on corrupted jpeg data (e.g. end-of-image-marker is missing). The given data pointer can be much longer then the actual jpeg data. If that is the case, libjpeg obviously reads only necessary bytes. |
| dst | destination image, which is adapted to the found images parameters |
|
staticprivate |
internal utility function, which does all the work
1.8.15