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.

73 lines
1.9 KiB

  1. /*
  2. * File: connobj.cpp
  3. *
  4. * implementation of Internet Video capability API interface.
  5. *
  6. *
  7. *
  8. * Revision History:
  9. *
  10. * 06/18/96 mikev created
  11. * 07/28/96 philf added support for video
  12. */
  13. #include "precomp.h"
  14. ULONG CImpAppVidCap ::AddRef()
  15. {
  16. return (m_pCapObject->AddRef());
  17. }
  18. ULONG CImpAppVidCap ::Release()
  19. {
  20. return (m_pCapObject->Release());
  21. }
  22. HRESULT CImpAppVidCap::GetNumFormats(UINT *puNumFmtOut)
  23. {
  24. return (m_pCapObject->GetNumFormats(puNumFmtOut));
  25. }
  26. HRESULT CImpAppVidCap ::GetBasicVidcapInfo (VIDEO_FORMAT_ID Id,
  27. PBASIC_VIDCAP_INFO pFormatPrefsBuf)
  28. {
  29. return (m_pCapObject->GetBasicVidcapInfo (Id, pFormatPrefsBuf));
  30. }
  31. HRESULT CImpAppVidCap ::EnumFormats(PBASIC_VIDCAP_INFO pFmtBuf, UINT uBufsize,
  32. UINT *uNumFmtOut)
  33. {
  34. return (m_pCapObject->EnumFormats(pFmtBuf, uBufsize, uNumFmtOut));
  35. }
  36. HRESULT CImpAppVidCap ::EnumCommonFormats(PBASIC_VIDCAP_INFO pFmtBuf, UINT uBufsize,
  37. UINT *uNumFmtOut, BOOL bTXCaps)
  38. {
  39. return (m_pCapObject->EnumCommonFormats(pFmtBuf, uBufsize, uNumFmtOut, bTXCaps));
  40. }
  41. HRESULT CImpAppVidCap ::ApplyAppFormatPrefs (PBASIC_VIDCAP_INFO pFormatPrefsBuf,
  42. UINT uNumFormatPrefs)
  43. {
  44. return (m_pCapObject->ApplyAppFormatPrefs (pFormatPrefsBuf, uNumFormatPrefs));
  45. }
  46. HRESULT CImpAppVidCap ::AddVCMFormat (PVIDEOFORMATEX pvfx, PVIDCAP_INFO pVidCapInfo)
  47. {
  48. return (m_pCapObject->AddVCMFormat(pvfx, pVidCapInfo));
  49. }
  50. HRESULT CImpAppVidCap ::RemoveVCMFormat (PVIDEOFORMATEX pvfx)
  51. {
  52. return (m_pCapObject->RemoveVCMFormat(pvfx));
  53. }
  54. PVIDEOFORMATEX CImpAppVidCap::GetVidcapDetails (VIDEO_FORMAT_ID Id)
  55. {
  56. UINT uSize;
  57. VIDEOFORMATEX *pFormat;
  58. m_pCapObject->GetEncodeFormatDetails(Id, (VOID**)&pFormat, &uSize);
  59. return pFormat;
  60. }
  61. HRESULT CImpAppVidCap::GetPreferredFormatId (VIDEO_FORMAT_ID *pId)
  62. {
  63. return (pId ? m_pCapObject->GetPreferredFormatId (pId) : (HRESULT)S_FALSE);
  64. }
  65. HRESULT CImpAppVidCap::SetDeviceID(DWORD dwDeviceID)
  66. {
  67. return (m_pCapObject->SetDeviceID(dwDeviceID));
  68. }