New Features and Changes: ======================== o The following Vdata routines were added: VSsetblocksize/vsfsetblsz -- sets the block size of the linked-block element. VSsetnumblocks/vsfsetnmbl -- sets the number of blocks for a linked-block element. VSgetblockinfo/vsfgetblinfo -- retrieves the block size and the number of blocks of a linked-block element. o Two routines were added to get compression information for the SD and GR interfaces, including chunked elements: SDgetcompress/sfgcompress and GRgetcompress/mggcompress. Note: - For a JPEG image, GRgetcompress only returns the compression type, not the compression information (i.e, quantity and force_baseline). This information is not currently retrievable. - Getting compression type for JPEG chunked images is not working yet. o "hdp dumpgr" has a new option, -pd, to print palette data only. Also, whenever option -p or -pd is given, only palettes are printed, and no images or file attributes. o A new FORTRAN function, heprntf (HEprint), was added. It takes two arguments: file name and level. If the file name string has 0 length, then error messages will be printed to standard output. o A memory leak in the netCDF portion of the HDF/mfhdf distribution was fixed. o The "#define NULL" was removed since ANSI C compilers are required to define NULL. o When using "hdp dumpgr", data was being printed in the range of 0-250 when it should have been between 0-168. This problem is now fixed.
18 lines
422 B
Text
18 lines
422 B
Text
$NetBSD: patch-at,v 1.2 2002/05/03 23:14:53 jtb Exp $
|
|
|
|
--- mfhdf/libsrc/xdrposix.c.orig Thu Apr 19 00:27:10 2001
|
|
+++ mfhdf/libsrc/xdrposix.c
|
|
@@ -20,6 +20,13 @@
|
|
* x_getlong() and x_putlong(), so, on that platform, it doesn't matter if
|
|
* the following isn't 32-bits):
|
|
*/
|
|
+
|
|
+#include <sys/endian.h>
|
|
+
|
|
+#if BYTE_ORDER == LITTLE_ENDIAN
|
|
+#define SWAP 1
|
|
+#endif
|
|
+
|
|
#ifdef CRAY
|
|
# undef NETLONG
|
|
# define NETLONG long
|