/third_party/ffmpeg/libavutil/ |
D | hwcontext_cuda.c | 84 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 132 CudaFunctions *cu = hwctx->internal->cuda_dl; in cuda_frames_init() 147 hwctx->internal->cuda_device)); in cuda_frames_init() 226 AVCUDADeviceContext *hwctx = device_ctx->hwctx; in cuda_transfer_data() local [all …]
|
D | hwcontext_vulkan.c | 107 #define GET_QUEUE_COUNT(hwctx, graph, comp, tx) ( \ argument 108 graph ? hwctx->nb_graphics_queues : \ 109 comp ? (hwctx->nb_comp_queues ? \ 110 hwctx->nb_comp_queues : hwctx->nb_graphics_queues) : \ 111 tx ? (hwctx->nb_tx_queues ? hwctx->nb_tx_queues : \ 112 (hwctx->nb_comp_queues ? \ 113 hwctx->nb_comp_queues : hwctx->nb_graphics_queues)) : \ 220 static int pixfmt_is_supported(AVVulkanDeviceContext *hwctx, enum AVPixelFormat p, in pixfmt_is_supported() argument 234 vkGetPhysicalDeviceFormatProperties2(hwctx->phys_dev, fmt[i], &prop); in pixfmt_is_supported() 345 AVVulkanDeviceContext *hwctx = ctx->hwctx; in check_extensions() local [all …]
|
D | hwcontext_qsv.c | 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() [all …]
|
D | hwcontext_d3d11va.c | 105 AVD3D11VAFramesContext *frames_hwctx = ctx->hwctx; in d3d11va_frames_uninit() 121 AVD3D11VADeviceContext *device_hwctx = ctx->hwctx; in d3d11va_frames_get_constraints() 180 AVD3D11VAFramesContext *hwctx = ctx->hwctx; in d3d11va_alloc_single() local 181 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_alloc_single() 192 .BindFlags = hwctx->BindFlags, in d3d11va_alloc_single() 193 .MiscFlags = hwctx->MiscFlags, in d3d11va_alloc_single() 209 AVD3D11VAFramesContext *hwctx = ctx->hwctx; in d3d11va_pool_alloc() local 212 if (!hwctx->texture) in d3d11va_pool_alloc() 215 ID3D11Texture2D_GetDesc(hwctx->texture, &texDesc); in d3d11va_pool_alloc() 222 ID3D11Texture2D_AddRef(hwctx->texture); in d3d11va_pool_alloc() [all …]
|
D | hwcontext_vaapi.c | 196 AVVAAPIDeviceContext *hwctx = hwdev->hwctx; in vaapi_frames_get_constraints() local 206 !(hwctx->driver_quirks & AV_VAAPI_DRIVER_QUIRK_SURFACE_ATTRIBUTES)) { in vaapi_frames_get_constraints() 208 vas = vaQuerySurfaceAttributes(hwctx->display, config->config_id, in vaapi_frames_get_constraints() 223 vas = vaQuerySurfaceAttributes(hwctx->display, config->config_id, in vaapi_frames_get_constraints() 357 AVVAAPIDeviceContext *hwctx = hwdev->hwctx; in vaapi_device_init() local 365 image_count = vaMaxNumImageFormats(hwctx->display); in vaapi_device_init() 375 vas = vaQueryImageFormats(hwctx->display, image_list, &image_count); in vaapi_device_init() 402 vendor_string = vaQueryVendorString(hwctx->display); in vaapi_device_init() 406 if (hwctx->driver_quirks & AV_VAAPI_DRIVER_QUIRK_USER_SET) { in vaapi_device_init() 408 hwctx->driver_quirks); in vaapi_device_init() [all …]
|
D | hwcontext_dxva2.c | 93 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_frames_uninit() 94 AVDXVA2FramesContext *frames_hwctx = ctx->hwctx; in dxva2_frames_uninit() 131 AVDXVA2FramesContext *hwctx = ctx->hwctx; in dxva2_pool_alloc() local 133 if (s->nb_surfaces_used < hwctx->nb_surfaces) { in dxva2_pool_alloc() 136 sizeof(*hwctx->surfaces), dxva2_pool_release_dummy, 0, 0); in dxva2_pool_alloc() 144 AVDXVA2FramesContext *frames_hwctx = ctx->hwctx; in dxva2_init_pool() 145 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_init_pool() 211 AVDXVA2FramesContext *hwctx = ctx->hwctx; in dxva2_frames_init() local 215 if (hwctx->surface_type != DXVA2_VideoDecoderRenderTarget && in dxva2_frames_init() 216 hwctx->surface_type != DXVA2_VideoProcessorRenderTarget) { in dxva2_frames_init() [all …]
|
D | hwcontext_vdpau.c | 118 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 457 priv->device_destroy(hwctx->device); in vdpau_device_free() 466 AVVDPAUDeviceContext *hwctx = ctx->hwctx; in vdpau_device_create() local 489 &hwctx->device, &hwctx->get_proc_address); in vdpau_device_create()
|
D | hwcontext_drm.c | 45 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()
|
D | hwcontext_opencl.c | 157 AVOpenCLDeviceContext *hwctx = hwdev->hwctx; in opencl_device_free() local 160 cle = clReleaseContext(hwctx->context); in opencl_device_free() 273 AVOpenCLDeviceContext *hwctx = hwdev->hwctx; in opencl_check_extension() local 282 if (opencl_check_device_extension(hwctx->device_id, name)) { in opencl_check_extension() 496 AVOpenCLDeviceContext *hwctx = hwdev->hwctx; in opencl_device_create_internal() local 573 hwctx->device_id = devices[d]; in opencl_device_create_internal() 600 hwctx->context = clCreateContext(props, 1, &hwctx->device_id, in opencl_device_create_internal() 602 if (!hwctx->context) { in opencl_device_create_internal() 655 AVOpenCLDeviceContext *hwctx = hwdev->hwctx; in opencl_device_init() local 659 if (hwctx->command_queue) { in opencl_device_init() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | vdpau.c | 140 VDPAUHWContext *hwctx = avctx->hwaccel_context; in ff_vdpau_common_init() local 162 if (hwctx) { in ff_vdpau_common_init() 163 hwctx->reset = 0; in ff_vdpau_common_init() 165 if (hwctx->context.decoder != VDP_INVALID_HANDLE) { in ff_vdpau_common_init() 166 vdctx->decoder = hwctx->context.decoder; in ff_vdpau_common_init() 167 vdctx->render = hwctx->context.render; in ff_vdpau_common_init() 172 vdctx->device = hwctx->device; in ff_vdpau_common_init() 173 vdctx->get_proc_address = hwctx->get_proc_address; in ff_vdpau_common_init() 175 if (hwctx->flags & AV_HWACCEL_FLAG_IGNORE_LEVEL) in ff_vdpau_common_init() 178 if (!(hwctx->flags & AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH) && in ff_vdpau_common_init() [all …]
|
D | vaapi_decode.c | 42 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_make_param_buffer() 88 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_make_slice_buffer() 102 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_make_slice_buffer() 110 vaDestroyBuffer(ctx->hwctx->display, in ff_vaapi_decode_make_slice_buffer() 131 vas = vaDestroyBuffer(ctx->hwctx->display, in ff_vaapi_decode_destroy_buffers() 141 vas = vaDestroyBuffer(ctx->hwctx->display, in ff_vaapi_decode_destroy_buffers() 161 vas = vaBeginPicture(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_issue() 170 vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_issue() 179 vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context, in ff_vaapi_decode_issue() 188 vas = vaEndPicture(ctx->hwctx->display, ctx->va_context); in ff_vaapi_decode_issue() [all …]
|
D | dxva2.c | 356 AVDXVA2FramesContext *frames_hwctx = frames_ctx->hwctx; in dxva2_create_decoder() 357 AVDXVA2DeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in dxva2_create_decoder() 474 AVD3D11VADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in d3d11va_create_decoder() 475 AVD3D11VAFramesContext *frames_hwctx = frames_ctx->hwctx; in d3d11va_create_decoder() 569 AVD3D11VADeviceContext *hwctx = sctx->device_ctx->hwctx; in ff_dxva2_lock() local 570 hwctx->lock(hwctx->lock_ctx); in ff_dxva2_lock() 585 AVD3D11VADeviceContext *hwctx = sctx->device_ctx->hwctx; in ff_dxva2_unlock() local 586 hwctx->unlock(hwctx->lock_ctx); in ff_dxva2_unlock() 638 AVDXVA2FramesContext *frames_hwctx = frames_ctx->hwctx; in ff_dxva2_common_frame_params() 646 AVD3D11VAFramesContext *frames_hwctx = frames_ctx->hwctx; in ff_dxva2_common_frame_params() [all …]
|
D | qsv.c | 357 AVVAAPIDeviceContext *hwctx; in ff_qsv_set_display_handle() local 370 hwctx = qs->va_device_ctx->hwctx; in ff_qsv_set_display_handle() 373 (mfxHandleType)MFX_HANDLE_VA_DISPLAY, (mfxHDL)hwctx->display); in ff_qsv_set_display_handle() 448 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in qsv_create_mids() 486 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in qsv_setup_mids() 534 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in qsv_frame_alloc() 567 frames_hwctx = frames_ctx->hwctx; in qsv_frame_alloc() 619 AVQSVFramesContext *hw_frames_hwctx = hw_frames_ctx->hwctx; in qsv_frame_lock() 699 AVQSVDeviceContext *device_hwctx = device_ctx->hwctx; in ff_qsv_init_session_device() 780 AVQSVFramesContext *frames_hwctx = frames_ctx->hwctx; in ff_qsv_init_session_frames()
|
D | vaapi_encode.c | 58 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in vaapi_encode_make_packed_header() 69 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in vaapi_encode_make_packed_header() 99 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in vaapi_encode_make_param_buffer() 153 vas = vaSyncSurface(ctx->hwctx->display, pic->input_surface); in vaapi_encode_wait() 556 vas = vaBeginPicture(ctx->hwctx->display, ctx->va_context, in vaapi_encode_issue() 565 vas = vaRenderPicture(ctx->hwctx->display, ctx->va_context, in vaapi_encode_issue() 574 vas = vaEndPicture(ctx->hwctx->display, ctx->va_context); in vaapi_encode_issue() 581 if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks & in vaapi_encode_issue() 588 if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks & in vaapi_encode_issue() 591 vas = vaDestroyBuffer(ctx->hwctx->display, in vaapi_encode_issue() [all …]
|
D | amfenc.c | 150 static int amf_init_from_d3d11_device(AVCodecContext *avctx, AVD3D11VADeviceContext *hwctx) in amf_init_from_d3d11_device() argument 155 res = ctx->context->pVtbl->InitDX11(ctx->context, hwctx->device, AMF_DX11_1); in amf_init_from_d3d11_device() 169 static int amf_init_from_dxva2_device(AVCodecContext *avctx, AVDXVA2DeviceContext *hwctx) in amf_init_from_dxva2_device() argument 178 hr = IDirect3DDeviceManager9_OpenDeviceHandle(hwctx->devmgr, &device_handle); in amf_init_from_dxva2_device() 184 hr = IDirect3DDeviceManager9_LockDevice(hwctx->devmgr, device_handle, &device, FALSE); in amf_init_from_dxva2_device() 186 IDirect3DDeviceManager9_UnlockDevice(hwctx->devmgr, device_handle, FALSE); in amf_init_from_dxva2_device() 193 IDirect3DDeviceManager9_CloseDeviceHandle(hwctx->devmgr, device_handle); in amf_init_from_dxva2_device() 254 ret = amf_init_from_d3d11_device(avctx, frames_ctx->device_ctx->hwctx); in amf_init_context() 261 ret = amf_init_from_dxva2_device(avctx, frames_ctx->device_ctx->hwctx); in amf_init_context() 285 ret = amf_init_from_d3d11_device(avctx, device_ctx->hwctx); in amf_init_context() [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | vulkan.c | 104 vkGetPhysicalDeviceProperties(s->hwctx->phys_dev, &props); in vk_alloc_mem() 105 vkGetPhysicalDeviceMemoryProperties(s->hwctx->phys_dev, &mprops); in vk_alloc_mem() 137 ret = vkAllocateMemory(s->hwctx->act_dev, &alloc_info, in vk_alloc_mem() 138 s->hwctx->alloc, mem); in vk_alloc_mem() 182 ret = vkCreateBuffer(s->hwctx->act_dev, &buf_spawn, NULL, &buf->buf); in ff_vk_create_buf() 191 vkGetBufferMemoryRequirements2(s->hwctx->act_dev, &req_desc, &req); in ff_vk_create_buf() 205 ret = vkBindBufferMemory(s->hwctx->act_dev, buf->buf, buf->mem, 0); in ff_vk_create_buf() 224 ret = vkMapMemory(s->hwctx->act_dev, buf[i].mem, 0, in ff_vk_map_buffers() 252 ret = vkInvalidateMappedMemoryRanges(s->hwctx->act_dev, inval_count, in ff_vk_map_buffers() 291 ret = vkFlushMappedMemoryRanges(s->hwctx->act_dev, flush_count, in ff_vk_unmap_buffers() [all …]
|
D | vulkan.h | 53 #define GET_QUEUE_COUNT(hwctx, graph, comp, tx) ( \ argument 54 graph ? hwctx->nb_graphics_queues : \ 55 comp ? (hwctx->nb_comp_queues ? \ 56 hwctx->nb_comp_queues : hwctx->nb_graphics_queues) : \ 57 tx ? (hwctx->nb_tx_queues ? hwctx->nb_tx_queues : \ 58 (hwctx->nb_comp_queues ? \ 59 hwctx->nb_comp_queues : hwctx->nb_graphics_queues)) : \ 165 AVVulkanDeviceContext *hwctx; member
|
D | vf_overlay_cuda.c | 38 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, ctx->hwctx->internal->cuda_dl, x) 67 AVCUDADeviceContext *hwctx; member 120 CudaFunctions *cu = ctx->hwctx->internal->cuda_dl; in overlay_cuda_call_kernel() 149 CudaFunctions *cu = ctx->hwctx->internal->cuda_dl; in overlay_cuda_blend() 150 CUcontext dummy, cuda_ctx = ctx->hwctx->cuda_ctx; in overlay_cuda_blend() 253 if (ctx->hwctx && ctx->cu_module) { in overlay_cuda_uninit() 255 CudaFunctions *cu = ctx->hwctx->internal->cuda_dl; in overlay_cuda_uninit() 262 ctx->hwctx = NULL; in overlay_cuda_uninit() 351 ctx->hwctx = ((AVHWDeviceContext*)ctx->hw_device_ctx->data)->hwctx; in overlay_cuda_config_output() 353 cuda_ctx = ctx->hwctx->cuda_ctx; in overlay_cuda_config_output() [all …]
|
D | vaapi_vpp.c | 50 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->display, ctx->va_context, in vaapi_vpp_colour_properties() 575 vas = vaCreateBuffer(ctx->hwctx->display, ctx->va_context, in ff_vaapi_vpp_make_param_buffers() [all …]
|
D | vf_yadif_cuda.c | 32 AVCUDADeviceContext *hwctx; member 51 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x) 66 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in call_kernel() 126 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in filter() 194 if (s->hwctx && s->cu_module) { in deint_cuda_uninit() 195 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in deint_cuda_uninit() 206 s->hwctx = NULL; in deint_cuda_uninit() 267 s->hwctx = ((AVHWDeviceContext*)s->device_ref->data)->hwctx; in config_output() 268 s->cu_ctx = s->hwctx->cuda_ctx; in config_output() 269 s->stream = s->hwctx->stream; in config_output() [all …]
|
D | vf_thumbnail_cuda.c | 32 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x) 61 AVCUDADeviceContext *hwctx; member 162 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in thumbnail_kernel() 251 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in filter_frame() 262 ret = CHECK_CU(cu->cuCtxPushCurrent(s->hwctx->cuda_ctx)); in filter_frame() 307 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in uninit() 356 AVCUDADeviceContext *device_hwctx = hw_frames_ctx->device_ctx->hwctx; in config_props() 363 s->hwctx = device_hwctx; in config_props() 364 s->cu_stream = s->hwctx->stream; in config_props()
|
D | opencl.c | 55 ctx->hwctx = ctx->device->hwctx; in opencl_filter_set_device() 178 ctx->program = clCreateProgramWithSource(ctx->hwctx->context, nb_strings, in ff_opencl_filter_load_program() 186 cle = clBuildProgram(ctx->program, 1, &ctx->hwctx->device_id, in ff_opencl_filter_load_program() 195 clGetProgramBuildInfo(ctx->program, ctx->hwctx->device_id, in ff_opencl_filter_load_program() 201 ctx->hwctx->device_id, in ff_opencl_filter_load_program()
|
D | vf_scale_cuda.c | 59 #define CHECK_CU(x) FF_CUDA_CHECK_DL(ctx, s->hwctx->internal->cuda_dl, x) 75 AVCUDADeviceContext *hwctx; member 138 if (s->hwctx && s->cu_module) { in cudascale_uninit() 139 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in cudascale_uninit() 142 CHECK_CU(cu->cuCtxPushCurrent(s->hwctx->cuda_ctx)); in cudascale_uninit() 271 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in cudascale_config_props() 315 s->hwctx = device_hwctx; in cudascale_config_props() 316 s->cu_stream = s->hwctx->stream; in cudascale_config_props() 402 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in call_resize_kernel() 574 CudaFunctions *cu = s->hwctx->internal->cuda_dl; in cudascale_filter_frame() [all …]
|
D | vf_deinterlace_vaapi.c | 88 vas = vaQueryVideoProcFilterCaps(vpp_ctx->hwctx->display, in deint_vaapi_build_filter_params() 132 vas = vaQueryVideoProcPipelineCaps(vpp_ctx->hwctx->display, in deint_vaapi_build_filter_params() 250 vas = vaMapBuffer(vpp_ctx->hwctx->display, vpp_ctx->filter_buffers[0], in deint_vaapi_filter_frame() 267 vas = vaUnmapBuffer(vpp_ctx->hwctx->display, vpp_ctx->filter_buffers[0]); in deint_vaapi_filter_frame() 313 vaUnmapBuffer(vpp_ctx->hwctx->display, vpp_ctx->filter_buffers[0]); in deint_vaapi_filter_frame()
|
/third_party/ffmpeg/libavdevice/ |
D | kmsgrab.c | 52 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->fd, ctx->source_plane); in kmsgrab_read_header() 453 plane_res = drmModeGetPlaneResources(ctx->hwctx->fd); in kmsgrab_read_header() [all …]
|