X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Flossless_d.c;h=a130cb3a1f997a1064999e7abd2a73486ab9b83c;hb=9c76b9a60c1e859bfcd43f4089304827c8361be5;hp=3887127b054fc08c8ebc7efc631ef2ffaaed6103;hpb=94015b89675cf4431c7e4953a597b70cfde03bcc;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/lossless_d.c b/src/gdcmjpegls/Decoder/lossless_d.c index 3887127b..a130cb3a 100644 --- a/src/gdcmjpegls/Decoder/lossless_d.c +++ b/src/gdcmjpegls/Decoder/lossless_d.c @@ -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, 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 */