JPEG Encoder Copyright 1998, James R. Weeks and BioElectroMech.