1 // 2 // (C) Jan de Vaan 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use. 3 // 4 5 6 #ifndef JLS_INTERFACE 7 #define JLS_INTERFACE 8 9 #include "pubtypes.h" 10 #include "dcmtk/ofstd/ofstd.h" /* for size_t */ 11 #include "dcmtk/ofstd/ofdefine.h" /* for DCMTK_DECL_EXPORT */ 12 13 #ifdef dcmtkcharls_EXPORTS 14 #define DCMTK_CHARLS_EXPORT DCMTK_DECL_EXPORT 15 #else 16 #define DCMTK_CHARLS_EXPORT DCMTK_DECL_IMPORT 17 #endif 18 19 #ifndef CHARLS_IMEXPORT 20 #define CHARLS_IMEXPORT(returntype) DCMTK_CHARLS_EXPORT returntype 21 #endif 22 23 24 #ifdef __cplusplus 25 extern "C" 26 { 27 #endif 28 CHARLS_IMEXPORT(enum JLS_ERROR) JpegLsEncode(BYTE **ptr, size_t *size, size_t* pcbyteWritten, 29 const void* uncompressedData, size_t uncompressedLength, struct JlsParameters* pparams); 30 31 CHARLS_IMEXPORT(enum JLS_ERROR) JpegLsDecode(void* uncompressedData, size_t uncompressedLength, 32 const void* compressedData, size_t compressedLength, 33 struct JlsParameters* info); 34 35 36 CHARLS_IMEXPORT(enum JLS_ERROR) JpegLsDecodeRect(void* uncompressedData, size_t uncompressedLength, 37 const void* compressedData, size_t compressedLength, 38 struct JlsRect rect, struct JlsParameters* info); 39 40 CHARLS_IMEXPORT(enum JLS_ERROR) JpegLsReadHeader(const void* compressedData, size_t compressedLength, 41 struct JlsParameters* pparams); 42 43 CHARLS_IMEXPORT(enum JLS_ERROR) JpegLsVerifyEncode(const void* uncompressedData, size_t uncompressedLength, 44 const void* compressedData, size_t compressedLength); 45 46 #ifdef __cplusplus 47 } 48 #endif 49 50 #endif 51