BRL-CAD
#include "common.h"
#include <stddef.h>
Include dependency graph for defines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  icv_image
 

Macros

#define ICV_NULL_IMAGE   0X0001
 
#define ICV_SANITIZED   0X0002
 
#define ICV_OPERATIONS_MODE   0x0004
 
#define ICV_UNDEFINED_1   0x0008
 
#define ICV_IMAGE_NULL   ((struct icv_image *)0)
 
#define ICV_CK_IMAGE(_i)   ICV_CKMAG(_i, ICV_IMAGE_MAGIC, "icv_image")
 
#define ICV_IMAGE_INIT(_i)
 
#define ICV_IMAGE_IS_INITIALIZED(_i)   (((struct icv_image *)(_i) != ICV_IMAGE_NULL) && LIKELY((_i)->magic == ICV_IMAGE_MAGIC))
 
#define ICV_IMAGE_VAL_INT(_i)   if (!ICV_IMAGE_IS_INITIALIZED(_i)) return -1
 
#define ICV_IMAGE_VAL_PTR(_i)   if (!ICV_IMAGE_IS_INITIALIZED(_i)) return NULL
 
#define ICV_CONV_8BIT(data)   ((double)(data))/255.0
 

Typedefs

typedef struct icv_image icv_image_t
 

Enumerations

enum  ICV_COLOR_SPACE { ICV_COLOR_SPACE_RGB , ICV_COLOR_SPACE_GRAY }
 
enum  ICV_DATA { ICV_DATA_DOUBLE , ICV_DATA_UCHAR }