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.

110 lines
2.2 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_G723 = 4;
  15. const DWORD PAYLOAD_G711A = 8;
  16. const DWORD PAYLOAD_H261 = 31;
  17. const DWORD PAYLOAD_H263 = 34;
  18. const TCHAR gszSDPMSPKey[] =
  19. _T("Software\\Microsoft\\Windows\\CurrentVersion\\H323MSP\\");
  20. HRESULT
  21. FindPin(
  22. IN IBaseFilter * pIFilter,
  23. OUT IPin ** ppIPin,
  24. IN PIN_DIRECTION direction,
  25. IN BOOL bFree = TRUE
  26. );
  27. HRESULT
  28. AddFilter(
  29. IN IGraphBuilder * pIGraph,
  30. IN const CLSID & Clsid,
  31. IN LPCWSTR pwstrName,
  32. OUT IBaseFilter ** ppIBaseFilter
  33. );
  34. HRESULT
  35. SetQOSOption(
  36. IN IBaseFilter * pIBaseFilter,
  37. IN DWORD dwPayloadType,
  38. IN DWORD dwMaxBandwidth,
  39. IN BOOL bReceive,
  40. IN BOOL bCIF = FALSE
  41. );
  42. HRESULT
  43. ConnectFilters(
  44. IN IGraphBuilder * pIGraph,
  45. IN IBaseFilter * pIFilter1,
  46. IN IBaseFilter * pIFilter2,
  47. IN BOOL fDirect = TRUE,
  48. IN AM_MEDIA_TYPE * pmt = NULL
  49. );
  50. HRESULT
  51. ConnectFilters(
  52. IN IGraphBuilder * pIGraph,
  53. IN IPin * pIPinOutput,
  54. IN IBaseFilter * pIFilter,
  55. IN BOOL fDirect = TRUE,
  56. IN AM_MEDIA_TYPE * pmt = NULL
  57. );
  58. HRESULT
  59. ConnectFilters(
  60. IN IGraphBuilder * pIGraph,
  61. IN IBaseFilter * pIFilter,
  62. IN IPin * pIPinInput,
  63. IN BOOL fDirect = TRUE,
  64. IN AM_MEDIA_TYPE * pmt = NULL
  65. );
  66. HRESULT
  67. EnableRTCPEvents(
  68. IN IBaseFilter *pIBaseFilter
  69. );
  70. void WINAPI DeleteMediaType(AM_MEDIA_TYPE *pmt);
  71. BOOL
  72. GetRegValue(
  73. IN LPCWSTR szName,
  74. OUT DWORD *pdwValue
  75. );
  76. HRESULT SetAudioFormat(
  77. IN IUnknown* pIUnknown,
  78. IN WORD wBitPerSample,
  79. IN DWORD dwSampleRate
  80. );
  81. HRESULT SetAudioBufferSize(
  82. IN IUnknown* pIUnknown,
  83. IN DWORD dwNumBuffers,
  84. IN DWORD dwBufferSize
  85. );
  86. #endif