Writes single variable as a PPM image with color table. More...
Go to the source code of this file.
Functions | |
static void | compute_rgb (double data, double min, double max, int *pR, int *pG, int *pB, OutputS *p) |
Converts data into RGB values using palette in Output struct. | |
void | output_ppm (MeshS *pM, OutputS *pOut) |
Output PPM image. | |
Variables | |
static Real ** | data = NULL |
Writes single variable as a PPM image with color table.
PURPOSE: Writes single variable as a PPM image with color table. With SMR, dumps are made for all levels and domains, unless nlevel and ndomain are specified in <output> block.
CONTAINS PUBLIC FUNCTIONS:
PRIVATE FUNCTION PROTOTYPES:
Definition in file output_ppm.c.
static void compute_rgb | ( | double | data, | |
double | min, | |||
double | max, | |||
int * | pR, | |||
int * | pG, | |||
int * | pB, | |||
OutputS * | p | |||
) | [static] |
Converts data into RGB values using palette in Output struct.
Definition at line 134 of file output_ppm.c.
References OutputS::der, OutputS::rgb, and rgb.
Referenced by output_ppm().
Output PPM image.
Definition at line 39 of file output_ppm.c.
References ath_error(), ath_fname(), compute_rgb(), data, OutputS::dmax, OutputS::dmin, MeshS::Domain, MeshS::DomainsPerLevel, free_2d_array(), OutputS::gmax, OutputS::gmin, DomainS::Grid, OutputS::id, minmax2(), OutputS::ndim, OutputS::ndomain, OutputS::nlevel, MeshS::NLevels, OutputS::num, nx1, nx2, OutData2(), MeshS::outfilename, OutputS::sdmax, and OutputS::sdmin.
Definition at line 25 of file output_ppm.c.
Referenced by output_ppm().