BRL-CAD
dpix.c File Reference
#include "common.h"
#include <sys/stat.h>
#include "bio.h"
#include "bu/log.h"
#include "icv.h"
#include "vmath.h"
Include dependency graph for dpix.c:

Go to the source code of this file.

Macros

#define WRMODE   S_IRUSR|S_IRGRP|S_IROTH
 

Functions

HIDDEN icv_image_ticv_normalize (icv_image_t *bif)
 
icv_image_tdpix_read (const char *filename, int width, int height)
 
int dpix_write (icv_image_t *bif, const char *filename)
 

Detailed Description

this contains read/write routines for dpix format.

Definition in file dpix.c.

Macro Definition Documentation

#define WRMODE   S_IRUSR|S_IRGRP|S_IROTH

Definition at line 35 of file dpix.c.

Referenced by dpix_read(), and dpix_write().

Function Documentation

HIDDEN icv_image_t* icv_normalize ( icv_image_t bif)

Definition at line 43 of file dpix.c.

References bu_log(), icv_image::channels, data, icv_image::data, icv_image::height, and icv_image::width.

Referenced by dpix_read().

Here is the call graph for this function:

icv_image_t* dpix_read ( const char *  filename,
int  width,
int  height 
)

Definition at line 87 of file dpix.c.

References bu_log(), icv_image::data, ICV_COLOR_SPACE_RGB, icv_create(), icv_destroy(), icv_normalize(), and WRMODE.

Referenced by icv_read().

Here is the call graph for this function:

int dpix_write ( icv_image_t bif,
const char *  filename 
)

Definition at line 128 of file dpix.c.

References bu_log(), icv_image::color_space, icv_image::data, icv_image::height, ICV_COLOR_SPACE_GRAY, ICV_COLOR_SPACE_RGB, icv_gray2rgb(), icv_image::width, and WRMODE.

Referenced by icv_write().

Here is the call graph for this function: