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

Replace iteration loop by bitmask #208

Closed bitsgalore closed 9 months ago

bitsgalore commented 9 months ago

For p in CAP marker we now iterate over bits in ccap:

https://github.com/openpreserve/jpylyzer/blob/5815c56be9bba4364da36ed1eda6ba5aca45f9a9/jpylyzer/boxvalidator.py#L2717

BUT we can do this in a more simple way by directly applying a bitmask to the final 5 bits.

bitsgalore commented 9 months ago

Done: https://github.com/openpreserve/jpylyzer/commit/66bd11f99dc5a14c5817dd3d23db4b77547fdd5e