DSSampleGrabberUtils.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Copyright (C) 2014-2015 Mamadou DIOP
  2. *
  3. * This file is part of Open Source Doubango Framework.
  4. *
  5. * DOUBANGO is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * DOUBANGO is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with DOUBANGO.
  17. */
  18. #pragma once
  19. #if defined(_WIN32_WCE)
  20. // callback definition
  21. typedef void (CALLBACK *MANAGEDCALLBACKPROC)(BYTE* pdata, long len);
  22. // ISampleGrabber interface definition
  23. // {04951BFF-696A-4ade-828D-42A5F1EDB631}
  24. DEFINE_GUID(IID_ISampleGrabber,
  25. 0x4951bff, 0x696a, 0x4ade, 0x82, 0x8d, 0x42, 0xa5, 0xf1, 0xed, 0xb6, 0x31);
  26. DECLARE_INTERFACE_(ISampleGrabber, IUnknown)
  27. {
  28. STDMETHOD(SetCallback)(MANAGEDCALLBACKPROC callback) PURE;
  29. };
  30. // {D11DFE19-8864-4a60-B26C-552F9AA472E1}
  31. DEFINE_GUID(CLSID_NullRenderer,
  32. 0xd11dfe19, 0x8864, 0x4a60, 0xb2, 0x6c, 0x55, 0x2f, 0x9a, 0xa4, 0x72, 0xe1);
  33. #endif /* _WIN32_WCE */