Lines Matching refs:device_hwctx
124 AVD3D11VADeviceContext *device_hwctx = ctx->hwctx;
136 hr = ID3D11Device_CheckFormatSupport(device_hwctx->device, supported_formats[i].d3d_format, &format_support);
201 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
216 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &tex);
249 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
291 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &hwctx->texture);
355 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
369 hr = ID3D11Device_CreateTexture2D(device_hwctx->device, &texDesc, NULL, &s->staging_texture);
395 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx;
415 device_hwctx->lock(device_hwctx->lock_ctx);
429 ID3D11DeviceContext_CopySubresourceRegion(device_hwctx->device_context,
433 hr = ID3D11DeviceContext_Map(device_hwctx->device_context,
443 ID3D11DeviceContext_Unmap(device_hwctx->device_context, staging, 0);
445 hr = ID3D11DeviceContext_Map(device_hwctx->device_context,
455 ID3D11DeviceContext_Unmap(device_hwctx->device_context, staging, 0);
457 ID3D11DeviceContext_CopySubresourceRegion(device_hwctx->device_context,
462 device_hwctx->unlock(device_hwctx->lock_ctx);
467 device_hwctx->unlock(device_hwctx->lock_ctx);
473 AVD3D11VADeviceContext *device_hwctx = hwdev->hwctx;
476 if (!device_hwctx->lock) {
477 device_hwctx->lock_ctx = CreateMutex(NULL, 0, NULL);
478 if (device_hwctx->lock_ctx == INVALID_HANDLE_VALUE) {
482 device_hwctx->lock = d3d11va_default_lock;
483 device_hwctx->unlock = d3d11va_default_unlock;
486 if (!device_hwctx->device_context) {
487 ID3D11Device_GetImmediateContext(device_hwctx->device, &device_hwctx->device_context);
488 if (!device_hwctx->device_context)
492 if (!device_hwctx->video_device) {
493 hr = ID3D11DeviceContext_QueryInterface(device_hwctx->device, &IID_ID3D11VideoDevice,
494 (void **)&device_hwctx->video_device);
499 if (!device_hwctx->video_context) {
500 hr = ID3D11DeviceContext_QueryInterface(device_hwctx->device_context, &IID_ID3D11VideoContext,
501 (void **)&device_hwctx->video_context);
511 AVD3D11VADeviceContext *device_hwctx = hwdev->hwctx;
513 if (device_hwctx->device) {
514 ID3D11Device_Release(device_hwctx->device);
515 device_hwctx->device = NULL;
518 if (device_hwctx->device_context) {
519 ID3D11DeviceContext_Release(device_hwctx->device_context);
520 device_hwctx->device_context = NULL;
523 if (device_hwctx->video_device) {
524 ID3D11VideoDevice_Release(device_hwctx->video_device);
525 device_hwctx->video_device = NULL;
528 if (device_hwctx->video_context) {
529 ID3D11VideoContext_Release(device_hwctx->video_context);
530 device_hwctx->video_context = NULL;
533 if (device_hwctx->lock == d3d11va_default_lock) {
534 CloseHandle(device_hwctx->lock_ctx);
535 device_hwctx->lock_ctx = INVALID_HANDLE_VALUE;
536 device_hwctx->lock = NULL;
543 AVD3D11VADeviceContext *device_hwctx = ctx->hwctx;
589 D3D11_SDK_VERSION, &device_hwctx->device, NULL, NULL);
597 hr = ID3D11Device_QueryInterface(device_hwctx->device, &IID_ID3D10Multithread, (void **)&pMultithread);