/*
 * Copyright Yves Dorfsman 1999-2011.
 *
 * cals2tiff: is used to convert .cal files (US NAVY CALS raster file Type 1,
 * a.k.a. MIL-PRF-28002) into .tiff files (baseline TIFF bilevel images).
 *
 * calsinfo: is used to show the content of the header of CALS files.
 *
 * CALS type 1 only supports compressed data, and only using the CCITT
 * group 4 algorithm (T6). Tiff revision 6.0 can support this same
 * compression scheme (among others) for bilevel raster files, so
 * there is no need to change the data to convert from one format to the
 * other ; only the header is re-written.
 *
 *
 * Major bugs have been recently (2009/01) reported, but have  now been fixed.
 * Do not use any version prior to v2.00, although the TIFF files they created
 * were usable most of the time, they were not compliant with the standard,
 * as reported by tiffinfo.
 *
 * The orientation of the converted CALS images should be correct now. However,
 * note that most free software do not take tiff orientation into account.
 * "gthumb" is one * of the few which does display tiff images correctly.
 *
 *
 *
 *
 * The current version is v2.0, you can download bz2, gz, and zip archives
 * (or bz2, gz, and zip for the latest version).
 *
 * You can access individual files and other versions directly from
 * the Mercurial repository.
 *
 * 
 *
 */

/*
 * cals2tiff is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License.
 */