summaryrefslogtreecommitdiff
path: root/ARMFCaptureD3D/debug.h
diff options
context:
space:
mode:
authorfcolin2011-11-18 12:14:12 +0000
committerfcolin2011-11-18 12:14:12 +0000
commit6bcf419d2e8f739b432d4790d1ba9d48ab65365b (patch)
tree92815e16f189c8e328dff4fcfa38ebe1d0217fdd /ARMFCaptureD3D/debug.h
parent487e963b081d7ffe2ddf489e11d927982c9101a6 (diff)
downloadamilis-master.zip
amilis-master.tar.gz
amilis-master.tar.bz2
amilis-master.tar.xz
Diffstat (limited to 'ARMFCaptureD3D/debug.h')
-rw-r--r--ARMFCaptureD3D/debug.h32
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);
+
+
+