diff options
Diffstat (limited to 'ARMFCaptureD3D/debug.h')
-rw-r--r-- | ARMFCaptureD3D/debug.h | 32 |
1 files changed, 32 insertions, 0 deletions
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 <strsafe.h>
+
+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);
+
+
+
|