summaryrefslogtreecommitdiff
path: root/ARMFCaptureD3D/debug.h
blob: 21325ad470ba79d6186ebeefe77ad530ecd4f841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);