Home
last modified time | relevance | path

Searched refs:hwctx (Results 1 - 25 of 72) sorted by relevance

123

/third_party/ffmpeg/libavutil/
H A Dhwcontext_cuda.c84 AVCUDADeviceContext *hwctx = device_ctx->hwctx; in cuda_buffer_free() local
85 CudaFunctions *cu = hwctx->internal->cuda_dl; in cuda_buffer_free()
89 CHECK_CU(cu->cuCtxPushCurrent(hwctx->cuda_ctx)); in cuda_buffer_free()
100 AVCUDADeviceContext *hwctx = device_ctx->hwctx; in cuda_pool_alloc() local
101 CudaFunctions *cu = hwctx->internal->cuda_dl; in cuda_pool_alloc()
108 err = CHECK_CU(cu->cuCtxPushCurrent(hwctx->cuda_ctx)); in cuda_pool_alloc()
130 AVCUDADeviceContext *hwctx = device_ctx->hwctx; in cuda_frames_init() local
226 AVCUDADeviceContext *hwctx = device_ctx->hwctx; cuda_transfer_data() local
283 AVCUDADeviceContext *hwctx = device_ctx->hwctx; cuda_device_uninit() local
305 AVCUDADeviceContext *hwctx = ctx->hwctx; cuda_device_init() local
330 AVCUDADeviceContext *hwctx = device_ctx->hwctx; cuda_context_init() local
399 AVCUDADeviceContext *hwctx = device_ctx->hwctx; cuda_device_create() local
438 AVCUDADeviceContext *hwctx = device_ctx->hwctx; cuda_device_derive() local
[all...]
H A Dhwcontext_vulkan.c274 AVVulkanDeviceContext *hwctx = dev_ctx->hwctx; in pixfmt_is_supported() local
288 vk->GetPhysicalDeviceFormatProperties2(hwctx->phys_dev, fmt[i], &prop); in pixfmt_is_supported()
300 AVVulkanDeviceContext *hwctx = ctx->hwctx; in load_libvulkan() local
327 hwctx->get_proc_addr = (PFN_vkGetInstanceProcAddr)dlsym(p->libvulkan, "vkGetInstanceProcAddr"); in load_libvulkan()
430 AVVulkanDeviceContext *hwctx = ctx->hwctx; in check_extensions() local
470 vk->EnumerateDeviceExtensionProperties(hwctx->phys_dev, NULL, in check_extensions()
475 vk->EnumerateDeviceExtensionProperties(hwctx in check_extensions()
668 AVVulkanDeviceContext *hwctx = ctx->hwctx; create_instance() local
780 AVVulkanDeviceContext *hwctx = ctx->hwctx; find_device() local
929 AVVulkanDeviceContext *hwctx = ctx->hwctx; setup_queue_families() local
1060 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; create_exec_ctx() local
1116 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; free_exec_ctx() local
1168 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; wait_start_exec_ctx() local
1272 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; submit_exec_ctx() local
1287 AVVulkanDeviceContext *hwctx = ctx->hwctx; vulkan_device_free() local
1315 AVVulkanDeviceContext *hwctx = ctx->hwctx; vulkan_device_create_internal() local
1429 AVVulkanDeviceContext *hwctx = ctx->hwctx; vulkan_device_init() local
1759 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; vulkan_frame_free() local
1795 AVVulkanDeviceContext *hwctx = ctx->hwctx; alloc_bind_mem() local
2026 AVVulkanDeviceContext *hwctx = ctx->hwctx; create_frame() local
2129 AVVulkanFramesContext *hwctx = hwfc->hwctx; try_export_flags() local
2191 AVVulkanFramesContext *hwctx = hwfc->hwctx; vulkan_pool_alloc() local
2267 AVVulkanFramesContext *hwctx = hwfc->hwctx; vulkan_frames_init() local
2450 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; vulkan_unmap_frame() local
2487 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; vulkan_map_frame_to_mem() local
2584 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; vulkan_unmap_from_drm() local
2642 AVVulkanDeviceContext *hwctx = ctx->hwctx; vulkan_map_from_drm_frame_desc() local
2982 AVVulkanDeviceContext *hwctx = ctx->hwctx; vulkan_export_to_cuda() local
3302 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; vulkan_map_to_drm() local
3466 AVVulkanDeviceContext *hwctx = ctx->hwctx; free_buf() local
3496 AVVulkanDeviceContext *hwctx = ctx->hwctx; create_buf() local
3583 AVVulkanDeviceContext *hwctx = ctx->hwctx; map_buffers() local
3642 AVVulkanDeviceContext *hwctx = ctx->hwctx; unmap_buffers() local
3821 AVVulkanDeviceContext *hwctx = dev_ctx->hwctx; vulkan_transfer_data() local
[all...]
H A Dhwcontext_d3d11va.c106 AVD3D11VAFramesContext *frames_hwctx = ctx->hwctx; in d3d11va_frames_uninit()
124 AVD3D11VADeviceContext *device_hwctx = ctx->hwctx; in d3d11va_frames_get_constraints()
163 AVD3D11VAFramesContext *frames_hwctx = ctx->hwctx; in wrap_texture_buf()
200 AVD3D11VAFramesContext *hwctx = ctx->hwctx; in d3d11va_alloc_single() local
201 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_alloc_single()
212 .BindFlags = hwctx->BindFlags, in d3d11va_alloc_single()
213 .MiscFlags = hwctx->MiscFlags, in d3d11va_alloc_single()
229 AVD3D11VAFramesContext *hwctx = ctx->hwctx; in d3d11va_pool_alloc() local
248 AVD3D11VAFramesContext *hwctx = ctx->hwctx; d3d11va_frames_init() local
[all...]
H A Dvulkan.c101 qf->queue_family = s->hwctx->queue_family_index; in ff_vk_qf_init()
102 qf->actual_queues = s->hwctx->nb_graphics_queues; in ff_vk_qf_init()
105 qf->queue_family = s->hwctx->queue_family_comp_index; in ff_vk_qf_init()
106 qf->actual_queues = s->hwctx->nb_comp_queues; in ff_vk_qf_init()
109 qf->queue_family = s->hwctx->queue_family_tx_index; in ff_vk_qf_init()
110 qf->actual_queues = s->hwctx->nb_tx_queues; in ff_vk_qf_init()
113 qf->queue_family = s->hwctx->queue_family_encode_index; in ff_vk_qf_init()
114 qf->actual_queues = s->hwctx->nb_encode_queues; in ff_vk_qf_init()
117 qf->queue_family = s->hwctx->queue_family_decode_index; in ff_vk_qf_init()
118 qf->actual_queues = s->hwctx in ff_vk_qf_init()
[all...]
H A Dhwcontext_vaapi.c199 AVVAAPIDeviceContext *hwctx = hwdev->hwctx; in vaapi_frames_get_constraints() local
209 !(hwctx->driver_quirks & AV_VAAPI_DRIVER_QUIRK_SURFACE_ATTRIBUTES)) { in vaapi_frames_get_constraints()
211 vas = vaQuerySurfaceAttributes(hwctx->display, config->config_id, in vaapi_frames_get_constraints()
226 vas = vaQuerySurfaceAttributes(hwctx->display, config->config_id, in vaapi_frames_get_constraints()
360 AVVAAPIDeviceContext *hwctx = hwdev->hwctx; in vaapi_device_init() local
368 image_count = vaMaxNumImageFormats(hwctx->display); in vaapi_device_init()
378 vas = vaQueryImageFormats(hwctx->display, image_list, &image_count); in vaapi_device_init()
405 vendor_string = vaQueryVendorString(hwctx in vaapi_device_init()
457 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; vaapi_buffer_free() local
474 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; vaapi_pool_alloc() local
518 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; vaapi_frames_init() local
728 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; vaapi_unmap_frame() local
765 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; vaapi_map_frame() local
1280 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; vaapi_map_to_drm_esh() local
1365 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; vaapi_unmap_to_drm_abh() local
1398 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; vaapi_map_to_drm_abh() local
1561 AVVAAPIDeviceContext *hwctx = ctx->hwctx; vaapi_device_free() local
1597 AVVAAPIDeviceContext *hwctx = ctx->hwctx; vaapi_device_connect() local
[all...]
H A Dhwcontext_qsv.c225 AVQSVDeviceContext *hwctx = ctx->hwctx; in qsv_device_init() local
233 err = MFXQueryIMPL(hwctx->session, &s->impl); in qsv_device_init()
235 err = MFXQueryVersion(hwctx->session, &s->ver); in qsv_device_init()
265 err = MFXVideoCORE_GetHandle(hwctx->session, handle_type, &s->handle); in qsv_device_init()
318 AVQSVFramesContext *hwctx = ctx->hwctx; in qsv_pool_alloc() local
320 if (s->nb_surfaces_used < hwctx->nb_surfaces) { in qsv_pool_alloc()
323 sizeof(*hwctx->surfaces), qsv_pool_release_dummy, NULL, 0); in qsv_pool_alloc()
331 AVQSVFramesContext *hwctx in qsv_init_child_ctx() local
560 AVQSVFramesContext *hwctx = ctx->hwctx; frame_alloc() local
1343 AVQSVFramesContext *hwctx = dst_ctx->hwctx; qsv_map_to() local
1427 AVQSVDeviceContext *hwctx = ctx->hwctx; qsv_device_free() local
1481 AVQSVDeviceContext *hwctx = ctx->hwctx; qsv_device_derive_from_child() local
[all...]
H A Dhwcontext_dxva2.c94 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_frames_uninit()
95 AVDXVA2FramesContext *frames_hwctx = ctx->hwctx; in dxva2_frames_uninit()
132 AVDXVA2FramesContext *hwctx = ctx->hwctx; in dxva2_pool_alloc() local
134 if (s->nb_surfaces_used < hwctx->nb_surfaces) { in dxva2_pool_alloc()
137 sizeof(*hwctx->surfaces), dxva2_pool_release_dummy, 0, 0); in dxva2_pool_alloc()
145 AVDXVA2FramesContext *frames_hwctx = ctx->hwctx; in dxva2_init_pool()
146 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_init_pool()
212 AVDXVA2FramesContext *hwctx = ctx->hwctx; in dxva2_frames_init() local
412 AVDXVA2DeviceContext *hwctx = ctx->hwctx; dxva2_device_free() local
511 AVDXVA2DeviceContext *hwctx = ctx->hwctx; dxva2_device_create() local
[all...]
H A Dvulkan_loader.h85 AVVulkanDeviceContext *hwctx = ctx->hwctx; in ff_vk_load_functions() local
113 fn = vk->GetDeviceProcAddr(hwctx->act_dev, name); in ff_vk_load_functions()
115 fn = hwctx->get_proc_addr(hwctx->inst, name); in ff_vk_load_functions()
117 fn = hwctx->get_proc_addr(NULL, name); in ff_vk_load_functions()
H A Dhwcontext_vdpau.c118 AVVDPAUDeviceContext *hwctx = ctx->hwctx; in vdpau_init_pixmfts() local
134 VdpStatus err = priv->get_transfer_caps(hwctx->device, vdpau_pix_fmts[i].chroma_type, in vdpau_init_pixmfts()
150 err = hwctx->get_proc_address(hwctx->device, id, &tmp); \
160 AVVDPAUDeviceContext *hwctx = ctx->hwctx; in vdpau_device_init() local
232 AVVDPAUDeviceContext *device_hwctx = ctx->device_ctx->hwctx; in vdpau_pool_alloc()
453 AVVDPAUDeviceContext *hwctx = ctx->hwctx; in vdpau_device_free() local
466 AVVDPAUDeviceContext *hwctx = ctx->hwctx; vdpau_device_create() local
[all...]
H A Dhwcontext_drm.c45 AVDRMDeviceContext *hwctx = hwdev->hwctx; in drm_device_free() local
47 close(hwctx->fd); in drm_device_free()
53 AVDRMDeviceContext *hwctx = hwdev->hwctx; in drm_device_create() local
56 hwctx->fd = open(device, O_RDWR); in drm_device_create()
57 if (hwctx->fd < 0) in drm_device_create()
60 version = drmGetVersion(hwctx->fd); in drm_device_create()
64 close(hwctx->fd); in drm_device_create()
H A Dhwcontext_opencl.c163 AVOpenCLDeviceContext *hwctx = hwdev->hwctx; in opencl_device_free() local
166 cle = clReleaseContext(hwctx->context); in opencl_device_free()
279 AVOpenCLDeviceContext *hwctx = hwdev->hwctx; in opencl_check_extension() local
288 if (opencl_check_device_extension(hwctx->device_id, name)) { in opencl_check_extension()
502 AVOpenCLDeviceContext *hwctx = hwdev->hwctx; in opencl_device_create_internal() local
579 hwctx->device_id = devices[d]; in opencl_device_create_internal()
606 hwctx in opencl_device_create_internal()
661 AVOpenCLDeviceContext *hwctx = hwdev->hwctx; opencl_device_init() local
1488 AVOpenCLDeviceContext *hwctx = hwdev->hwctx; opencl_frames_get_constraints() local
1632 AVOpenCLDeviceContext *hwctx = hwfc->device_ctx->hwctx; opencl_pool_alloc() local
1687 AVOpenCLFramesContext *hwctx = hwfc->hwctx; opencl_frames_init_command_queue() local
2082 AVOpenCLDeviceContext *hwctx = dst_fc->device_ctx->hwctx; opencl_map_from_drm_beignet() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dvdpau.c145 VDPAUHWContext *hwctx = avctx->hwaccel_context; in ff_vdpau_common_init() local
167 if (hwctx) { in ff_vdpau_common_init()
168 hwctx->reset = 0; in ff_vdpau_common_init()
170 if (hwctx->context.decoder != VDP_INVALID_HANDLE) { in ff_vdpau_common_init()
171 vdctx->decoder = hwctx->context.decoder; in ff_vdpau_common_init()
172 vdctx->render = hwctx->context.render; in ff_vdpau_common_init()
177 vdctx->device = hwctx->device; in ff_vdpau_common_init()
178 vdctx->get_proc_address = hwctx->get_proc_address; in ff_vdpau_common_init()
180 if (hwctx->flags & AV_HWACCEL_FLAG_IGNORE_LEVEL) in ff_vdpau_common_init()
183 if (!(hwctx in ff_vdpau_common_init()
318 VDPAUHWContext *hwctx = avctx->hwaccel_context; ff_vdpau_common_reinit() local
345 AVVDPAUContext *hwctx = avctx->hwaccel_context; ff_vdpau_common_end_frame() local
413 VDPAUHWContext *hwctx; av_vdpau_bind_context() local
[all...]
H A Dvaapi_decode.c44 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_make_param_buffer()
90 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_make_slice_buffer()
104 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_make_slice_buffer()
112 vaDestroyBuffer(ctx->hwctx->display, in ff_vaapi_decode_make_slice_buffer()
133 vas = vaDestroyBuffer(ctx->hwctx->display, in ff_vaapi_decode_destroy_buffers()
143 vas = vaDestroyBuffer(ctx->hwctx->display, in ff_vaapi_decode_destroy_buffers()
163 vas = vaBeginPicture(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_issue()
172 vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_issue()
181 vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_issue()
190 vas = vaEndPicture(ctx->hwctx in ff_vaapi_decode_issue()
285 AVVAAPIDeviceContext *hwctx = device->hwctx; vaapi_decode_find_best_format() local
441 AVVAAPIDeviceContext *hwctx = device->hwctx; vaapi_decode_make_config() local
617 AVVAAPIDeviceContext *hwctx; ff_vaapi_common_frame_params() local
[all...]
H A Dvaapi_encode.c60 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in vaapi_encode_make_packed_header()
71 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in vaapi_encode_make_packed_header()
101 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in vaapi_encode_make_param_buffer()
157 vas = vaSyncBuffer(ctx->hwctx->display, in vaapi_encode_wait()
168 vas = vaSyncSurface(ctx->hwctx->display, pic->input_surface); in vaapi_encode_wait()
583 vas = vaBeginPicture(ctx->hwctx->display, ctx->va_context, in vaapi_encode_issue()
592 vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context, in vaapi_encode_issue()
601 vas = vaEndPicture(ctx->hwctx->display, ctx->va_context); in vaapi_encode_issue()
608 if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks & in vaapi_encode_issue()
615 if (CONFIG_VAAPI_1 || ctx->hwctx in vaapi_encode_issue()
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_chromakey_cuda.c49 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x)
54 AVCUDADeviceContext *hwctx; member
98 if (s->hwctx && s->cu_module) in cudachromakey_uninit()
100 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in cudachromakey_uninit()
103 CHECK_CU(cu->cuCtxPushCurrent(s->hwctx->cuda_ctx)); in cudachromakey_uninit()
221 CUcontext context, cuda_ctx = s->hwctx->cuda_ctx; in cudachromakey_load_functions()
222 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in cudachromakey_load_functions()
232 ret = ff_cuda_load_module(ctx, s->hwctx, &s->cu_module, in cudachromakey_load_functions()
267 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in cudachromakey_config_props()
270 s->hwctx in cudachromakey_config_props()
[all...]
H A Dvaapi_vpp.c50 vaDestroyBuffer(ctx->hwctx->display, ctx->filter_buffers[i]); in ff_vaapi_vpp_pipeline_uninit()
57 vaDestroyContext(ctx->hwctx->display, ctx->va_context); in ff_vaapi_vpp_pipeline_uninit()
62 vaDestroyConfig(ctx->hwctx->display, ctx->va_config); in ff_vaapi_vpp_pipeline_uninit()
67 ctx->hwctx = NULL; in ff_vaapi_vpp_pipeline_uninit()
121 ctx->hwctx = ((AVHWDeviceContext*)ctx->device_ref->data)->hwctx; in ff_vaapi_vpp_config_output()
124 vas = vaCreateConfig(ctx->hwctx->display, VAProfileNone, in ff_vaapi_vpp_config_output()
203 va_frames = output_frames->hwctx; in ff_vaapi_vpp_config_output()
206 vas = vaCreateContext(ctx->hwctx->display, ctx->va_config, in ff_vaapi_vpp_config_output()
430 vas = vaQueryVideoProcPipelineCaps(ctx->hwctx in vaapi_vpp_colour_properties()
[all...]
H A Dvf_yadif_cuda.c36 AVCUDADeviceContext *hwctx; member
55 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x)
70 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in call_kernel()
130 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in filter()
198 if (s->hwctx && s->cu_module) { in deint_cuda_uninit()
199 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in deint_cuda_uninit()
210 s->hwctx = NULL; in deint_cuda_uninit()
254 s->hwctx = ((AVHWDeviceContext*)s->device_ref->data)->hwctx; in config_output()
255 s->cu_ctx = s->hwctx in config_output()
[all...]
H A Dvf_scale_cuda.c60 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x)
76 AVCUDADeviceContext *hwctx; member
133 if (s->hwctx && s->cu_module) { in cudascale_uninit()
134 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in cudascale_uninit()
137 CHECK_CU(cu->cuCtxPushCurrent(s->hwctx->cuda_ctx)); in cudascale_uninit()
280 CUcontext dummy, cuda_ctx = s->hwctx->cuda_ctx; in cudascale_load_functions()
281 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in cudascale_load_functions()
324 ret = ff_cuda_load_module(ctx, s->hwctx, &s->cu_module, in cudascale_load_functions()
354 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in cudascale_config_props()
358 s->hwctx in cudascale_config_props()
[all...]
H A Dvulkan_filter.c33 s->hwctx = s->device->hwctx; in vulkan_filter_set_device()
81 s->extensions = ff_vk_extensions_to_mask(s->hwctx->enabled_dev_extensions, in ff_vk_filter_config_input()
82 s->hwctx->nb_enabled_dev_extensions); in ff_vk_filter_config_input()
88 vk->GetPhysicalDeviceProperties(s->hwctx->phys_dev, &s->props); in ff_vk_filter_config_input()
89 vk->GetPhysicalDeviceMemoryProperties(s->hwctx->phys_dev, &s->mprops); in ff_vk_filter_config_input()
H A Dvf_overlay_cuda.c40 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, ctx->hwctx->internal->cuda_dl, x)
104 AVCUDADeviceContext *hwctx; member
205 CudaFunctions *cu = ctx->hwctx->internal->cuda_dl; in overlay_cuda_call_kernel()
235 CudaFunctions *cu = ctx->hwctx->internal->cuda_dl; in overlay_cuda_blend()
236 CUcontext dummy, cuda_ctx = ctx->hwctx->cuda_ctx; in overlay_cuda_blend()
393 if (ctx->hwctx && ctx->cu_module) { in overlay_cuda_uninit()
395 CudaFunctions *cu = ctx->hwctx->internal->cuda_dl; in overlay_cuda_uninit()
404 ctx->hwctx = NULL; in overlay_cuda_uninit()
479 ctx->hwctx = ((AVHWDeviceContext*)ctx->hw_device_ctx->data)->hwctx; in overlay_cuda_config_output()
[all...]
H A Dvf_overlay_vaapi.c77 vas = vaQueryVideoProcPipelineCaps(vpp_ctx->hwctx->display, in overlay_vaapi_build_filter_params()
115 vas = vaBeginPicture(ctx->hwctx->display, in overlay_vaapi_render_picture()
124 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in overlay_vaapi_render_picture()
137 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in overlay_vaapi_render_picture()
149 vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context, in overlay_vaapi_render_picture()
158 vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context, in overlay_vaapi_render_picture()
167 vas = vaEndPicture(ctx->hwctx->display, ctx->va_context); in overlay_vaapi_render_picture()
175 if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks & in overlay_vaapi_render_picture()
177 vas = vaDestroyBuffer(ctx->hwctx->display, params_id); in overlay_vaapi_render_picture()
192 vaRenderPicture(ctx->hwctx in overlay_vaapi_render_picture()
[all...]
H A Dvf_libplacebo.c232 /* Note: s->vulkan etc. are initialized later, when hwctx is available */ in libplacebo_init()
240 const AVVulkanDeviceContext *hwctx = s->vkctx.hwctx; in init_vulkan() local
246 .instance = hwctx->inst, in init_vulkan()
247 .get_proc_addr = hwctx->get_proc_addr, in init_vulkan()
248 .phys_device = hwctx->phys_dev, in init_vulkan()
249 .device = hwctx->act_dev, in init_vulkan()
250 .extensions = hwctx->enabled_dev_extensions, in init_vulkan()
251 .num_extensions = hwctx->nb_enabled_dev_extensions, in init_vulkan()
252 .features = &hwctx in init_vulkan()
[all...]
H A Dvf_thumbnail_cuda.c34 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x)
63 AVCUDADeviceContext *hwctx; member
164 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in thumbnail_kernel()
253 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in filter_frame()
264 ret = CHECK_CU(cu->cuCtxPushCurrent(s->hwctx->cuda_ctx)); in filter_frame()
309 if (s->hwctx) { in uninit()
310 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in uninit()
362 AVCUDADeviceContext *device_hwctx = hw_frames_ctx->device_ctx->hwctx; in config_props()
370 s->hwctx = device_hwctx; in config_props()
371 s->cu_stream = s->hwctx in config_props()
[all...]
H A Dopencl.c40 ctx->hwctx = ctx->device->hwctx; in opencl_filter_set_device()
163 ctx->program = clCreateProgramWithSource(ctx->hwctx->context, nb_strings, in ff_opencl_filter_load_program()
171 cle = clBuildProgram(ctx->program, 1, &ctx->hwctx->device_id, in ff_opencl_filter_load_program()
180 clGetProgramBuildInfo(ctx->program, ctx->hwctx->device_id, in ff_opencl_filter_load_program()
186 ctx->hwctx->device_id, in ff_opencl_filter_load_program()
/third_party/ffmpeg/libavdevice/
H A Dkmsgrab.c52 AVDRMDeviceContext *hwctx; member
100 fb = drmModeGetFB(ctx->hwctx->fd, plane->fb_id); in kmsgrab_get_fb()
121 err = drmPrimeHandleToFD(ctx->hwctx->fd, fb->handle, O_RDONLY, &fd); in kmsgrab_get_fb()
165 fb = drmModeGetFB2(ctx->hwctx->fd, plane->fb_id); in kmsgrab_get_fb2()
229 err = drmPrimeHandleToFD(ctx->hwctx->fd, fb->handles[i], in kmsgrab_get_fb2()
285 plane = drmModeGetPlane(ctx->hwctx->fd, ctx->plane_id); in kmsgrab_read_packet()
427 ctx->hwctx = (AVDRMDeviceContext*)ctx->device->hwctx; in kmsgrab_read_header()
429 err = drmSetClientCap(ctx->hwctx->fd, in kmsgrab_read_header()
437 plane = drmModeGetPlane(ctx->hwctx in kmsgrab_read_header()
[all...]

Completed in 23 milliseconds

123