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.

50 lines
1.6 KiB

  1. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  2. //
  3. // Copyright (c) 2001 Microsoft Corporation. All rights reserved.
  4. //
  5. // Module:
  6. // volcano/dll/sole.h
  7. //
  8. // Description:
  9. // Sole recognizer header file
  10. //
  11. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  12. #include "common.h"
  13. #include "runnet.h"
  14. #pragma once
  15. // Magic key the identifies the NN bin file
  16. #define SOLE_FILE_TYPE 0x501E501E
  17. // Version information for file.
  18. #define SOLE_MIN_FILE_VERSION 0 // First version of code that can read this file
  19. #define SOLE_OLD_FILE_VERSION 0 // Oldest file version this code can read.
  20. #define SOLE_CUR_FILE_VERSION 0 // Current version of code.
  21. typedef struct SOLE_LOAD_INFO
  22. {
  23. LOAD_INFO info;
  24. LOCAL_NET net1;
  25. LOCAL_NET net2;
  26. wchar_t *pMap1;
  27. wchar_t *pMap2;
  28. int iNet1Size;
  29. int iNet2Size;
  30. } SOLE_LOAD_INFO;
  31. #define SOLE_NUM_SPACES 2
  32. #define SOLE_NUM_FEATURES 65
  33. BOOL SoleLoadRes(SOLE_LOAD_INFO *pSole, HINSTANCE hInst, int nResID, int nType, LOCRUN_INFO *pLocRunInfo);
  34. BOOL SoleLoadFile(SOLE_LOAD_INFO *pSole, wchar_t *wszRecogDir, LOCRUN_INFO *pLocRunInfo);
  35. BOOL SoleUnloadFile(SOLE_LOAD_INFO *pSole);
  36. int SoleMatch(SOLE_LOAD_INFO *pSole,
  37. ALT_LIST *pAlt, int cAlt, GLYPH *pGlyph, RECT *pGuide, CHARSET *pCS, LOCRUN_INFO *pLocRunInfo);
  38. int SoleMatchRescore(SOLE_LOAD_INFO *pSole,
  39. wchar_t *pwchTop1, float *pflTop1,
  40. ALT_LIST *pAltList, int cAlt, GLYPH *pGlyph, RECT *pGuide,
  41. CHARSET *pCharSet, LOCRUN_INFO *pLocRunInfo);
  42. BOOL SoleFeaturize(GLYPH *pGlyph, RECT *pGuide, unsigned short *rgFeat);