X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Flossy_d.c;fp=src%2Fgdcmjpegls%2FDecoder%2Flossy_d.c;h=a84c4c9dc14bfd41da3a918cef0b9dc2a44b2f4e;hb=47d5f7773f491efc3f8d687bd0c8f128cb811eb3;hp=113080141b38f6dc39c7fe379d53bcaf8a9c14ee;hpb=6eb3253fc3c73bea6a5fdd1fd796f1349af093ac;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/lossy_d.c b/src/gdcmjpegls/Decoder/lossy_d.c index 11308014..a84c4c9d 100644 --- a/src/gdcmjpegls/Decoder/lossy_d.c +++ b/src/gdcmjpegls/Decoder/lossy_d.c @@ -311,14 +311,12 @@ int lossy_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; int run_int_type; - psfix = 0; - /**********************************************/ /* Do for all pixels in the row in 8-bit mode */ /**********************************************/ @@ -517,7 +515,7 @@ int lossy_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], @@ -528,8 +526,6 @@ int lossy_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 */ @@ -569,7 +565,7 @@ int lossy_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; @@ -586,7 +582,7 @@ int lossy_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 */ @@ -720,7 +716,7 @@ int lossy_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; @@ -737,7 +733,7 @@ int lossy_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 */