Functions | Variables

output_ppm.c File Reference

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

Detailed Description

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.


Function Documentation

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().

Here is the caller graph for this function:

void output_ppm ( MeshS pM,
OutputS pOut 
)

Variable Documentation

Real** data = NULL [static]

Definition at line 25 of file output_ppm.c.

Referenced by output_ppm().