From 6bcf419d2e8f739b432d4790d1ba9d48ab65365b Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 18 Nov 2011 12:14:12 +0000 Subject: --- ARMFCaptureD3D/debug.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ARMFCaptureD3D/debug.h (limited to 'ARMFCaptureD3D/debug.h') diff --git a/ARMFCaptureD3D/debug.h b/ARMFCaptureD3D/debug.h new file mode 100644 index 0000000..21325ad --- /dev/null +++ b/ARMFCaptureD3D/debug.h @@ -0,0 +1,32 @@ + + +// The following code enables you to view the contents of a media type while +// debugging. +#include "ARMFCaptureD3D.h" +#include + +LPCWSTR GetGUIDNameConst(const GUID& guid); +HRESULT GetGUIDName(const GUID& guid, WCHAR **ppwsz); + +HRESULT LogAttributeValueByIndex(IMFAttributes *pAttr, DWORD index); +HRESULT SpecialCaseAttributeValue(GUID guid, const PROPVARIANT& var); + +#ifdef _DEBUG +void DBGMSG(PCWSTR format, ...); +HRESULT LogMediaType(IMFMediaType *pType); +#else +#define DBGMSG(...) /**/ +#define LogMediaType(a) /**/ +#endif + +HRESULT LogAttributeValueByIndex(IMFAttributes *pAttr, DWORD index); + +HRESULT GetGUIDName(const GUID& guid, WCHAR **ppwsz); + +void LogUINT32AsUINT64(const PROPVARIANT& var); + +float OffsetToFloat(const MFOffset& offset); +HRESULT LogVideoArea(const PROPVARIANT& var); + + + -- cgit v1.1