[trunk]removed '-x' option for index file as long as it's broken
authorAntonin Descampe <antonin@gmail.com>
Wed, 23 Apr 2014 15:19:57 +0000 (15:19 +0000)
committerAntonin Descampe <antonin@gmail.com>
Wed, 23 Apr 2014 15:19:57 +0000 (15:19 +0000)
src/bin/jp2/opj_compress.c

index 8e9840f197c45121fc6c5fb196f2204e92a07078..41959e201f24f9d0e471f6c79ddb3a67aed50245 100644 (file)
@@ -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 <progression order change>/<progression order change>/...\n");
     fprintf(stdout,"    Progression order change.\n");
     fprintf(stdout,"    The syntax of a progression order change is the following:\n");
-    fprintf(stdout,"    T<nTile>=<nResStart>,<nCompStart>,<nLayerEnd>,<nResEnd>,<nCompEnd>,<ProgOrder>\n");
+    fprintf(stdout,"    T<tile>=<resStart>,<compStart>,<layerEnd>,<resEnd>,<compEnd>,<progOrder>\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  <index file>\n");
     fprintf(stdout,"    Create an index file.\n");
+    #endif /*FIXME_INDEX*/
     fprintf(stdout,"-ROI c=<component index>,U=<upshifting value>\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 */
     /* <<UniPG */
     fprintf(stdout,"\n");
+#ifdef FIXME_INDEX
     fprintf(stdout,"Index structure:\n");
     fprintf(stdout,"----------------\n");
     fprintf(stdout,"\n");
@@ -341,6 +346,7 @@ static void encode_help_display(void) {
     fprintf(stdout,"Tpacket_Np ''   ''    ''   ''    ''       ''       ''     ''\n");
     fprintf(stdout,"MaxDisto\n");
     fprintf(stdout,"TotalDisto\n\n");
+#endif /*FIXME_INDEX*/
 }
 
 static OPJ_PROG_ORDER give_progression(const char progression[4]) {
@@ -800,6 +806,11 @@ static int parse_cmdline_encoder(int argc, char **argv, opj_cparameters_t *param
         {
             char *index = opj_optarg;
             strncpy(indexfilename, index, OPJ_PATH_LEN);
+            /* FIXME ADE INDEX >> */
+            fprintf(stderr,
+                    "[WARNING] Index file generation is currently broken.\n"
+                    "          '-x' option ignored.\n");
+            /* << FIXME ADE INDEX */
         }
             break;