Lines Matching refs:hwctx
132 AVQSVDeviceContext *hwctx = ctx->hwctx; in qsv_device_init() local
139 err = MFXVideoCORE_GetHandle(hwctx->session, supported_handle_types[i].handle_type, in qsv_device_init()
153 err = MFXQueryIMPL(hwctx->session, &s->impl); in qsv_device_init()
155 err = MFXQueryVersion(hwctx->session, &s->ver); in qsv_device_init()
201 AVQSVFramesContext *hwctx = ctx->hwctx; in qsv_pool_alloc() local
203 if (s->nb_surfaces_used < hwctx->nb_surfaces) { in qsv_pool_alloc()
206 sizeof(*hwctx->surfaces), qsv_pool_release_dummy, NULL, 0); in qsv_pool_alloc()
214 AVQSVFramesContext *hwctx = ctx->hwctx; in qsv_init_child_ctx() local
240 AVVAAPIDeviceContext *child_device_hwctx = child_device_ctx->hwctx; in qsv_init_child_ctx()
246 AVDXVA2DeviceContext *child_device_hwctx = child_device_ctx->hwctx; in qsv_init_child_ctx()
272 AVDXVA2FramesContext *child_frames_hwctx = child_frames_ctx->hwctx; in qsv_init_child_ctx()
273 if (hwctx->frame_type & MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET) in qsv_init_child_ctx()
288 AVVAAPIFramesContext *child_frames_hwctx = child_frames_ctx->hwctx; in qsv_init_child_ctx()
291 hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET; in qsv_init_child_ctx()
296 AVDXVA2FramesContext *child_frames_hwctx = child_frames_ctx->hwctx; in qsv_init_child_ctx()
300 hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_PROCESSOR_TARGET; in qsv_init_child_ctx()
302 hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET; in qsv_init_child_ctx()
354 AVQSVFramesContext *frames_hwctx = ctx->hwctx; in qsv_init_pool()
396 AVQSVFramesContext *hwctx = ctx->hwctx; in frame_alloc() local
398 mfxFrameInfo *i1 = &hwctx->surfaces[0].Info; in frame_alloc()
414 resp->NumFrameActual = hwctx->nb_surfaces; in frame_alloc()
444 AVQSVFramesContext *frames_hwctx = ctx->hwctx; in qsv_init_internal_session()
519 AVQSVFramesContext *frames_hwctx = ctx->hwctx; in qsv_frames_init()
617 AVQSVFramesContext *src_hwctx = src_ctx->hwctx; in qsv_frames_derive_from()
624 AVVAAPIFramesContext *dst_hwctx = dst_ctx->hwctx; in qsv_frames_derive_from()
639 AVDXVA2FramesContext *dst_hwctx = dst_ctx->hwctx; in qsv_frames_derive_from()
978 AVQSVFramesContext *dst_hwctx = dst_ctx->hwctx; in qsv_frames_derive_to()
985 AVVAAPIFramesContext *src_hwctx = src_ctx->hwctx; in qsv_frames_derive_to()
1002 AVDXVA2FramesContext *src_hwctx = src_ctx->hwctx; in qsv_frames_derive_to()
1031 AVQSVFramesContext *hwctx = dst_ctx->hwctx; in qsv_map_to() local
1034 for (i = 0; i < hwctx->nb_surfaces; i++) { in qsv_map_to()
1036 if (*(VASurfaceID*)hwctx->surfaces[i].Data.MemId == in qsv_map_to()
1041 if ((IDirect3DSurface9*)hwctx->surfaces[i].Data.MemId == in qsv_map_to()
1046 if (i >= hwctx->nb_surfaces) { in qsv_map_to()
1059 dst->data[3] = (uint8_t*)&hwctx->surfaces[i]; in qsv_map_to()
1091 AVQSVDeviceContext *hwctx = ctx->hwctx; in qsv_device_free() local
1094 if (hwctx->session) in qsv_device_free()
1095 MFXClose(hwctx->session); in qsv_device_free()
1138 AVQSVDeviceContext *hwctx = ctx->hwctx; in qsv_device_derive_from_child() local
1150 AVVAAPIDeviceContext *child_device_hwctx = child_device_ctx->hwctx; in qsv_device_derive_from_child()
1159 AVDXVA2DeviceContext *child_device_hwctx = child_device_ctx->hwctx; in qsv_device_derive_from_child()
1170 err = MFXInit(implementation, &ver, &hwctx->session); in qsv_device_derive_from_child()
1178 err = MFXQueryVersion(hwctx->session, &ver); in qsv_device_derive_from_child()
1189 MFXClose(hwctx->session); in qsv_device_derive_from_child()
1191 err = MFXInit(implementation, &ver, &hwctx->session); in qsv_device_derive_from_child()
1199 err = MFXVideoCORE_SetHandle(hwctx->session, handle_type, handle); in qsv_device_derive_from_child()
1210 if (hwctx->session) in qsv_device_derive_from_child()
1211 MFXClose(hwctx->session); in qsv_device_derive_from_child()