JPEG 2000 decoder version 1.00
==============================

(C) Richard Coleman, 2026 (coleman@orpheusmail.co.uk)

JPEG2000 is a high quality (but incompatible) upgrade to the JPEG standard
mainly used in applications such as medical scanning and professional imaging.

Whilst images can have up to 38 bits per colour component, all images are scaled
to 8 bits per colour component; so for a RGB image, the Red component will be
scaled up or down to 8 bits, as will the Green and Blue, and any Alpha.

If the decoder has any difficulty in processing an image it will fall back to
loading the first channel only as a Greyscale image.

The output file is a NetPBM file (File type &69E) of type P5 P6 or P7.
      P5 is used for Greyscale images.
      P6 is used for RGB images.
      P7 is used for images with Alpha, both RGB and Greyscale Alpha.

JPEG2000 has a number of different file formats which are determined by
the filename extension:
      .jp2             (Basic JPEG2000 file)
      .jpx             (Part 2 extended JPEG2000 file)
      .jpf             (Part 2 using floating points)
      .mj2, .mjp2      (Motion JPEG2000 video format)
      .jpm             (Part 6 Compound image file format)
      .jph             (Part 15 High throughput with JPEG2000 boxes)
      .j2k, .jpc, .j2c (Codestream data)
      .jhc             (Part 15 High throughput JPEG2000 codestream)

djp2000 doesn't rely on the filename extension but uses magic numbers in the
file to identify the file format, and thus will only load the following
formats:
      .jp2, .jph, .j2k, .jpc, .j2c, .jhc


Command line usage
~~~~~~~~~~~~~~~~~~
Syntax: djp2000 -i <source> -o <destination> -verbose -force -skip
  -i <source>          Filename of JPEG2000 image to convert
  -o <destination>     Filename to save NetPBM to
  -v, -verbose         Display information as file is processed
  -f, -force           Overwrite <destination> without prompting
  -skip                Skip existing <destination>


File Type
~~~~~~~~~
JPEG2000		&A65		.jp2, .jph, .j2k, .jpc, .j2c, .jhc

Mime Type
~~~~~~~~~
image/jp2		JPEG2000	a65	.jp2	.j2k	.jpc	.j2c	.jhc	.jpx	.jpf	.jpm	.jph


Version history
~~~~~~~~~~~~~~~
1.00	Initial version.

