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
4.0 KiB

  1. //------------------------------------------------------------------------------
  2. // File: DMOReg.h
  3. //
  4. // Desc:
  5. //
  6. // Copyright (c) 1999 - 2000, Microsoft Corporation. All rights reserved.
  7. //------------------------------------------------------------------------------
  8. #ifndef __DMOREG_H__
  9. #define __DMOREG_H__
  10. #include "mediaobj.h"
  11. // 57f2db8b-e6bb-4513-9d43-dcd2a6593125
  12. DEFINE_GUID(DMOCATEGORY_AUDIO_DECODER, 0x57f2db8b,0xe6bb,0x4513,0x9d,0x43,0xdc,0xd2,0xa6,0x59,0x31,0x25);
  13. // 33D9A761-90C8-11d0-BD43-00A0C911CE86
  14. DEFINE_GUID(DMOCATEGORY_AUDIO_ENCODER, 0x33D9A761,0x90C8,0x11d0,0xBD,0x43,0x00,0xA0,0xC9,0x11,0xCE,0x86);
  15. // 4a69b442-28be-4991-969c-b500adf5d8a8
  16. DEFINE_GUID(DMOCATEGORY_VIDEO_DECODER, 0x4a69b442,0x28be,0x4991,0x96,0x9c,0xb5,0x00,0xad,0xf5,0xd8,0xa8);
  17. // 33D9A760-90C8-11d0-BD43-00A0C911CE86
  18. DEFINE_GUID(DMOCATEGORY_VIDEO_ENCODER, 0x33D9A760,0x90C8,0x11d0,0xBD,0x43,0x00,0xA0,0xC9,0x11,0xCE,0x86);
  19. // f3602b3f-0592-48df-a4cd-674721e7ebeb
  20. DEFINE_GUID(DMOCATEGORY_AUDIO_EFFECT, 0xf3602b3f,0x0592,0x48df,0xa4,0xcd,0x67,0x47,0x21,0xe7,0xeb,0xeb);
  21. // d990ee14-776c-4723-be46-3da2f56f10b9
  22. DEFINE_GUID(DMOCATEGORY_VIDEO_EFFECT, 0xd990ee14,0x776c,0x4723,0xbe,0x46,0x3d,0xa2,0xf5,0x6f,0x10,0xb9);
  23. // f665aaba-3e09-4920-aa5f-219811148f09
  24. DEFINE_GUID(DMOCATEGORY_AUDIO_CAPTURE_EFFECT, 0xf665aaba,0x3e09,0x4920,0xaa,0x5f,0x21,0x98,0x11,0x14,0x8f,0x09);
  25. // Acoustic Echo Canceller {BF963D80-C559-11D0-8A2B-00A0C9255AC1}
  26. // Matches KSNODETYPE_ACOUSTIC_ECHO_CANCEL in ksmedia.h
  27. DEFINE_GUID(DMOCATEGORY_ACOUSTIC_ECHO_CANCEL, 0xBF963D80L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1);
  28. // Noise Supression {E07F903F-62FD-4e60-8CDD-DEA7236665B5}
  29. // Matches KSNODETYPE_AUDIO_NOISE_SUPPRESS in post Windows ME DDK's ksmedia.h
  30. DEFINE_GUID(DMOCATEGORY_AUDIO_NOISE_SUPPRESS, 0xe07f903f, 0x62fd, 0x4e60, 0x8c, 0xdd, 0xde, 0xa7, 0x23, 0x66, 0x65, 0xb5);
  31. // Automatic Gain Control {E88C9BA0-C557-11D0-8A2B-00A0C9255AC1}
  32. // Matches KSNODETYPE_AGC in ksmedia.h
  33. DEFINE_GUID(DMOCATEGORY_AGC, 0xE88C9BA0L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1);
  34. typedef struct _DMO_PARTIAL_MEDIATYPE {
  35. GUID type;
  36. GUID subtype;
  37. } DMO_PARTIAL_MEDIATYPE, *PDMO_PARTIAL_MEDIATYPE;
  38. enum DMO_REGISTER_FLAGS {
  39. DMO_REGISTERF_IS_KEYED = 0x00000001
  40. };
  41. enum DMO_ENUM_FLAGS {
  42. DMO_ENUMF_INCLUDE_KEYED = 0x00000001
  43. };
  44. STDAPI DMORegister(
  45. LPCWSTR szName,
  46. REFCLSID clsidDMO,
  47. REFGUID guidCategory,
  48. DWORD dwFlags, // DMO_REGISTERF_XXX
  49. //
  50. // Register all mediatypes supported by the object. This carries no
  51. // information about which combinations of input/output types would
  52. // actually work.
  53. //
  54. DWORD cInTypes,
  55. const DMO_PARTIAL_MEDIATYPE *pInTypes,
  56. DWORD cOutTypes,
  57. const DMO_PARTIAL_MEDIATYPE *pOutTypes
  58. );
  59. STDAPI DMOUnregister(
  60. REFCLSID clsidDMO,
  61. REFGUID guidCategory // optional - GUID_NULL means unregister from all
  62. );
  63. STDAPI DMOEnum(
  64. REFGUID guidCategory, // GUID_NULL for "all"
  65. DWORD dwFlags, // DMO_ENUMF_XXX
  66. //
  67. // Enumerate only objects that support at least one of the specified input types
  68. // and at least one of the specified output types. If no input types are specified,
  69. // enumerate objects regardless of what input types they support. Same for
  70. // output types.
  71. //
  72. DWORD cInTypes,
  73. const DMO_PARTIAL_MEDIATYPE *pInTypes, // can be NULL only of ulInTypes = 0
  74. DWORD cOutTypes,
  75. const DMO_PARTIAL_MEDIATYPE *pOutTypes, // can be NULL only of ulOutTypes = 0
  76. //
  77. // Output parameter - this receives a pointer to the DMO CLSID enumerator
  78. //
  79. IEnumDMO **ppEnum
  80. );
  81. STDAPI DMOGetTypes(
  82. REFCLSID clsidDMO,
  83. unsigned long ulInputTypesRequested,
  84. unsigned long *pulInputTypesSupplied,
  85. DMO_PARTIAL_MEDIATYPE *pInputTypes,
  86. unsigned long ulOutputTypesRequested,
  87. unsigned long *pulOutputTypesSupplied,
  88. DMO_PARTIAL_MEDIATYPE *pOutputTypes
  89. );
  90. STDAPI DMOGetName(
  91. REFCLSID clsidDMO,
  92. WCHAR szName[80]
  93. );
  94. #endif //__DMOREG_H__