GetCompressedPixMapInfo
TheGetCompressedPixMapInfofunction allows your application to retrieve information about a compressed image.
pascal OSErr GetCompressedPixMapInfo (PixMapPtr pix, ImageDescriptionHandle *desc, Ptr *data, long *bufferSize, DataProcRecord *dataProc, ProgressProcRecord *progressProc);
pix- Points to a structure that holds encoded compressed image data.
desc- Contains a pointer to a field that is to receive a handle to the image description structure that defines the compressed image. If you are not interested in this information, you may specify
nilin this parameter.data- Contains a pointer to a field that is to receive a pointer to the compressed image data. If the entire compressed image cannot be stored at this location, you can define a data-loading function for this operation (see the discussion of the
dataProcparameter to this function). If you are not interested in this information, you may specifynilin this parameter.bufferSize
Contains a pointer to a field that is to receive the size of the buffer to be used by the data-loading function specified by thedataProcparameter. If there is no data-loading function defined for this operation, this parameter is ignored. If you are not interested in this information, you may specifynilin this parameter.dataProc- Contains a pointer to a data-loading function structure. If there is not enough memory to store the compressed image, the decompressor calls a function you provide that loads more compressed data (see "Data-Loading Functions" beginning on page 3-143 for more information about data-loading functions). If there is no data-loading function for this image, the function sets the
dataProcfield in the function structure tonil. If you are not interested in this information, you may specifynilin this parameter.progressProc- Contains a pointer to a progress function structure. During a decompression operation, the decompressor may occasionally
call a function you provide in order to report its progress
(see "Progress Functions" beginning on page 3-146 for more information about progress functions). If there is no progress function for this image, the function sets theprogressProcfield in the function structure tonil. If you pass a value of -1, you obtain a standard progress function. If you are not interested in this information, you may specifynilin this parameter.DESCRIPTION
The data in the compressed image has been encoded in aPixMapstructure with theSetCompressPixMapInfofunction. This is the kind of pixel map that may be passed into theStdPixfunction. If you pass a normal, non-encoded pixel map,GetCompressedPixMapInforeturns aparamErrresult code. You use
theGetCompressedPixMapInfofunction if you are intercepting calls to theStdPixfunction.SPECIAL CONSIDERATIONS
The pixel map structure filled in by theGetCompressedPixMapInfofunction should not be used by any other Macintosh functions. It is only to be used by theStdPixfunction.RESULT CODES
paramErr -50 Invalid parameter specified SEE ALSO
You can set information about a compressed pixel map by calling theSetCompressedPixMapInfofunction, which is described in the previous section.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help