// 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);