[Top]
[Prev]
[Next]
[Bottom]
GRsetcompress
intn GRsetcompress(int32
ri_id
, int32
comp_type
, comp_info *
c_info
)
ri_id
IN:
General raster image identifier returned by
GRcreate
or
GRselect
comp_type
IN:
Compression method for the image data: COMP_CODE_RLE, COMP_CODE_DEFLATE or COMP_CODE_SKPHUFF
c_info
IN:
Pointer to the comp_info union
Purpose
Specifies that the image data of a general raster dataset is a compressed special element.
Return value
Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise.
Description
The COMP_CODE_RLE definition specifies run-length encoding, COMP_CODE_DEFLATE specifies Gnu ZIP (or GZIP) compression and COMP_CODE_SKPHUFF specifies skipping Huffman. The comp_info union contains algorithm-specific information for the library routines that perform the compression and is defined in the hcomp.h header file.
[Top]
[Prev]
[Next]
[Bottom]
hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF Development Group.