MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / DXVA2VPDeviceToString

Function DXVA2VPDeviceToString

Source/Helper.cpp:167–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167std::wstring DXVA2VPDeviceToString(const GUID& guid)
168{
169 if (guid == DXVA2_VideoProcProgressiveDevice) {
170 return L"ProgressiveDevice";
171 }
172 if (guid == DXVA2_VideoProcBobDevice) {
173 return L"BobDevice";
174 }
175 if (guid == DXVA2_VideoProcSoftwareDevice) {
176 return L"SoftwareDevice";
177 }
178
179 return GUIDtoWString(guid);
180}
181
182static const DXVA2_ValueRange s_DefaultDXVA2ProcAmpRanges[4] = {
183 { DXVA2FloatToFixed(-100), DXVA2FloatToFixed(100), DXVA2FloatToFixed(0), DXVA2FloatToFixed(1) },

Callers 2

GetVPInfoMethod · 0.85
CreateDXVA2VPDeviceMethod · 0.85

Calls 1

GUIDtoWStringFunction · 0.85

Tested by

no test coverage detected