Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“ExampleCodec.zip”, 19.7K)
Download Sample (“ExampleCodec.dmg”, 82.4K)



Description

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

Document Revision History

Date Notes
2003-01-14An example of am image compression codec that handles both compression and decompression of images.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.