file-tiff-load: Remove function's dead args
This commit is contained in:
@ -138,7 +138,6 @@ static void load_paths (TIFF *tif,
|
|||||||
static void read_separate (const guchar *source,
|
static void read_separate (const guchar *source,
|
||||||
channel_data *channel,
|
channel_data *channel,
|
||||||
gushort bps,
|
gushort bps,
|
||||||
gushort photomet,
|
|
||||||
gint startcol,
|
gint startcol,
|
||||||
gint startrow,
|
gint startrow,
|
||||||
gint rows,
|
gint rows,
|
||||||
@ -1555,7 +1554,7 @@ load_lines (TIFF *tif,
|
|||||||
for (i = 0; i < rows; ++i)
|
for (i = 0; i < rows; ++i)
|
||||||
TIFFReadScanline(tif, buffer + i * lineSize, y + i, s);
|
TIFFReadScanline(tif, buffer + i * lineSize, y + i, s);
|
||||||
|
|
||||||
read_separate (buffer, channel, bps, photomet,
|
read_separate (buffer, channel, bps,
|
||||||
y, 0, rows, cols, alpha, extra, s);
|
y, 0, rows, cols, alpha, extra, s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2144,7 +2143,6 @@ static void
|
|||||||
read_separate (const guchar *source,
|
read_separate (const guchar *source,
|
||||||
channel_data *channel,
|
channel_data *channel,
|
||||||
gushort bps,
|
gushort bps,
|
||||||
gushort photomet,
|
|
||||||
gint startrow,
|
gint startrow,
|
||||||
gint startcol,
|
gint startcol,
|
||||||
gint rows,
|
gint rows,
|
||||||
@ -2164,14 +2162,9 @@ read_separate (const guchar *source,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sample < channel[0].drawable->bpp)
|
if (sample < channel[0].drawable->bpp)
|
||||||
{
|
|
||||||
c = 0;
|
c = 0;
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
c = (sample - channel[0].drawable->bpp) + 4;
|
c = (sample - channel[0].drawable->bpp) + 4;
|
||||||
photomet = PHOTOMETRIC_MINISBLACK;
|
|
||||||
}
|
|
||||||
|
|
||||||
gimp_pixel_rgn_init (&(channel[c].pixel_rgn), channel[c].drawable,
|
gimp_pixel_rgn_init (&(channel[c].pixel_rgn), channel[c].drawable,
|
||||||
startcol, startrow, cols, rows, TRUE, FALSE);
|
startcol, startrow, cols, rows, TRUE, FALSE);
|
||||||
|
Reference in New Issue
Block a user