when I use dxva2 decode h264,CreateDevice success when cable connect monitor,otherwise CreateDevice return fail when turn off monitor。video card is nvidia ti 1080. why?
when I use dxva2 decode h264,CreateDevice success when cable connect monitor,otherwise CreateDevice return fail when turn off monitor。video card is nvidia ti 1080. why?
Assume you are talking about this API: IDirect3D9::CreateDevice. I test this official sample: dxva2_videoproc with Intel HD Graphics 530, CreateDevice return success even when I power off the display monitor and unplug the connection cable. (I only have one display attached in this test case). Can you try this official sample to see if it works for you? If not, can you show error code of CreateDevice failure?
IDirectXVideoDecoderService->GetDecoderDeviceGuids() return E_FAIL if unplug the connection cable.i can't get the SupportHWGuidList.
IDirectXVideoDecoderService->GetDecoderDeviceGuids() works for me after unplug the connection cable. I create the demo by adding the following code after this line: g_pD3DD9->GetBackBuffer(). You can have a try.
// Create DXVA2 Video decoder Service.
IDirectXVideoDecoderService* decoderService = NULL;
hr = DXVA2CreateVideoService(g_pD3DD9,
IID_IDirectXVideoDecoderService,
(VOID * *)& decoderService);
while (true)
{
UINT devGuidcount = 0;
GUID* guidArr[100];
hr = decoderService->GetDecoderDeviceGuids(&devGuidcount, &guidArr[0]);
if (FAILED(hr))
{
DBGMSG((TEXT("GetDecoderDeviceGuids failed with error 0x%x.\n"), hr));
return FALSE;
}
}
No one has followed this question yet.