| 92 | } |
| 93 | |
| 94 | const wchar_t* D3DFormatToString(const D3DFORMAT format) |
| 95 | { |
| 96 | switch (format) { |
| 97 | case D3DFMT_A8R8G8B8: return L"A8R8G8B8"; |
| 98 | case D3DFMT_X8R8G8B8: return L"X8R8G8B8"; |
| 99 | case D3DFMT_A2B10G10R10: return L"A2B10G10R10"; |
| 100 | case D3DFMT_A8B8G8R8: return L"A8B8G8R8"; // often not supported |
| 101 | case D3DFMT_G16R16: return L"G16R16"; |
| 102 | case D3DFMT_A2R10G10B10: return L"A2R10G10B10"; |
| 103 | case D3DFMT_A8P8: return L"A8P8"; // DXVA-HD |
| 104 | case D3DFMT_P8: return L"P8"; // DXVA-HD |
| 105 | case D3DFMT_L8: return L"L8"; |
| 106 | case D3DFMT_A8L8: return L"A8L8"; |
| 107 | case D3DFMT_L16: return L"L16"; |
| 108 | case D3DFMT_A16B16G16R16F: return L"A16B16G16R16F"; |
| 109 | case D3DFMT_A32B32G32R32F: return L"A32B32G32R32F"; |
| 110 | case D3DFMT_YUY2: return L"YUY2"; |
| 111 | case D3DFMT_UYVY: return L"UYVY"; |
| 112 | case D3DFMT_NV12: return L"NV12"; |
| 113 | case D3DFMT_YV12: return L"YV12"; |
| 114 | case D3DFMT_P010: return L"P010"; |
| 115 | case D3DFMT_P016: return L"P016"; |
| 116 | case D3DFMT_P210: return L"P210"; |
| 117 | case D3DFMT_P216: return L"P216"; |
| 118 | case D3DFMT_AYUV: return L"AYUV"; |
| 119 | case D3DFMT_Y410: return L"Y410"; |
| 120 | case D3DFMT_Y416: return L"Y416"; |
| 121 | case FCC('Y210'): return L"Y210"; // Intel |
| 122 | case FCC('Y216'): return L"Y216"; // Intel |
| 123 | case FCC('AIP8'): return L"AIP8"; // DXVA-HD |
| 124 | case FCC('AI44'): return L"AI44"; // DXVA-HD |
| 125 | }; |
| 126 | |
| 127 | return L"UNKNOWN"; |
| 128 | } |
| 129 | |
| 130 | const wchar_t* DXGIFormatToString(const DXGI_FORMAT format) |
| 131 | { |
no outgoing calls
no test coverage detected