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.

101 lines
2.3 KiB

  1. #ifndef PARAM_INCLUDED
  2. #define PARAM_INCLUDED
  3. #define USE_RESAM_32 1
  4. #define USE_C_32 0
  5. #define USE_ASM_86 1
  6. #define USE_ASM_SH3 2
  7. #define USE_ASM_MIPS 3
  8. #define FIXED_ARITHMETIC USE_C_32
  9. // #define FIXED_ARITHMETIC USE_ASM_86
  10. #define _POINT_DEFINED
  11. typedef struct {
  12. _SHORT x ;
  13. _SHORT y ;
  14. } _POINT, _PTR p_POINT;
  15. #define _3DPOINT_DEFINED
  16. typedef struct {
  17. _SHORT x;
  18. _SHORT y;
  19. _SHORT z;
  20. _SHORT p;
  21. } _3DPOINT, _PTR p_3DPOINT;
  22. /*
  23. typedef struct {
  24. _SHORT left ;
  25. _SHORT top ;
  26. _SHORT right ;
  27. _SHORT bottom;
  28. } _RECT, _PTR p_RECT;
  29. */
  30. typedef struct {
  31. _LONG x ;
  32. _LONG y ;
  33. _LONG dx ;
  34. _LONG dy ;
  35. _LONG s ;
  36. _LONG r ;
  37. } _ODATA , _PTR p_ODATA;
  38. typedef struct {
  39. _LONG x ;
  40. _LONG y ;
  41. _LONG z ;
  42. _LONG dx ;
  43. _LONG dy ;
  44. _LONG dz ;
  45. _LONG s ;
  46. _LONG r ;
  47. } _ODATA3D , _PTR p_ODATA3D;
  48. typedef struct {
  49. _LONG Ax ;
  50. _LONG Ay ;
  51. _LONG Rx ;
  52. _LONG Ry ;
  53. _LONG s ;
  54. _LONG r ;
  55. } _ARDATA, _PTR p_ARDATA;
  56. typedef struct {
  57. _LONG Ax ;
  58. _LONG Ay ;
  59. _LONG Az ;
  60. _LONG Rx ;
  61. _LONG Ry ;
  62. _LONG Rz ;
  63. _LONG s ;
  64. _LONG r ;
  65. } _ARDATA3D, _PTR p_ARDATA3D;
  66. _ULONG SQRT32 ( _ULONG );
  67. // 2D
  68. _VOID ResetParam ( _INT sm, p_ARDATA pData, _LONG FullLen);
  69. _LONG ApprError ( _INT sm , p_ARDATA pARdata );
  70. _VOID Tracing ( _INT sm , p_ARDATA pData );
  71. _LONG Repar ( _INT Sam , p_ODATA pOdata,
  72. _INT ReSam, p_ARDATA pARdata );
  73. // 3D
  74. _VOID ResetParam3D ( _INT sm, p_ARDATA3D pDdata, _LONG LenApp);
  75. _LONG ApprError3D ( _INT sm , p_ARDATA3D pARdata );
  76. _VOID Tracing3D ( _INT sm , p_ARDATA3D pData );
  77. _LONG Repar3D ( _INT Sam , p_ODATA3D pOdata,
  78. _INT ReSam, p_ARDATA3D pARdata );
  79. _VOID FDCT16 ( p_LONG pS );
  80. _VOID IDCT16 ( p_LONG pS );
  81. #if USE_RESAM_32
  82. _VOID FDCT32 ( p_LONG pS );
  83. _VOID IDCT32 ( p_LONG pS );
  84. #endif
  85. #endif // PARAM_INCLUDED