% Y = IM2JPEG(X, QUALITY) compresses image X based on 8 x 8 DCT % transforms, coefficient quantization, and Huffman symbol % coding. Input QUALITY determines the amount of information that % is lost and compression achieved. Y is an encoding structure % containing fields: