]> Creatis software - gdcm.git/blobdiff - src/gdcmjpegls/Decoder/global.h
use GDCM_NAME_SPACE:: instead of gdcm::, even in Examples ...
[gdcm.git] / src / gdcmjpegls / Decoder / global.h
index 8f80731f7da4c2abf3bcfbd207b49ae811903bc5..6bf1206d49b77984582e574e66391d973ac0836e 100644 (file)
@@ -52,6 +52,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
+#include "jpegls_config.h"
 
 #ifndef GLOBAL_H
 #define GLOBAL_H
 
 #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)