-
Notifications
You must be signed in to change notification settings - Fork 456
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
Correctly decode files with incorrect tile-part header fields (TPsot==TNsot) #514
Conversation
@detonin , All tests OK (see #254 for details). Given all comments in #254, I think it's OK to merge. |
This patch for issue254 has a drawback. I downloaded openjpeg-master on 2015-06-23 and found But the decompressed images (PNG, BMP, etc) are all unsharp and washed out as the 'original' JP2 The last patch from mdarbois was OK: JP2 and decompressed images are all sharp. winfried |
@mayeut Thanks for the PR. For now, I propose you add a build option which would be enabled by default. Once we change API/ABI, I suggest to add a commandline option, such as "--robust" or sth like that to enable robustness against corrupted codestreams (at a price of small performance decrease). By the way, this PR triggers 4 additional MD5 failing tests. Corresponding MD5 files shall be updated accordingly ... Could you also take care of that ? Many thanks; @szukw000 Could you give a link to the corresponding JP2 image ? |
The file: data/input/nonregression/issue254.jp2 Broken opj_decompress in: openjpeg-git-2015-06-29 Perfect opj_decompress in: openjpeg-2.x-trunk-r3007 patched with: For those interested, Reported by mayeut on 2015-06-05 19:03:36 issue254-r3007.patch winfried |
In openjpeg-git-2015-06-29 I have now included 'flviewer'. And found that the That my viewer shows a sharp JP2 image does have a simple reason: the viewer Does the above mentioned fix really fix the cyrillic image of issue254? winfried |
The issue254-r3007.patch is this PR. It was created by a git diff between master (synced to r3007 thanks to @detonin ) & my issue-254 branch. |
Correctly decode files with incorrect tile-part header fields (TPsot==TNsot) Fixes #254
@mayeut , winfried |
Behavior of this PR will be partly changed by #1560 |
fixes #254