-
Notifications
You must be signed in to change notification settings - Fork 468
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
All IMF Profile Selections Result in PART1 #1337
Comments
I don't understand what you mean by multiplication by zero. And I can't confirm the bug. Using opj_compress -IMF 2K generates a file with rsiz=1024 |
In looking at the code it was creating a J2C with 0x0000 at byte offset 0x06, which is where the profile is stored. I checked the file with a hex editor and also with kdu_shows from Kakadu. jid-writer also rejects the resulting J2C as non-IMF profile. Here's the command I ran if you want to try to recreate, source is 3840x2160x16bpc: opj_compress -i 0000000.tif -o 0000000.j2c -IMF 4K_R,mainlevel=7,sublevel=0,framerate=24 |
Might be an issue with kdu_show. What I can tell is that my dump utility at shows |
When selecting the IMF profile, the evaluation of the RSIZ always results in 0x0000. This skips using any of the IMF constraints or settings, and creates a generic PART1 container.
The issue is in obj_compress.c at line 1212 (multiplication by 0):
parameters->rsiz = (OPJ_UINT16)(profile | (sublevel << 4) | mainlevel);
The text was updated successfully, but these errors were encountered: