Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-SOP option not correctly parsed? #78

Closed
gcode-importer opened this issue Aug 6, 2011 · 5 comments
Closed

-SOP option not correctly parsed? #78

gcode-importer opened this issue Aug 6, 2011 · 5 comments

Comments

@gcode-importer
Copy link

Originally reported on Google Code with ID 78

What steps will reproduce the problem?
1. image_to_j2k -SOP -EPH test.tif test.j2k
2.
3.

What is the expected output? What do you see instead?
Compressed codestream with start of packet markers

What version of the product are you using? On what operating system?
rev 850 on fedora 14 64 bit

Please provide any additional information below.


Reported by luca.trisciani on 2011-08-06 18:52:17

@gcode-importer
Copy link
Author

Excuse me, I mean:

image_to_j2k -SOP -EPH -i test.tif -o test.j2k
image_to_j2k: invalid option -- 'O'
ERROR -> Command line not valid

Reported by luca.trisciani on 2011-08-06 18:56:22

@gcode-importer
Copy link
Author

Using Linux, I have tested this command with revisions 680, 697
and 850: three times accepted, no "invalid option -- 'O'".

'image_to_j2k.c' should contain 

    option_t long_option[]={
(...)
    {"SOP",NO_ARG, NULL ,'S'},
(...)
   };

winfried

Reported by szukw000 on 2011-08-07 20:46:27

@gcode-importer
Copy link
Author

Thank you for testing. I checked the program lines, I have the same as you indicated
rev850).
But I have to insist, on my linux system Fedora 14 2.6.35.13-92.fc14.x86_64 
the option -SOP will give that error.
This one will function:
image_to_j2k -EPH -i test.tif -o test.j2k
but these will not function:
image_to_j2k -SOP -i test.tif -o test.j2k
image_to_j2k -SOP -EPH -i test.tif -o test.j2k
image_to_j2k -EPH -SOP -i test.tif -o test.j2k
Through your comment I have now found out that this will function:
image_to_j2k -S -EPH -i test.tif -o test.j2k

Luca

Reported by luca.trisciani on 2011-08-07 21:50:41

@gcode-importer
Copy link
Author

Hi,
You could find some examples of this weird behavior between the different configuration
available on the dashboard: http://my.cdash.org/testSummary.php?project=237&name=NR-ENC-Bretagne2.ppm-6-encode&date=2011-09-01
. 
Win platform seems to parse correctly the SOP argument while Linux and MacOS not.

Perhaps it is linked to the version of getopt functions because with windows platform
we used getopt.c provided by the opj lib whereas with macOS and Linux we used system
one.

Mickaël

Reported by savmickael on 2011-09-01 08:10:05

@gcode-importer
Copy link
Author

fixed by r907.

Reported by detonin on 2011-09-01 11:25:26

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants