X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Fglobal.h;h=6bf1206d49b77984582e574e66391d973ac0836e;hb=6278320cc85da00d2d56ffbf07806e84966892c3;hp=8f80731f7da4c2abf3bcfbd207b49ae811903bc5;hpb=8a8b4ae83ad19690f0cc51ebc9091d75ffc1cd8d;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/global.h b/src/gdcmjpegls/Decoder/global.h index 8f80731f..6bf1206d 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 @@ -90,12 +91,10 @@ #define DEFAULT_COLOR_MODE LINE_INT -extern char *plane_int_string, - *line_int_string, - *pixel_int_string; - +#ifndef BIG_ENDIAN #define BIG_ENDIAN 1 +#endif typedef struct jpeg_ls { @@ -148,8 +147,6 @@ extern int sampling[MAX_COMPONENTS]; #define RIGHTMARGIN 1 -extern char *disclaimer; - /* alphabet size */ #define MAXA8 (256) @@ -331,9 +328,12 @@ extern int N[TOT_CONTEXTS], /****** Function prototypes */ /* global.c */ -void error(char *msg); +void error(const 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 +348,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 +361,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)