int tsmJPEGDecompressTile ( unsigned char *jpegBuffer, unsigned char *tileBuffer, TileTspec *tile )

Decompress a JPEG tile in memory

Documentation

Decompress a JPEG tile in memory.

This function will take two already allocated tiles (e.g. allocated with tsmMakeTileBuffer), where jpegBuffer is assumed to contain the JPEG-compressed data for a tile. The function will then decompress this image to a raw bitmap, which it will write to tileBuffer.

You also provide a TileTspec structure (e.g. pyramid->tileTspec) to provide information about the size of both tile buffers (i.e. both tile buffers are deemed to be the same size).

N.B. This function will write the raw data in reverse row order so that we automatically convert the data ordering from JPEG's lrtb to TV's lrbt format - no need to flip the tile afterwards.

Returns:
TRUE if all went well, FALSE if an error occurred
Parameters:
jpegBuffer - the input buffer with the JPEG data in it
tileBuffer - the tile buffer to write the raw (lrbt) bitmap to
tile - the TileTspec giving both tile's dimensions
Author:
Martin Reddy
Version:
7 November 1997
See Also:
tsmJPEGCompressTile, tsmMakeTileBuffer, TileTspec


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page