X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Fglobal.h;h=e7412bd05b2c59233fd10da17eda001d6d396f71;hb=d231595f2ad64eb1921bef15a7423c6ea6433398;hp=8f80731f7da4c2abf3bcfbd207b49ae811903bc5;hpb=8a8b4ae83ad19690f0cc51ebc9091d75ffc1cd8d;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/global.h b/src/gdcmjpegls/Decoder/global.h index 8f80731f..e7412bd0 100644 --- a/src/gdcmjpegls/Decoder/global.h +++ b/src/gdcmjpegls/Decoder/global.h @@ -52,6 +52,7 @@ #include #include #include +#include "jpegls_config.h" #ifndef GLOBAL_H #define GLOBAL_H @@ -95,7 +96,9 @@ extern char *plane_int_string, *pixel_int_string; +#ifndef BIG_ENDIAN #define BIG_ENDIAN 1 +#endif typedef struct jpeg_ls { @@ -334,6 +337,9 @@ extern int N[TOT_CONTEXTS], void error(char *msg); void *safealloc(size_t size); void *safecalloc(size_t numels, size_t size); +double get_utime(); +int set_thresholds(int alfa, int NEAR, int *T1p, int *T2p, int *T3p); +void check_compatibility(jpeg_ls_header *head_frame, jpeg_ls_header *head_scan, int n_s); /* scanline.c */ void prepareLUTs(); @@ -348,6 +354,8 @@ void bitiinit(); void bitflush(); void createzeroLUT(); void buffinit(FILE *); +void bufiinit(FILE *fil); +void bitiflush(); /* melcode.c */ void init_process_run(int); @@ -359,6 +367,15 @@ void prepareLUTs(); void prepare_qtables(int, int); void init_stats(int); +/* lossless_d.c */ +int lossless_undoscanline( pixel *psl, pixel *sl, int no, int color); +int lossless_undoscanline_pixel(pixel *psl, pixel *sl, int no); + +/* lossy_d.c */ +int lossy_undoscanline( pixel *psl, pixel *sl, int no, int color); +int lossy_undoscanline_pixel( pixel *psl, pixel *sl, int no); + + #ifdef BIG_ENDIAN # define ENDIAN8(x) (x) # define ENDIAN16(x) (x)