What exactly is the format of the encoded files? The man page suggests either jp2 or j2k:
|
Valid output image extensions are |
|
.B .j2k, .jp2 |
Yet the files produced have a magic number in the beginning: ff 4f ff 51. In every reference I've found this would be "codestream" data, and the suggested extensions are different ones, eg "j2c". The extension "jp2" would be associated with a file format that has a different magic number.
I'm no jpeg2000 expert, just trying to understand the differences. Would it be ok to name the output of opj_compress with a "j2c" extension? Are these files actually interchangeable with whatever other jpeg2000 files that have a different magic number?
What exactly is the format of the encoded files? The man page suggests either jp2 or j2k:
openjpeg/doc/man/man1/opj_compress.1
Lines 42 to 43 in d33cbec
Yet the files produced have a magic number in the beginning:
ff 4f ff 51. In every reference I've found this would be "codestream" data, and the suggested extensions are different ones, eg "j2c". The extension "jp2" would be associated with a file format that has a different magic number.I'm no jpeg2000 expert, just trying to understand the differences. Would it be ok to name the output of opj_compress with a "j2c" extension? Are these files actually interchangeable with whatever other jpeg2000 files that have a different magic number?