Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

New Image Decompression Manager APIs

This section discusses new Image Decompression Manager APIs introduced in QuickTime 6.

QTGetPixelFormatDepthForImageDescription

Returns the corresponding depth value that should be used in image descriptions.

short QTGetPixelFormatDepthForImageDescription (OSType PixelFormat);

Discussion

Given a pixel format, this function returns the corresponding depth value that should be used in image descriptions. Such a value is not the literal number of bits per pixel, but the closest corresponding classic QuickDraw depth:

Availability
Declared In
ImageCompression.h

GraphicsImportSetImageIndexToThumbnail

Looks for a subimage that contains a thumbnail.

ComponentResult GraphicsImportSetImageIndexToThumbnail
(GraphicsImportComponent ci);

Discussion

This routine looks for a subimage that contains a thumbnail. If the function finds one, it sets the image index to that subimage. If the function does not find one, it returns noThumbnailFoundErr.

The base graphics importer’s implementation of SetImageIndexToThumbnail works by looking for the first image index that returns a kQTIndexedImageType metadata item containing the kQTIndexedImageIsThumbnail tag. Format-specific graphics importers may override this with more efficient algorithms.

Availability
Declared In
ImageCompression.h

ImageCodecMergeFloatingImageOntoWindow

Draws the current contents of a floating image.

ComponentResult ImageCodecMergeFloatingImageOntoWindow(
ComponentInstance ci,
UInt32 flags );

Discussion

Some hardware acceleration transfer codecs create a “floating image” in front of the window; when this is deactivated or hidden, whatever was previously drawn in that section of the window reappears. Such transfer codecs should implement the MergeFloatingImageOntoWindow call, which draws the current contents of the floating image onto the window below, so that the floating image may be deactivated or hidden without the image changing.

Availability
Declared In
ImageCodec.h

ImageCodecRemoveFloatingImage

Hides the floating image without having to close the component.

ComponentResult ImageCodecRemoveFloatingImage(
ComponentInstance ci,
UInt32 flags );

Availability
Declared In
ImageCodec.h

Some hardware acceleration transfer codecs create a “floating image” in front of the window; when this is deactivated or hidden, whatever was previously drawn in that section of the window reappears. Such transfer codecs should implement the RemoveFloatingImage call, so that the Image Compression Manager can ask it to hide the floating image without having to close the component.

The floating image should be shown again on the next call to DrawBand.



< Previous PageNext Page > Hide TOC


Last updated: 2002-07-01




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.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice