Defines | |
| #define | MODULE_ID "XSH_DATA_IMAGE_3D" |
Enumerations | |
| enum | { DBG_OPT, HELP_OPT, NX_OPT, NY_OPT, NZ_OPT } |
Functions | |
| static int | Help (void) |
| static void | HandleOptions (int argc, char **argv) |
| static void | fill_image (cpl_image *img, int first) |
| static int | compare_img_3d (xsh_image_3d *one, xsh_image_3d *two) |
| int | main (int argc, char **argv) |
Variables | |
| static const char * | Options = "?" |
| static struct option | LongOptions [] |
| static int | dbg_level = XSH_DEBUG_LEVEL_MEDIUM |
| static int | Nx = 3 |
| static int | Ny = 4 |
| static int | Nz = 3 |
| #define MODULE_ID "XSH_DATA_IMAGE_3D" |
Definition at line 56 of file test-xsh_data_image_3d.c.
| anonymous enum |
Definition at line 58 of file test-xsh_data_image_3d.c.
| static int compare_img_3d | ( | xsh_image_3d * | one, | |
| xsh_image_3d * | two | |||
| ) | [static] |
Definition at line 140 of file test-xsh_data_image_3d.c.
References xsh_image_3d::nx, xsh_image_3d::ny, xsh_image_3d::nz, and xsh_msg.
Referenced by main().
| static void fill_image | ( | cpl_image * | img, | |
| int | first | |||
| ) | [static] |
Definition at line 122 of file test-xsh_data_image_3d.c.
References check, Nx, Ny, XSH_ASSURE_NOT_NULL, and xsh_msg.
Referenced by main().
| static void HandleOptions | ( | int | argc, | |
| char ** | argv | |||
| ) | [static] |
Definition at line 90 of file test-xsh_data_image_3d.c.
References dbg_level, DBG_OPT, Help(), LongOptions, Nx, NX_OPT, Ny, NY_OPT, Nz, NZ_OPT, Options, XSH_DEBUG_LEVEL_HIGH, XSH_DEBUG_LEVEL_LOW, XSH_DEBUG_LEVEL_MEDIUM, and XSH_DEBUG_LEVEL_NONE.
Referenced by main().
| static int Help | ( | void | ) | [static] |
Definition at line 77 of file test-xsh_data_image_3d.c.
Referenced by HandleOptions().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 150 of file test-xsh_data_image_3d.c.
References check, compare_img_3d(), fill_image(), HandleOptions(), img_name, MODULE_ID, xsh_image_3d::nx, Nx, xsh_image_3d::ny, Ny, xsh_image_3d::nz, Nz, TESTS_INIT, xsh_image_3d::type, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_image_3d_insert(), xsh_image_3d_load(), xsh_image_3d_new(), xsh_image_3d_save(), and xsh_msg.
int dbg_level = XSH_DEBUG_LEVEL_MEDIUM [static] |
Definition at line 72 of file test-xsh_data_image_3d.c.
Referenced by HandleOptions().
struct option LongOptions[] [static] |
{
{"nx", required_argument, 0, NX_OPT},
{"ny", required_argument, 0, NY_OPT},
{"nz", required_argument, 0, NZ_OPT},
{"debug", required_argument, 0, DBG_OPT},
{"help", 0, 0, HELP_OPT },
{0, 0, 0, 0}
}
Definition at line 63 of file test-xsh_data_image_3d.c.
Referenced by HandleOptions().
int Nx = 3 [static] |
Definition at line 73 of file test-xsh_data_image_3d.c.
Referenced by fill_image(), HandleOptions(), and main().
int Ny = 4 [static] |
Definition at line 73 of file test-xsh_data_image_3d.c.
Referenced by fill_image(), HandleOptions(), and main().
int Nz = 3 [static] |
Definition at line 73 of file test-xsh_data_image_3d.c.
Referenced by HandleOptions(), and main().
const char* Options = "?" [static] |
Definition at line 62 of file test-xsh_data_image_3d.c.
Referenced by HandleOptions().
1.6.1