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

Function ColorEncodingToString

Source/DisplayConfig.cpp:296–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296const wchar_t* ColorEncodingToString(DISPLAYCONFIG_COLOR_ENCODING colorEncoding)
297{
298 const wchar_t* str;
299
300 switch (colorEncoding) {
301 case DISPLAYCONFIG_COLOR_ENCODING_RGB: str = L"RGB"; break;
302 case DISPLAYCONFIG_COLOR_ENCODING_YCBCR444: str = L"YCbCr444"; break;
303 case DISPLAYCONFIG_COLOR_ENCODING_YCBCR422: str = L"YCbCr422"; break;
304 case DISPLAYCONFIG_COLOR_ENCODING_YCBCR420: str = L"YCbCr420"; break;
305 default:
306 str = nullptr;
307 }
308
309 return str;
310}
311
312const wchar_t* OutputTechnologyToString(DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY outputTechnology)
313{

Callers 3

FillDisplayParamsMethod · 0.85
SetDisplayInfoMethod · 0.85
OnActivateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected