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.

133 lines
2.7 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. MSPCall.h
  5. Abstract:
  6. Definitions for MSP utililty functions. There are all related to
  7. active movie filter manipulation.
  8. Author:
  9. Mu Han (muhan) 1-November-1997
  10. --*/
  11. #ifndef __MSPUTIL_H
  12. #define __MSPUTIL_H
  13. const DWORD PAYLOAD_G711U = 0;
  14. const DWORD PAYLOAD_G721 = 2;
  15. const DWORD PAYLOAD_GSM = 3;
  16. const DWORD PAYLOAD_G723 = 4;
  17. const DWORD PAYLOAD_DVI4_8 = 5;
  18. const DWORD PAYLOAD_DVI4_16 = 6;
  19. const DWORD PAYLOAD_G711A = 8;
  20. const DWORD PAYLOAD_MSAUDIO = 12;
  21. const DWORD PAYLOAD_H261 = 31;
  22. const DWORD PAYLOAD_H263 = 34;
  23. const WCHAR gszMSPLoopback[] = L"Loopback";
  24. const WCHAR gszNumVideoCaptureBuffers[] = L"NumVideoCaptureBuffers";
  25. const TCHAR gszSDPMSPKey[] =
  26. _T("Software\\Microsoft\\Windows\\CurrentVersion\\IPConfMSP\\");
  27. HRESULT
  28. FindPin(
  29. IN IBaseFilter * pIFilter,
  30. OUT IPin ** ppIPin,
  31. IN PIN_DIRECTION direction,
  32. IN BOOL bFree = TRUE
  33. );
  34. HRESULT
  35. AddFilter(
  36. IN IGraphBuilder * pIGraph,
  37. IN const CLSID & Clsid,
  38. IN LPCWSTR pwstrName,
  39. OUT IBaseFilter ** ppIBaseFilter
  40. );
  41. HRESULT
  42. SetLoopbackOption(
  43. IN IBaseFilter *pIBaseFilter,
  44. IN BOOL bLoopback
  45. );
  46. HRESULT
  47. SetQOSOption(
  48. IN IBaseFilter * pIBaseFilter,
  49. IN DWORD dwPayloadType,
  50. IN DWORD dwMaxBitRate,
  51. IN BOOL bFailIfNoQOS,
  52. IN BOOL bReceive = FALSE,
  53. IN DWORD dwNumStreams = 1,
  54. IN BOOL bCIF = FALSE
  55. );
  56. HRESULT
  57. ConnectFilters(
  58. IN IGraphBuilder * pIGraph,
  59. IN IBaseFilter * pIFilter1,
  60. IN IBaseFilter * pIFilter2,
  61. IN BOOL fDirect = TRUE,
  62. IN AM_MEDIA_TYPE * pmt = NULL
  63. );
  64. HRESULT
  65. ConnectFilters(
  66. IN IGraphBuilder * pIGraph,
  67. IN IPin * pIPinOutput,
  68. IN IBaseFilter * pIFilter,
  69. IN BOOL fDirect = TRUE,
  70. IN AM_MEDIA_TYPE * pmt = NULL
  71. );
  72. HRESULT
  73. ConnectFilters(
  74. IN IGraphBuilder * pIGraph,
  75. IN IBaseFilter * pIFilter,
  76. IN IPin * pIPinInput,
  77. IN BOOL fDirect = TRUE,
  78. IN AM_MEDIA_TYPE * pmt = NULL
  79. );
  80. HRESULT
  81. EnableRTCPEvents(
  82. IN IBaseFilter *pIBaseFilter
  83. );
  84. void WINAPI MSPDeleteMediaType(AM_MEDIA_TYPE *pmt);
  85. BOOL
  86. GetRegValue(
  87. IN LPCWSTR szName,
  88. OUT DWORD *pdwValue
  89. );
  90. HRESULT
  91. FindACMAudioCodec(
  92. IN DWORD dwPayloadType,
  93. OUT IBaseFilter **ppIBaseFilter
  94. );
  95. HRESULT SetAudioFormat(
  96. IN IUnknown* pIUnknown,
  97. IN WORD wBitPerSample,
  98. IN DWORD dwSampleRate
  99. );
  100. HRESULT SetAudioBufferSize(
  101. IN IUnknown* pIUnknown,
  102. IN DWORD dwNumBuffers,
  103. IN DWORD dwBufferSize
  104. );
  105. #endif