Library for JPEG2000 structural traversal and compressed domain manipulation