|
Version: 1.0 Posted: 2003-01-14 Build Requirements: Code Warrior Runtime Requirements: Carbon Download Sample (qtreadwritejpeg.zip, 8.0K) |
||||
DescriptionLegacy - While this sample shows some internals of the JPEG format, developers should either use QuickTime Graphics Importers/Exporters or the ImageIO framework which is part of Application Services on Mac OS X 10.4.x+. This sample code has been updated for QuickTime 5.0 and illustrates how to compress and decompress JPEG images using QuickTime. We use the FCompressImage function, but you could also use the CompressImage function. Although this sample demonstrates only JPEG compression/decompression, you could use this as a framework for other types of compression (except for the decoding of the JPEG header). This code is based largely on the existing code sample "JPEG Sample". This newer version is uncoupled from the Mac application framework they used and now runs on Windows. It is a single utility C source file. Document Revision History
|
|