Lines Matching defs:hwctx
152 static int amf_init_from_d3d11_device(AVCodecContext *avctx, AVD3D11VADeviceContext *hwctx)
157 res = ctx->context->pVtbl->InitDX11(ctx->context, hwctx->device, AMF_DX11_1);
171 static int amf_init_from_dxva2_device(AVCodecContext *avctx, AVDXVA2DeviceContext *hwctx)
180 hr = IDirect3DDeviceManager9_OpenDeviceHandle(hwctx->devmgr, &device_handle);
186 hr = IDirect3DDeviceManager9_LockDevice(hwctx->devmgr, device_handle, &device, FALSE);
188 IDirect3DDeviceManager9_UnlockDevice(hwctx->devmgr, device_handle, FALSE);
195 IDirect3DDeviceManager9_CloseDeviceHandle(hwctx->devmgr, device_handle);
256 ret = amf_init_from_d3d11_device(avctx, frames_ctx->device_ctx->hwctx);
263 ret = amf_init_from_dxva2_device(avctx, frames_ctx->device_ctx->hwctx);
287 ret = amf_init_from_d3d11_device(avctx, device_ctx->hwctx);
294 ret = amf_init_from_dxva2_device(avctx, device_ctx->hwctx);