Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

  1. /**************************************************************************\
  2. * FILE: zilla.h
  3. *
  4. * Lists functions Zilla exports to the outside world
  5. \**************************************************************************/
  6. #ifndef ZILLA_H
  7. #define ZILLA_H 1
  8. #include "common.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #define Cost(x) ((FLOAT)x)
  13. #define NegCOST(a) (-(a))
  14. #define DivCOST(a,b) (a / b)
  15. /***************** Public Prototypes **********************/
  16. // Do zilla match on a glyph.
  17. int ZillaMatch(ALT_LIST *, int, GLYPH **, CHARSET *, FLOAT, DWORD *, DWORD, int, RECT *);
  18. // Do zilla match on a glyph, returns proto ID numbers, not dense codes!
  19. int ZillaMatch2(ALT_LIST *, int, GLYPH **, CHARSET *, FLOAT, DWORD *, DWORD, int, RECT *);
  20. // Do zilla match on a glyph with the jumbo features
  21. int JumboMatch(ALT_LIST *, int, GLYPH **, CHARSET *, FLOAT, DWORD *, DWORD, int, RECT *);
  22. // Load and unload Zilla database and tables from resources
  23. BOOL ZillaLoadResource(
  24. HINSTANCE hInst,
  25. int nResIDDB, // ID for main Database
  26. int nTypeDB, // Type for main Database
  27. int nResIDCost, // ID for costcalc table
  28. int nTypeCost, // Type for costcalc table
  29. int nResIDGeo, // ID for geostats table
  30. int nTypeGeo, // Type for geostats table
  31. LOCRUN_INFO *pLocRunInfo
  32. );
  33. BOOL ZillaUnloadResource();
  34. // Load and unload Zilla database and tables from files.
  35. BOOL ZillaLoadFile(LOCRUN_INFO *pLocRunInfo, wchar_t * pPath, BOOL fOpenTrainTxt);
  36. BOOL ZillaUnLoadFile();
  37. // Access to locale information.
  38. // WARNING: must be declared and loaded by code that calls Zilla.
  39. // This is a hack, clean it up!
  40. extern LOCRUN_INFO g_locRunInfo;
  41. // Train time only stuff
  42. #ifdef __cplusplus
  43. };
  44. #endif
  45. #endif