Posted By

maxint on 09/19/10


Tagged


Versions (?)

C header of C++ implementation


 / Published in: C++
 

  1. /************************************************************************/
  2. /* Motion Recovery Module */
  3. /* */
  4. /************************************************************************/
  5.  
  6. #ifndef _3DFACE_MOTION_RECOVERY_H_
  7. #define _3DFACE_MOTION_RECOVERY_H_
  8.  
  9. #if (defined WIN32 || defined _WIN32) && defined MOTION_EXPORTS
  10. #define MOTION_API_EXPORTS __declspec(dllexport)
  11. #else
  12. #define MOTION_API_EXPORTS
  13. #endif
  14.  
  15. #ifndef MOTION_EXTERN_C
  16. #ifdef __cplusplus
  17. #define MOTION_EXTERN_C extern "C"
  18. #else
  19. #define MOTION_EXTERN_C
  20. #endif
  21. #endif
  22.  
  23. #if defined WIN32 || defined _WIN32
  24. #define MOTION_CDECL __cdecl
  25. #else
  26. #define MOTION_CDECL
  27. #endif
  28.  
  29. #ifndef MOTION_API
  30. #define MOTION_API(rettype) MOTION_EXTERN_C MOTION_API_EXPORTS rettype MOTION_CDECL
  31. #endif
  32.  
  33. #ifndef MOTION_IMPL
  34. #define MOTION_IMPL MOTION_EXTERN_C
  35. #endif
  36.  
  37. #include "aam_vector.h"
  38. #include "aam_matrix.h"
  39.  
  40. enum __tag_motion_result
  41. {
  42. MR_OK = 0,
  43. MR_BASIC_BASE = 0x7000,
  44. MR_ERR_INVALID_PARAMS = (MR_BASIC_BASE+1)
  45. };
  46.  
  47. typedef long MRReturn;
  48.  
  49. MOTION_API(MRReturn) mr_recover_alpha_rho(const PAAM_VECTOR pt2dx,
  50. const PAAM_VECTOR pt2dy,
  51. const PAAM_VECTOR vecS0,
  52. const PAAM_MATRIX matSk,
  53. PAAM_VECTOR alpha,
  54. PAAM_VECTOR rho
  55. );
  56.  
  57. #endif /* _3DFACE_MOTION_RECOVERY_H_ */

Report this snippet  

You need to login to post a comment.