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

Method Process

Source/DXVA2VP.cpp:460–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460HRESULT CDXVA2VP::Process(IDirect3DSurface9* pRenderTarget, const DXVA2_SampleFormat sampleFormat, const bool second)
461{
462 if (!m_VideoSamples.Size()) {
463 return E_ABORT;
464 }
465
466 // Initialize VPBlt parameters
467 m_BltParams.TargetFrame = m_VideoSamples.GetTargetFrameTime(m_DXVA2VPcaps.NumBackwardRefSamples, second);
468
469 HRESULT hr = m_pDXVA2_VP->VideoProcessBlt(pRenderTarget, &m_BltParams, m_VideoSamples.Data(), m_VideoSamples.Size(), nullptr);
470 DLogIf(FAILED(hr), L"CDXVA2VP::Process() : VideoProcessBlt() failed with error {}", HR2Str(hr));
471
472 return hr;
473}

Callers

nothing calls this directly

Calls 4

HR2StrFunction · 0.85
GetTargetFrameTimeMethod · 0.80
SizeMethod · 0.45
DataMethod · 0.45

Tested by

no test coverage detected