Input file format bug fixed (2)
This commit is contained in:
parent
542f06007c
commit
34a6c13a2d
|
@ -686,7 +686,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (cp.decod_format) {
|
switch (cp.decod_format) {
|
||||||
case 0:
|
case PGX_DFMT:
|
||||||
if (Tile_arg) {
|
if (Tile_arg) {
|
||||||
if (!pgxtoimage
|
if (!pgxtoimage
|
||||||
(infile, &img, cp.tdy, subsampling_dx, subsampling_dy, Dim, cp))
|
(infile, &img, cp.tdy, subsampling_dx, subsampling_dy, Dim, cp))
|
||||||
|
@ -703,14 +703,14 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case PXM_DFMT:
|
||||||
if (!pnmtoimage(infile, &img, subsampling_dx, subsampling_dy, Dim)) {
|
if (!pnmtoimage(infile, &img, subsampling_dx, subsampling_dy, Dim)) {
|
||||||
fprintf(stderr, " not a pnm file\n");
|
fprintf(stderr, " not a pnm file\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case BMP_DFMT:
|
||||||
if (!bmptoimage(infile, &img, subsampling_dx, subsampling_dy, Dim)) {
|
if (!bmptoimage(infile, &img, subsampling_dx, subsampling_dy, Dim)) {
|
||||||
fprintf(stderr, " not a bmp file\n");
|
fprintf(stderr, " not a bmp file\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue