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.

49 lines
1.3 KiB

  1. //==========================================================================;
  2. //
  3. // Copyright (c) Microsoft Corporation 1999-2000.
  4. //
  5. //--------------------------------------------------------------------------;
  6. //
  7. // MSVidVideoRenderer.cpp : Implementation of CMSVidVideoRenderer
  8. //
  9. #include "stdafx.h"
  10. #ifndef TUNING_MODEL_ONLY
  11. #include "MSVidCtl.h"
  12. #include "MSVidVideoRenderer.h"
  13. #include "Vidctl.h"
  14. DEFINE_EXTERN_OBJECT_ENTRY(CLSID_MSVidVideoRenderer, CMSVidVideoRenderer)
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CMSVidVideoRenderer
  17. STDMETHODIMP CMSVidVideoRenderer::InterfaceSupportsErrorInfo(REFIID riid)
  18. {
  19. static const IID* arr[] =
  20. {
  21. &IID_IMSVidVideoRenderer
  22. };
  23. for (int i=0; i < sizeof(arr) / sizeof(arr[0]); i++)
  24. {
  25. if (InlineIsEqualGUID(*arr[i],riid))
  26. return S_OK;
  27. }
  28. return S_FALSE;
  29. }
  30. STDMETHODIMP CMSVidVideoRenderer::put_SuppressEffects(/*in*/ VARIANT_BOOL bSuppressEffects){
  31. m_vidSuppressEffects = bSuppressEffects==VARIANT_TRUE?true:false;
  32. return NOERROR;
  33. }
  34. STDMETHODIMP CMSVidVideoRenderer::get_SuppressEffects(/*out, retval*/ VARIANT_BOOL *bSuppressEffects){
  35. if(!bSuppressEffects){
  36. return E_POINTER;
  37. }
  38. *bSuppressEffects = m_vidSuppressEffects?VARIANT_TRUE:VARIANT_FALSE;
  39. return NOERROR;
  40. }
  41. #endif //TUNING_MODEL_ONLY
  42. // end of file - MSVidvideorenderer.cpp