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

Method GetProcAmpValues

Source/VideoProcessor.cpp:359–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359STDMETHODIMP CVideoProcessor::GetProcAmpValues(DWORD dwFlags, DXVA2_ProcAmpValues *Values)
360{
361 CheckPointer(Values, E_POINTER);
362 if (m_srcParams.cformat == CF_NONE) {
363 return MF_E_TRANSFORM_TYPE_NOT_SET;
364 }
365
366 if (dwFlags & DXVA2_ProcAmp_Brightness) { Values->Brightness = m_DXVA2ProcAmpValues.Brightness; }
367 if (dwFlags & DXVA2_ProcAmp_Contrast) { Values->Contrast = m_DXVA2ProcAmpValues.Contrast ; }
368 if (dwFlags & DXVA2_ProcAmp_Hue) { Values->Hue = m_DXVA2ProcAmpValues.Hue ; }
369 if (dwFlags & DXVA2_ProcAmp_Saturation) { Values->Saturation = m_DXVA2ProcAmpValues.Saturation; }
370
371 return S_OK;
372}
373
374STDMETHODIMP CVideoProcessor::GetBackgroundColor(COLORREF *lpClrBkg)
375{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected