USGS

Isis 3.0 Application Source Code Reference

Home

msdp.h File Reference

Go to the source code of this file.

Classes

struct  msdp_header

Defines

#define round(x)   ((x) > 0.0 ? (x) + 0.5 : (x) - 0.5)
#define MAKESHORT(p)   ((p)[0] | ((p)[1] << 8))
#define MAKE24BIT(p)   ((p)[0] | ((p)[1] << 8) | ((p)[2] << 16))
#define MAKELONG(p)   ((p)[0] | ((p)[1] << 8) | ((p)[2] << 16) | ((p)[3] << 24))
#define BYTE0(i)   ((i)&0xff)
#define BYTE1(i)   (((i)&0xff00)>>8)
#define BYTE2(i)   (((i)&0xff0000)>>16)
#define BYTE3(i)   (((i)&0xff000000)>>24)
#define STUFFSHORT(p, v)   ((p)[0] = (v)&0xff, (p)[1] = (v)>>8)

Typedefs

typedef unsigned char pixel
typedef unsigned char byte

Define Documentation

#define round ( x   )     ((x) > 0.0 ? (x) + 0.5 : (x) - 0.5)

Definition at line 43 of file msdp.h.

#define MAKESHORT (  )     ((p)[0] | ((p)[1] << 8))

Definition at line 94 of file msdp.h.

#define MAKE24BIT (  )     ((p)[0] | ((p)[1] << 8) | ((p)[2] << 16))

Definition at line 95 of file msdp.h.

#define MAKELONG (  )     ((p)[0] | ((p)[1] << 8) | ((p)[2] << 16) | ((p)[3] << 24))

Definition at line 96 of file msdp.h.

#define BYTE0 (  )     ((i)&0xff)

Definition at line 98 of file msdp.h.

#define BYTE1 (  )     (((i)&0xff00)>>8)

Definition at line 99 of file msdp.h.

#define BYTE2 (  )     (((i)&0xff0000)>>16)

Definition at line 100 of file msdp.h.

#define BYTE3 (  )     (((i)&0xff000000)>>24)

Definition at line 101 of file msdp.h.

#define STUFFSHORT ( p,
 )     ((p)[0] = (v)&0xff, (p)[1] = (v)>>8)

Definition at line 103 of file msdp.h.


Typedef Documentation

typedef unsigned char pixel

Definition at line 41 of file msdp.h.

typedef unsigned char byte

Definition at line 41 of file msdp.h.