| 458 | } |
| 459 | |
| 460 | HRESULT 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 | } |
nothing calls this directly
no test coverage detected