openpreserve / jpylyzer

JP2 (JPEG 2000 Part 1) validator and properties extractor. Jpylyzer was specifically created to check that a JP2 file really conforms to the format's specifications. Additionally jpylyzer is able to extract technical characteristics.
http://jpylyzer.openpreservation.org/
Other
69 stars 28 forks source link

Check for COC and QCC markers that are not in first tile-part of a tile #213

Closed bitsgalore closed 8 months ago

bitsgalore commented 8 months ago

Clause A.6.2 (COC marker) states that :

If there are multiple tile-parts in a tile, and this marker segment is present, it shall be found only in the first tile-part (TPsot = 0).

And likewise A.6.5 (QCC).

Related to https://github.com/openpreserve/jpylyzer/issues/212.

bitsgalore commented 8 months ago

Also applies to COD, QCD, and RGN markers!

bitsgalore commented 8 months ago

Done:

https://github.com/openpreserve/jpylyzer/commit/5c56949543b54a6af056d2200a8bcbeec465f99e

and:

https://github.com/openpreserve/jpylyzer/commit/1023094873159c6afdd029f854d69504daa1dcd3