75dfa6a6fb
Add packJPG filter for Jpeg files (not active yet). Directory format changes for clarity.
40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
// packJPGlib.h - function declarations for the packJPG library
|
|
#if defined BUILD_DLL
|
|
#define EXPORT __declspec( dllexport )
|
|
#else
|
|
#define EXPORT extern
|
|
#endif
|
|
|
|
/* -----------------------------------------------
|
|
function declarations: library only functions
|
|
----------------------------------------------- */
|
|
|
|
EXPORT bool pjglib_convert_stream2stream( char* msg );
|
|
EXPORT bool pjglib_convert_file2file( char* in, char* out, char* msg );
|
|
EXPORT bool pjglib_convert_stream2mem( unsigned char** out_file, unsigned int* out_size, char* msg );
|
|
EXPORT void pjglib_init_streams( void* in_src, int in_type, int in_size, void* out_dest, int out_type );
|
|
EXPORT const char* pjglib_version_info( void );
|
|
EXPORT const char* pjglib_short_name( void );
|
|
|
|
/* a short reminder about input/output stream types
|
|
for the pjglib_init_streams() function
|
|
|
|
if input is file
|
|
----------------
|
|
in_scr -> name of input file
|
|
in_type -> 0
|
|
in_size -> ignore
|
|
|
|
if input is memory
|
|
------------------
|
|
in_scr -> array containg data
|
|
in_type -> 1
|
|
in_size -> size of data array
|
|
|
|
if input is *FILE (f.e. stdin)
|
|
------------------------------
|
|
in_src -> stream pointer
|
|
in_type -> 2
|
|
in_size -> ignore
|
|
|
|
vice versa for output streams! */
|