ExampleCodec

Last Revision:
Version 1.0, 2003-01-14
An example of am image compression codec that handles both compression and decompression of images.
Build Requirements:
Runtime Requirements:
Carbon

This is an example of am image compression codec that handles both compression and decompression of images as passed to it by the Image Compression manager. It is built as a Component Manager Component. The compression scheme here is 411 YUV. The image is stored as separate luminance and chrominance channels. For each 2x2 block of pixels in the source image we store 4 luminance (Y) components, 1 Y-Red component (U) and 1 Y-Blue (V) component. Each Y-component is stored as 6-bits, resulting in a savings of 2.4:1 over a 24-bit/pixel image (6*4 + 2*8)/4 = 10 bits/pixel. Requires: QuickTime Keywords: QuickTime, codec