Lines Matching refs:hr
126 HRESULT hr;
136 hr = ID3D11Device_CheckFormatSupport(device_hwctx->device, supported_formats[i].d3d_format, &format_support);
137 if (SUCCEEDED(hr) && (format_support & D3D11_FORMAT_SUPPORT_TEXTURE2D))
202 HRESULT hr;
216 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &tex);
217 if (FAILED(hr)) {
218 av_log(ctx, AV_LOG_ERROR, "Could not create the texture (%lx)\n", (long)hr);
253 HRESULT hr;
291 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &hwctx->texture);
292 if (FAILED(hr)) {
293 av_log(ctx, AV_LOG_ERROR, "Could not create the texture (%lx)\n", (long)hr);
357 HRESULT hr;
369 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &s->staging_texture);
370 if (FAILED(hr)) {
371 av_log(ctx, AV_LOG_ERROR, "Could not create the staging texture (%lx)\n", (long)hr);
410 HRESULT hr;
433 hr = ID3D11DeviceContext_Map(device_hwctx->device_context,
435 if (FAILED(hr))
445 hr = ID3D11DeviceContext_Map(device_hwctx->device_context,
447 if (FAILED(hr))
466 av_log(ctx, AV_LOG_ERROR, "Unable to lock D3D11VA surface (%lx)\n", (long)hr);
474 HRESULT hr;
493 hr = ID3D11DeviceContext_QueryInterface(device_hwctx->device, &IID_ID3D11VideoDevice,
495 if (FAILED(hr))
500 hr = ID3D11DeviceContext_QueryInterface(device_hwctx->device_context, &IID_ID3D11VideoContext,
502 if (FAILED(hr))
545 HRESULT hr;
570 hr = mCreateDXGIFactory(&IID_IDXGIFactory2, (void **)&pDXGIFactory);
571 if (SUCCEEDED(hr)) {
581 hr = IDXGIAdapter2_GetDesc(pAdapter, &desc);
582 if (!FAILED(hr)) {
588 hr = mD3D11CreateDevice(pAdapter, pAdapter ? D3D_DRIVER_TYPE_UNKNOWN : D3D_DRIVER_TYPE_HARDWARE, NULL, creationFlags, NULL, 0,
592 if (FAILED(hr)) {
593 av_log(ctx, AV_LOG_ERROR, "Failed to create Direct3D device (%lx)\n", (long)hr);
597 hr = ID3D11Device_QueryInterface(device_hwctx->device, &IID_ID3D10Multithread, (void **)&pMultithread);
598 if (SUCCEEDED(hr)) {
611 hr = pf_DXGIGetDebugInterface(&IID_IDXGIDebug, (void**)&dxgi_debug);
612 if (SUCCEEDED(hr) && dxgi_debug)