#include "common/common.h"
#include <fstream>
#include <math.h>
#include "pgmppm/pgmppm.h"
Go to the source code of this file.
Functions | |
static int | mix (IN int v1, IN int v2, IN float q) |
static pgmppm::color_t | getColorForHeight (IN byte_t h) |
static int | getHeight (IN void *context, IN int x, IN int y) |
static pgmppm::color_t | getColor (IN void *context, IN int x, IN int y) |
int | main (IN int argc, IN 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 [] |
static int mix | ( | IN int | v1, | |
IN int | v2, | |||
IN float | q | |||
) | [static] |
Definition at line 54 of file lib/pgmppm/test/test.cpp.
static pgmppm::color_t getColorForHeight | ( | IN byte_t | h | ) | [static] |
Definition at line 76 of file lib/pgmppm/test/test.cpp.
static int getHeight | ( | IN void * | context, | |
IN int | x, | |||
IN int | y | |||
) | [static] |
Definition at line 115 of file lib/pgmppm/test/test.cpp.
static pgmppm::color_t getColor | ( | IN void * | context, | |
IN int | x, | |||
IN int | y | |||
) | [static] |
Definition at line 140 of file lib/pgmppm/test/test.cpp.
int main | ( | IN int | argc, | |
IN const char * | argv[] | |||
) |
Definition at line 174 of file lib/pgmppm/test/test.cpp.
int s_width = -1 [static] |
Definition at line 19 of file lib/pgmppm/test/test.cpp.
int s_height = -1 [static] |
Definition at line 20 of file lib/pgmppm/test/test.cpp.
const int s_maxGray = 255 [static] |
Definition at line 22 of file lib/pgmppm/test/test.cpp.
const int s_maxColor = 255 [static] |
Definition at line 23 of file lib/pgmppm/test/test.cpp.
const hc_entry_t s_hcolors[] [static] |
{ { 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 lib/pgmppm/test/test.cpp.