00001
00021 #ifndef TRAINING_H
00022 #define TRAINING_H
00023
00024 #include "host.h"
00025 #include "callcpp.h"
00026
00031 typedef enum
00032 {
00033 baseline,
00034 character
00035 }
00036 NORM_METHOD;
00037
00042 typedef struct
00043 {
00044 FLOAT32 x,y;
00045 } FPOINT;
00046
00051 typedef FPOINT FVECTOR;
00052
00053 #define INTEL 0x4949
00054 #define MOTO 0x4d4d
00055
00056 #define PICO_FEATURE_LENGTH (0.05)
00057 #define GetPicoFeatureLength() (PICO_FEATURE_LENGTH)
00058
00059
00060 extern int LearningDebugLevel;
00061 extern int NormMethod;
00062
00063
00064
00065 void cprintf(
00066 const char *format,...
00067 );
00068
00069 char *c_alloc_string(
00070 INT32 count
00071 );
00072
00073 void c_free_string(
00074 char *string
00075 );
00076
00077 void *c_alloc_mem_p(
00078 INT32 count
00079 );
00080
00081 void *c_alloc_mem(
00082 INT32 count
00083 );
00084
00085 void c_free_mem(
00086 void *oldchunk
00087 );
00088
00089 void c_check_mem(
00090 char *string,
00091 INT8 level
00092 );
00093
00094 void* c_alloc_struct(
00095 INT32 count,
00096 const char* name
00097 );
00098
00099 void c_free_struct(
00100 void* deadstruct,
00101 INT32 count,
00102 const char* name
00103 );
00104
00105 void c_make_current(
00106 void* win
00107 );
00108
00109 void reverse32(
00110 void* ptr
00111 );
00112
00113 void reverse16(
00114 void* ptr
00115 );
00116
00117 void* c_create_window(
00118 const char *name,
00119 INT16 xpos,
00120 INT16 ypos,
00121 INT16 xsize,
00122 INT16 ysize,
00123 double xmin,
00124 double xmax,
00125 double ymin,
00126 double ymax
00127 );
00128
00129 void c_line_color_index(
00130 void* win,
00131 C_COL index
00132 );
00133
00134 void c_move(
00135 void* win,
00136 double x,
00137 double y
00138 );
00139
00140 void c_draw(
00141 void* win,
00142 double x,
00143 double y
00144 );
00145
00146 void c_clear_window(
00147 void* win
00148 );
00149
00150 char window_wait(
00151 void* win
00152 );
00153
00154 #endif