sphmap.c File Reference

#include "common.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "bu.h"
#include "vmath.h"
#include "bn.h"
#include "spm.h"
Include dependency graph for sphmap.c:

Go to the source code of this file.

Functions

void bn_spm_free (bn_spm_map_t *mp)
bn_spm_map_t * bn_spm_init (int N, int elsize)
void bn_spm_read (register bn_spm_map_t *mapp, register unsigned char *valp, double u, double v)
void bn_spm_write (register bn_spm_map_t *mapp, register unsigned char *valp, double u, double v)
char * bn_spm_get (register bn_spm_map_t *mapp, double u, double v)
int bn_spm_load (bn_spm_map_t *mapp, char *filename)
int bn_spm_save (bn_spm_map_t *mapp, char *filename)
int bn_spm_pix_load (bn_spm_map_t *mapp, char *filename, int nx, int ny)
int bn_spm_pix_save (bn_spm_map_t *mapp, char *filename, int nx, int ny)
void bn_spm_dump (bn_spm_map_t *mp, int verbose)

Function Documentation

void bn_spm_free ( bn_spm_map_t *  mp  ) 

Definition at line 34 of file sphmap.c.

Referenced by bn_spm_init().

bn_spm_map_t* bn_spm_init ( int  N,
int  elsize 
)

Definition at line 60 of file sphmap.c.

References bn_spm_free(), and bn_twopi.

Here is the call graph for this function:

void bn_spm_read ( register bn_spm_map_t *  mapp,
register unsigned char *  valp,
double  u,
double  v 
)

Definition at line 110 of file sphmap.c.

References x, and y.

Referenced by bn_spm_pix_save().

void bn_spm_write ( register bn_spm_map_t *  mapp,
register unsigned char *  valp,
double  u,
double  v 
)

Definition at line 130 of file sphmap.c.

References x, and y.

char* bn_spm_get ( register bn_spm_map_t *  mapp,
double  u,
double  v 
)

Definition at line 150 of file sphmap.c.

References x, and y.

int bn_spm_load ( bn_spm_map_t *  mapp,
char *  filename 
)

Definition at line 166 of file sphmap.c.

References y.

int bn_spm_save ( bn_spm_map_t *  mapp,
char *  filename 
)

Definition at line 200 of file sphmap.c.

int bn_spm_pix_load ( bn_spm_map_t *  mapp,
char *  filename,
int  nx,
int  ny 
)

Definition at line 241 of file sphmap.c.

References x, and y.

int bn_spm_pix_save ( bn_spm_map_t *  mapp,
char *  filename,
int  nx,
int  ny 
)

Definition at line 309 of file sphmap.c.

References bn_spm_read(), x, and y.

Here is the call graph for this function:

void bn_spm_dump ( bn_spm_map_t *  mp,
int  verbose 
)

Definition at line 353 of file sphmap.c.

Generated on Tue Dec 11 13:14:28 2012 for LIBBN by  doxygen 1.6.3