[Top] [Prev] [Next] [Bottom]

SDsetcompress

intn SDsetcompress(int32 sd_id, char *comp_type, comp_info *cinfo)
sd_id

IN:

SD interface identifier returned from SDstart

comp_type

IN:

Compression method

cinfo

IN:

Pointer to compression information structure

Purpose

Sets the compression method for the specified dataset.

Return value

Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise.

Description

The SDsetcompress routine is a simplified interface to the HCcreate routine, and should be used instead of HCcreate unless the user is familiar with working with the lower-level routines.

The comp_type parameter is the compression type definition and is set to COMP_CODE_RLE for run-length encoding, COMP_CODE_DEFLATE for Gnu ZIP (or GZIP) compression, COMP_CODE_SKPHUFF for skipping Huffman or COMP_CODE_NONE for no compression. The c_info parameter is a union structure of type tag_comp_info.

SDsetcompress compresses the dataset data at the time it is called, not during the next call to SDwritedata.



[Top] [Prev] [Next] [Bottom]

hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF Development Group.