Lines Matching defs:device
136 hr = ID3D11Device_CheckFormatSupport(device_hwctx->device, supported_formats[i].d3d_format, &format_support);
216 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &tex);
291 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &hwctx->texture);
369 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &s->staging_texture);
487 ID3D11Device_GetImmediateContext(device_hwctx->device, &device_hwctx->device_context);
493 hr = ID3D11DeviceContext_QueryInterface(device_hwctx->device, &IID_ID3D11VideoDevice,
513 if (device_hwctx->device) {
514 ID3D11Device_Release(device_hwctx->device);
515 device_hwctx->device = NULL;
540 static int d3d11va_device_create(AVHWDeviceContext *ctx, const char *device,
568 if (device) {
572 int adapter = atoi(device);
583 av_log(ctx, AV_LOG_INFO, "Using device %04x:%04x (%ls).\n",
589 D3D11_SDK_VERSION, &device_hwctx->device, NULL, NULL);
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);