summaryrefslogtreecommitdiff
path: root/codec/image_to_j2k.c
diff options
context:
space:
mode:
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-10-18 08:14:43 +0000
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>2007-10-18 08:14:43 +0000
commit5fdc05d18d4831ead22948950ba279fadfc6b71d (patch)
treea12b16b28519dd4d76fa7ed056d3324e8c22b2af /codec/image_to_j2k.c
parent1f11a4fe903ef65fa31d579b3fec4e56e7a26c37 (diff)
Changed the ROI parameter in the image_to_j2k codec to make it correspond to the documentation (i.e. -ROI c=0,U=25)
Diffstat (limited to 'codec/image_to_j2k.c')
-rw-r--r--codec/image_to_j2k.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c
index 06b1215e..470bd119 100644
--- a/codec/image_to_j2k.c
+++ b/codec/image_to_j2k.c
@@ -199,7 +199,7 @@ void encode_help_display() {
fprintf(stdout,"\n");
fprintf(stdout,"-ROI : c=%%d,U=%%d : quantization indices upshifted \n");
fprintf(stdout," for component c=%%d [%%d = 0,1,2]\n");
- fprintf(stdout," with a value of U=%%d [0 <= %%d <= 37] (i.e. -ROI:c=0,U=25) \n");
+ fprintf(stdout," with a value of U=%%d [0 <= %%d <= 37] (i.e. -ROI c=0,U=25) \n");
fprintf(stdout,"\n");
fprintf(stdout,"-d : offset of the origin of the image (-d 150,300) \n");
fprintf(stdout,"\n");
@@ -845,6 +845,7 @@ int parse_cmdline_encoder(int argc, char **argv, opj_cparameters_t *parameters,
{"EPH",NO_ARG, NULL ,'E'},
{"OutFor",REQ_ARG, NULL ,'O'},
{"POC",REQ_ARG, NULL ,'P'},
+ {"ROI",REQ_ARG, NULL ,'R'},
};
/* parse the command line */
@@ -1219,9 +1220,9 @@ int parse_cmdline_encoder(int argc, char **argv, opj_cparameters_t *parameters,
case 'R': /* ROI */
{
- if (sscanf(optarg, "OI:c=%d,U=%d", &parameters->roi_compno,
+ if (sscanf(optarg, "c=%d,U=%d", &parameters->roi_compno,
&parameters->roi_shift) != 2) {
- fprintf(stderr, "ROI error !! [-ROI:c='compno',U='shift']\n");
+ fprintf(stderr, "ROI error !! [-ROI c='compno',U='shift']\n");
return 1;
}
}