Leaked source code of windows server 2003
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.

110 lines
3.4 KiB

  1. // WST Decoder related definitions and interfaces for ActiveMovie
  2. #ifndef __IWSTDEC__
  3. #define __IWSTDEC__
  4. //
  5. // Some data types used as WST decoder parameters by the interface
  6. //
  7. typedef struct _AM_WST_PAGE {
  8. DWORD dwPageNr ;
  9. DWORD dwSubPageNr ;
  10. BYTE *pucPageData;
  11. } AM_WST_PAGE, *PAM_WST_PAGE ;
  12. typedef enum _AM_WST_LEVEL {
  13. AM_WST_LEVEL_1_5 = 0
  14. } AM_WST_LEVEL, *PAM_WST_LEVEL ;
  15. typedef enum _AM_WST_SERVICE {
  16. AM_WST_SERVICE_None = 0,
  17. AM_WST_SERVICE_Text,
  18. AM_WST_SERVICE_IDS,
  19. AM_WST_SERVICE_Invalid
  20. } AM_WST_SERVICE, *PAM_WST_SERVICE ;
  21. typedef enum _AM_WST_STATE {
  22. AM_WST_STATE_Off = 0,
  23. AM_WST_STATE_On
  24. } AM_WST_STATE, *PAM_WST_STATE ;
  25. typedef enum _AM_WST_STYLE {
  26. AM_WST_STYLE_None = 0,
  27. AM_WST_STYLE_Invers
  28. } AM_WST_STYLE, *PAM_WST_STYLE ;
  29. typedef enum _AM_WST_DRAWBGMODE {
  30. AM_WST_DRAWBGMODE_Opaque,
  31. AM_WST_DRAWBGMODE_Transparent
  32. } AM_WST_DRAWBGMODE, *PAM_WST_DRAWBGMODE ;
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif // __cplusplus
  36. //
  37. // WST Decoder standard COM interface
  38. //
  39. DECLARE_INTERFACE_(IAMWstDecoder, IUnknown)
  40. {
  41. public:
  42. //
  43. // Decoder options to be used by apps
  44. //
  45. // What is the decoder's level
  46. STDMETHOD(GetDecoderLevel)(THIS_ AM_WST_LEVEL *lpLevel) PURE ;
  47. // STDMETHOD(SetDecoderLevel)(THIS_ AM_WST_LEVEL Level) PURE ;
  48. // Which of the services is being currently used
  49. STDMETHOD(GetCurrentService)(THIS_ AM_WST_SERVICE *lpService) PURE ;
  50. // STDMETHOD(SetCurrentService)(THIS_ AM_WST_SERVICE Service) PURE ;
  51. // Query/Set the service state (On/Off)
  52. // supported state values are AM_WSTState_On and AM_WSTState_Off
  53. STDMETHOD(GetServiceState)(THIS_ AM_WST_STATE *lpState) PURE ;
  54. STDMETHOD(SetServiceState)(THIS_ AM_WST_STATE State) PURE ;
  55. //
  56. // Output options to be used by downstream filters
  57. //
  58. // What size, bitdepth etc should the output video be
  59. STDMETHOD(GetOutputFormat)(THIS_ LPBITMAPINFOHEADER lpbmih) PURE ;
  60. // GetOutputFormat() method, if successful, returns
  61. // 1. S_FALSE if no output format has so far been defined by downstream filters
  62. // 2. S_OK if an output format has already been defined by downstream filters
  63. STDMETHOD(SetOutputFormat)(THIS_ LPBITMAPINFO lpbmi) PURE ;
  64. // Specify physical color to be used in colorkeying the background
  65. // for overlay mixing
  66. STDMETHOD(GetBackgroundColor)(THIS_ DWORD *pdwPhysColor) PURE ;
  67. STDMETHOD(SetBackgroundColor)(THIS_ DWORD dwPhysColor) PURE ;
  68. // Specify if whole output bitmap should be redrawn for each sample
  69. STDMETHOD(GetRedrawAlways)(THIS_ LPBOOL lpbOption) PURE ;
  70. STDMETHOD(SetRedrawAlways)(THIS_ BOOL bOption) PURE ;
  71. // Specify if the caption text background should be opaque/transparent
  72. STDMETHOD(GetDrawBackgroundMode)(THIS_ AM_WST_DRAWBGMODE *lpMode) PURE ;
  73. STDMETHOD(SetDrawBackgroundMode)(THIS_ AM_WST_DRAWBGMODE Mode) PURE ;
  74. // supported mode values are AM_WST_DrawBGMode_Opaque and
  75. // AM_WST_DrawBGMode_Transparent
  76. STDMETHOD(SetAnswerMode)(THIS_ BOOL bAnswer) PURE ;
  77. STDMETHOD(GetAnswerMode)(THIS_ BOOL* pbAnswer) PURE ;
  78. STDMETHOD(SetHoldPage)(THIS_ BOOL bHoldPage) PURE ;
  79. STDMETHOD(GetHoldPage)(THIS_ BOOL* pbHoldPage) PURE ;
  80. STDMETHOD(GetCurrentPage)(THIS_ PAM_WST_PAGE pWstPage) PURE;
  81. STDMETHOD(SetCurrentPage)(THIS_ AM_WST_PAGE WstPage) PURE;
  82. } ;
  83. #ifdef __cplusplus
  84. }
  85. #endif // __cplusplus
  86. #endif // __IWSTDEC__