Lines Matching refs:hwctx

225     AVQSVDeviceContext *hwctx = ctx->hwctx;
233 err = MFXQueryIMPL(hwctx->session, &s->impl);
235 err = MFXQueryVersion(hwctx->session, &s->ver);
265 err = MFXVideoCORE_GetHandle(hwctx->session, handle_type, &s->handle);
318 AVQSVFramesContext *hwctx = ctx->hwctx;
320 if (s->nb_surfaces_used < hwctx->nb_surfaces) {
323 sizeof(*hwctx->surfaces), qsv_pool_release_dummy, NULL, 0);
331 AVQSVFramesContext *hwctx = ctx->hwctx;
357 AVVAAPIDeviceContext *child_device_hwctx = child_device_ctx->hwctx;
363 AVD3D11VADeviceContext *child_device_hwctx = child_device_ctx->hwctx;
370 AVDXVA2DeviceContext *child_device_hwctx = child_device_ctx->hwctx;
396 AVD3D11VAFramesContext *child_frames_hwctx = child_frames_ctx->hwctx;
397 if (hwctx->frame_type == 0)
398 hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET;
399 if (hwctx->frame_type & MFX_MEMTYPE_SHARED_RESOURCE)
401 child_frames_hwctx->BindFlags = qsv_get_d3d11va_bind_flags(hwctx->frame_type);
406 AVDXVA2FramesContext *child_frames_hwctx = child_frames_ctx->hwctx;
407 if (hwctx->frame_type & MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET)
422 AVVAAPIFramesContext *child_frames_hwctx = child_frames_ctx->hwctx;
428 hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET;
433 AVD3D11VAFramesContext *child_frames_hwctx = child_frames_ctx->hwctx;
444 hwctx->frame_type |= MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET;
446 hwctx->frame_type |= MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET;
452 AVDXVA2FramesContext *child_frames_hwctx = child_frames_ctx->hwctx;
459 hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET;
461 hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET;
513 AVQSVFramesContext *frames_hwctx = ctx->hwctx;
560 AVQSVFramesContext *hwctx = ctx->hwctx;
562 mfxFrameInfo *i1 = &hwctx->surfaces[0].Info;
578 resp->NumFrameActual = hwctx->nb_surfaces;
614 AVQSVFramesContext *frames_hwctx = ctx->hwctx;
689 AVQSVFramesContext *frames_hwctx = ctx->hwctx;
786 AVQSVFramesContext *src_hwctx = src_ctx->hwctx;
793 AVVAAPIFramesContext *dst_hwctx = dst_ctx->hwctx;
811 AVD3D11VAFramesContext *dst_hwctx = dst_ctx->hwctx;
831 AVDXVA2FramesContext *dst_hwctx = dst_ctx->hwctx;
1241 AVQSVFramesContext *dst_hwctx = dst_ctx->hwctx;
1254 AVVAAPIFramesContext *src_hwctx = src_ctx->hwctx;
1277 AVD3D11VAFramesContext *src_hwctx = src_ctx->hwctx;
1308 AVDXVA2FramesContext *src_hwctx = src_ctx->hwctx;
1343 AVQSVFramesContext *hwctx = dst_ctx->hwctx;
1346 for (i = 0; i < hwctx->nb_surfaces && index < 0; i++) {
1351 mfxHDLPair *pair = (mfxHDLPair*)hwctx->surfaces[i].Data.MemId;
1361 mfxHDLPair *pair = (mfxHDLPair*)hwctx->surfaces[i].Data.MemId;
1373 mfxHDLPair *pair = (mfxHDLPair*)hwctx->surfaces[i].Data.MemId;
1395 dst->data[3] = (uint8_t*)&hwctx->surfaces[index];
1427 AVQSVDeviceContext *hwctx = ctx->hwctx;
1430 if (hwctx->session)
1431 MFXClose(hwctx->session);
1481 AVQSVDeviceContext *hwctx = ctx->hwctx;
1493 AVVAAPIDeviceContext *child_device_hwctx = child_device_ctx->hwctx;
1502 AVD3D11VADeviceContext *child_device_hwctx = child_device_ctx->hwctx;
1511 AVDXVA2DeviceContext *child_device_hwctx = child_device_ctx->hwctx;
1522 err = MFXInit(implementation, &ver, &hwctx->session);
1530 err = MFXQueryVersion(hwctx->session, &ver);
1541 MFXClose(hwctx->session);
1543 err = MFXInit(implementation, &ver, &hwctx->session);
1551 err = MFXVideoCORE_SetHandle(hwctx->session, handle_type, handle);
1562 if (hwctx->session)
1563 MFXClose(hwctx->session);