X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Flossless_d.c;h=a130cb3a1f997a1064999e7abd2a73486ab9b83c;hb=77cbc8232f9308aafb17bde18ef9549be212b741;hp=a99a73e9a5d846182b7976c76fc8c4989ea000ca;hpb=8a8b4ae83ad19690f0cc51ebc9091d75ffc1cd8d;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/lossless_d.c b/src/gdcmjpegls/Decoder/lossless_d.c index a99a73e9..a130cb3a 100644 --- a/src/gdcmjpegls/Decoder/lossless_d.c +++ b/src/gdcmjpegls/Decoder/lossless_d.c @@ -73,7 +73,7 @@ inline int lossless_regular_mode_d(int Q, int SIGN, int Px) At = A[Q]; { /* Estimate k */ - register nst = Nt; + register int nst = Nt; for(k=0; nst < At; nst *=2, k++); } @@ -331,12 +331,11 @@ int lossless_undoscanline( pixel *psl, /* previous scanline */ /*** watch it! actual pixels in the scan line are numbered 1 to no . pixels with indices < 1 or > no are dummy "border" pixels */ { - int i, psfix; + int i; pixel Ra, Rb, Rc, Rd; int SIGN; int cont; - psfix = 0; /**********************************************/ @@ -542,7 +541,7 @@ int lossless_undoscanline_pixel(pixel *psl, /* previous scanline */ /*** watch it! actual pixels in the scan line are numbered 1 to no . pixels with indices < 1 or > no are dummy "border" pixels */ { - int i, psfix, n_c, color, enter_run=0, break_run, was_in_run = 0, + int i, n_c, color, was_in_run = 0, test_run; pixel Ra, Rb, Rc, Rd; pixel c_aa[MAX_COMPONENTS], @@ -555,7 +554,6 @@ int lossless_undoscanline_pixel(pixel *psl, /* previous scanline */ int SIGN; int cont,c_cont[MAX_COMPONENTS]; - psfix = 0; /**********************************************/ /* Do for all pixels in the row in 8-bit mode */ @@ -595,7 +593,7 @@ int lossless_undoscanline_pixel(pixel *psl, /* previous scanline */ Rd=c_dd[color]; cont=c_cont[color]; - enter_run = was_in_run = test_run = 0; + was_in_run = test_run = 0; if (color == 0) { test_run = 1; @@ -612,7 +610,7 @@ int lossless_undoscanline_pixel(pixel *psl, /* previous scanline */ register int n, m; - enter_run = was_in_run = 1; + was_in_run = 1; /* get length of the run */ /* arg is # of pixels left */ @@ -744,7 +742,7 @@ int lossless_undoscanline_pixel(pixel *psl, /* previous scanline */ Rd=c_dd[color]; cont=c_cont[color]; - enter_run = was_in_run = test_run = 0; + was_in_run = test_run = 0; if (color == 0) { test_run = 1; @@ -761,7 +759,7 @@ int lossless_undoscanline_pixel(pixel *psl, /* previous scanline */ register int n, m; - enter_run = was_in_run = 1; + was_in_run = 1; /* get length of the run */ /* arg is # of pixels left */