An implementation of the codec specified in the JPEG-2000 standard