Functions | Variables

wavepacket-lib/lib/pgmppm/test/test.cpp File Reference

#include "common/common.h"
#include <fstream>
#include <math.h>
#include "pgmppm/pgmppm.h"
Include dependency graph for wavepacket-lib/lib/pgmppm/test/test.cpp:

Go to the source code of this file.

Functions

static int mix (int v1, int v2, float q)
static pgmppm::color_t getColorForHeight (byte_t h)
static int getHeight (void *context, int x, int y)
static pgmppm::color_t getColor (void *context, int x, int y)
int main (int argc, const char *argv[])

Variables

static int s_width = -1
static int s_height = -1
static const int s_maxGray = 255
static const int s_maxColor = 255
static const hc_entry_t s_hcolors []

Function Documentation

static int mix ( int  v1,
int  v2,
float  q 
) [static]

Definition at line 54 of file wavepacket-lib/lib/pgmppm/test/test.cpp.

static pgmppm::color_t getColorForHeight ( byte_t  h  )  [static]

Definition at line 76 of file wavepacket-lib/lib/pgmppm/test/test.cpp.

static int getHeight ( void *  context,
int  x,
int  y 
) [static]

Definition at line 115 of file wavepacket-lib/lib/pgmppm/test/test.cpp.

static pgmppm::color_t getColor ( void *  context,
int  x,
int  y 
) [static]

Definition at line 140 of file wavepacket-lib/lib/pgmppm/test/test.cpp.

int main ( int  argc,
const char *  argv[] 
)

Definition at line 174 of file wavepacket-lib/lib/pgmppm/test/test.cpp.


Variable Documentation

int s_width = -1 [static]

Definition at line 19 of file wavepacket-lib/lib/pgmppm/test/test.cpp.

int s_height = -1 [static]

Definition at line 20 of file wavepacket-lib/lib/pgmppm/test/test.cpp.

const int s_maxGray = 255 [static]

Definition at line 22 of file wavepacket-lib/lib/pgmppm/test/test.cpp.

const int s_maxColor = 255 [static]

Definition at line 23 of file wavepacket-lib/lib/pgmppm/test/test.cpp.

const hc_entry_t s_hcolors[] [static]
Initial value:
 {
        {   0,          {   0,   0, 128 } },
        {  32,          {   0,   0, 255 } },
        {  64,          { 192, 160,   0 } },
        {  96,          {   0, 255,   0 } },
        { 160,          {   0, 128,   0 } },
        { 192,          { 116, 116, 116 } },
        { 256,          { 255, 255, 255 } },

        
        {  -1,          {   0,   0,   0 } }
}

Definition at line 31 of file wavepacket-lib/lib/pgmppm/test/test.cpp.