diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-08-30 09:51:20 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2007-08-30 09:51:20 +0000 |
| commit | acfe0ad6458db913aac469804d4d17bea671682a (patch) | |
| tree | 3a8d4afee950198a5f8fa1c3acff2f96d0cdd7e5 /mj2 | |
| parent | d07fa5d9d0b5f3452831e4c0c9da1f03d30a1299 (diff) | |
Changed the OpenJPEG library interface to enable users to access information regarding the codestream (also called index).
Diffstat (limited to 'mj2')
| -rw-r--r-- | mj2/frames_to_mj2.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/mj2/frames_to_mj2.c b/mj2/frames_to_mj2.c index a519bda1..c780fd11 100644 --- a/mj2/frames_to_mj2.c +++ b/mj2/frames_to_mj2.c @@ -142,8 +142,6 @@ void help_display() fprintf (stdout," ex: RESTART(4) + RESET(2) + SEGMARK(32) = -M 38\n"); fprintf - (stdout,"-x : create an index file *.Idx (-x index_name.Idx) \n"); - fprintf (stdout,"-ROI : c=%%d,U=%%d : quantization indices upshifted \n"); fprintf (stdout," for component c=%%d [%%d = 0,1,2]\n"); @@ -241,7 +239,7 @@ int main(int argc, char **argv) opj_cinfo_t* cinfo; bool bSuccess; int numframes; - double total_time = 0; + double total_time = 0; /* default value */ /* ------------- */ @@ -279,7 +277,7 @@ int main(int argc, char **argv) while (1) { int c = getopt(argc, argv, - "i:o:r:q:f:t:n:c:b:x:p:s:d:h P:S:E:M:R:T:C:I:W:F:"); + "i:o:r:q:f:t:n:c:b:p:s:d:h P:S:E:M:R:T:C:I:W:F:"); if (c == -1) break; switch (c) { @@ -462,14 +460,6 @@ int main(int argc, char **argv) } break; /* ----------------------------------------------------- */ - case 'x': /* creation of index file */ - { - char *index = optarg; - strncpy(j2k_parameters->index, index, sizeof(j2k_parameters->index)-1); - j2k_parameters->index_on = 1; - } - break; - /* ----------------------------------------------------- */ case 'p': /* progression order */ { char progression[4]; @@ -743,7 +733,7 @@ int main(int argc, char **argv) cio_write(cio, JP2_JP2C, 4); // JP2C /* encode the image */ - bSuccess = opj_encode(cinfo, cio, img, j2k_parameters->index); + bSuccess = opj_encode(cinfo, cio, img, NULL); if (!bSuccess) { opj_cio_close(cio); fprintf(stderr, "failed to encode image\n"); |
