Re: Enumerating j2k codestream boxes



Arash Partow <partow@xxxxxxxxx> wrote:
Hi all,

I'm trying to write an ECC scheme for jpeg2000 using RS. I've been
led to believe that the data is stored in structures known as boxes
in the j2k codestream.

No, I afraid this is wrong. A JP2 *file* contains boxes, and one of
the boxes (for part-1, otherwise several) contain(s) a codestream,
and the codestream itself consists of markers. Thus the question would
be what you really need. Boxes (meta-data) or markers (image data).

I was hoping if anyone could direct me to an open source library
preferably C\C++ that has support for accessing boxes (reading their
content), and inserting boxes into the codestream.

Nothing I would know about off-hands, but if you really mean the
box-structure, then this is actually easy. Boxes consist of a four
byte length (or an eight-byte length indicator) and a four byte type ID.
It's really pretty easy and parsing this structure by a program requires
probably one hour of work.

So long,
Thomas
.