Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
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
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14