fixed help display (patch from winfried)
This commit is contained in:
parent
b6102e207c
commit
c515199674
3
CHANGES
3
CHANGES
|
@ -5,6 +5,9 @@ What's New for OpenJPEG
|
||||||
! : changed
|
! : changed
|
||||||
+ : added
|
+ : added
|
||||||
|
|
||||||
|
October 20, 2010
|
||||||
|
* [antonin] fixed help display (patch from winfried)
|
||||||
|
|
||||||
October 20, 2010
|
October 20, 2010
|
||||||
* [antonin]
|
* [antonin]
|
||||||
fixed paths to png and tiff in CMakeLists.txt (patch from winfried)
|
fixed paths to png and tiff in CMakeLists.txt (patch from winfried)
|
||||||
|
|
|
@ -1411,9 +1411,8 @@ int parse_cmdline_encoder(int argc, char **argv, opj_cparameters_t *parameters,
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if((parameters->infile[0] == 0) || (parameters->outfile[0] == 0)) {
|
if((parameters->infile[0] == 0) || (parameters->outfile[0] == 0)) {
|
||||||
fprintf(stderr, "Error: One of the options; -i or -ImgDir must be specified\n");
|
fprintf(stderr, "Example: %s -i image.ppm -o image.j2k\n",argv[0]);
|
||||||
fprintf(stderr, "Error: When using -i; -o must be used\n");
|
fprintf(stderr, " Try: %s -h\n",argv[0]);
|
||||||
fprintf(stderr, "usage: image_to_j2k -i image-file -o j2k/jp2-file (+ options)\n");
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -274,8 +274,8 @@ int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *parameters,i
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if((parameters->infile[0] == 0) ) {
|
if((parameters->infile[0] == 0) ) {
|
||||||
fprintf(stderr, "Error: One of the options -i or -ImgDir must be specified\n");
|
fprintf(stderr, "Example: %s -i image.j2k\n",argv[0]);
|
||||||
fprintf(stderr, "usage: image_to_j2k -i *.j2k/jp2/j2c (+ options)\n");
|
fprintf(stderr, " Try: %s -h\n",argv[0]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -478,9 +478,8 @@ int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *parameters,i
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if((parameters->infile[0] == 0) || (parameters->outfile[0] == 0)) {
|
if((parameters->infile[0] == 0) || (parameters->outfile[0] == 0)) {
|
||||||
fprintf(stderr, "Error: One of the options -i or -ImgDir must be specified\n");
|
fprintf(stderr, "Example: %s -i image.j2k -o image.pgm\n",argv[0]);
|
||||||
fprintf(stderr, "Error: When using -i, -o must be used\n");
|
fprintf(stderr, " Try: %s -h\n",argv[0]);
|
||||||
fprintf(stderr, "usage: image_to_j2k -i *.j2k/jp2/j2c -o *.pgm/ppm/pnm/pgx/bmp/tif/raw/tga(+ options)\n");
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue