From 7924d3a456c04e376153900f39dc8928f5ae276b Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Wed, 23 Apr 2014 15:19:57 +0000 Subject: [PATCH] [trunk]removed '-x' option for index file as long as it's broken --- src/bin/jp2/opj_compress.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/bin/jp2/opj_compress.c b/src/bin/jp2/opj_compress.c index 8e9840f1..41959e20 100644 --- a/src/bin/jp2/opj_compress.c +++ b/src/bin/jp2/opj_compress.c @@ -104,7 +104,9 @@ static void encode_help_display(void) { fprintf(stdout," * No sub-sampling in x or y direction\n"); fprintf(stdout," * No mode switch activated\n"); fprintf(stdout," * Progression order: LRCP\n"); + #ifdef FIXME_INDEX fprintf(stdout," * No index file\n"); + #endif /* FIXME_INDEX */ fprintf(stdout," * No ROI upshifted\n"); fprintf(stdout," * No offset of the origin of the image\n"); fprintf(stdout," * No offset of the origin of the tiles\n"); @@ -196,7 +198,7 @@ static void encode_help_display(void) { fprintf(stdout,"-POC //...\n"); fprintf(stdout," Progression order change.\n"); fprintf(stdout," The syntax of a progression order change is the following:\n"); - fprintf(stdout," T=,,,,,\n"); + fprintf(stdout," T=,,,,,\n"); fprintf(stdout," Example: -POC T1=0,0,1,5,3,CPRL/T1=5,0,1,6,3,CPRL\n"); fprintf(stdout,"-SOP\n"); fprintf(stdout," Write SOP marker before each packet.\n"); @@ -212,8 +214,10 @@ static void encode_help_display(void) { fprintf(stdout," Divide packets of every tile into tile-parts.\n"); fprintf(stdout," Division is made by grouping Resolutions (R), Layers (L)\n"); fprintf(stdout," or Components (C).\n"); + #ifdef FIXME_INDEX fprintf(stdout,"-x \n"); fprintf(stdout," Create an index file.\n"); + #endif /*FIXME_INDEX*/ fprintf(stdout,"-ROI c=,U=\n"); fprintf(stdout," Quantization indices upshifted for a component. \n"); fprintf(stdout," Warning: This option does not implement the usual ROI (Region of Interest).\n"); @@ -308,6 +312,7 @@ static void encode_help_display(void) { #endif /* USE_JPWL */ /* <> */ + fprintf(stderr, + "[WARNING] Index file generation is currently broken.\n" + " '-x' option ignored.\n"); + /* << FIXME ADE INDEX */ } break;