The fz_compressed_image structure is a specialisation of fz_image, that holds the source data for an image in a fz_compressed_buffer. This is the usual form for images created from PDF and XPS files.
The data for a compressed image can be retrieved by calling:
If the supplied fz_image is not a fz_compressed_image then it will return NULL.