You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following problem which is not strictly related to fuzz.
I want to process a RAW file created by openjpeg itself:
# opj_decompress -i file.jp2 -o file.raw
[INFO] Start to read j2k main header (85).
[INFO] Main header has been correctly decoded.
[INFO] No decoded area parameters, set the decoded area to the whole image
[INFO] Header of tile 1 / 1 has been read.
[INFO] Stream reached its end !
Raw image characteristics: 3 components
Component 0 characteristics: 1x1x8 unsigned
Component 1 characteristics: 1x1x8 unsigned
Component 2 characteristics: 1x1x8 unsigned
[INFO] Generated Outfile file.raw
decode time: 1 ms
It succeeded.
Well, now I want to test the raw file with opj_compress:
# opj_compress -i file.raw -o null.j2k
[ERROR] invalid raw image parameters
Please use the Format option -F:
-F rawWidth,rawHeight,rawComp,rawBitDepth,s/u (Signed/Unsigned)
Example: -i lena.raw -o lena.j2k -F 512,512,3,8,u
Aborting
Let me retry as suggested:
# opj_compress -i file.raw -o null.j2k -F 512,512,3,8,u
Error reading raw file. End of file probably reached.
Unable to load raw file
Any hint?
The text was updated successfully, but these errors were encountered:
Well, the example is just an example ;-) You need to adjust with the values that apply in your case. So here, looking at the output of opj_decompress, that would likely be -F 1,1,3,8,u
[ERROR] Number of resolutions is too high in comparison to the size of tiles
failed to encode image: opj_start_compress
failed to encode image: opj_encode
failed to encode image: opj_end_compress
failed to encode image
I have the following problem which is not strictly related to fuzz.
I want to process a RAW file created by openjpeg itself:
It succeeded.
Well, now I want to test the raw file with opj_compress:
Let me retry as suggested:
Any hint?
The text was updated successfully, but these errors were encountered: