Home
last modified time | relevance | path

Searched refs:hwfc (Results 1 – 9 of 9) sorted by relevance

/third_party/ffmpeg/libavutil/
Dhwcontext_vaapi.c453 AVHWFramesContext *hwfc = opaque; in vaapi_buffer_free() local
454 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_buffer_free()
462 av_log(hwfc, AV_LOG_ERROR, "Failed to destroy surface %#x: " in vaapi_buffer_free()
469 AVHWFramesContext *hwfc = opaque; in vaapi_pool_alloc() local
470 VAAPIFramesContext *ctx = hwfc->internal->priv; in vaapi_pool_alloc()
471 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_pool_alloc()
472 AVVAAPIFramesContext *avfc = hwfc->hwctx; in vaapi_pool_alloc()
477 if (hwfc->initial_pool_size > 0 && in vaapi_pool_alloc()
478 avfc->nb_surfaces >= hwfc->initial_pool_size) in vaapi_pool_alloc()
482 hwfc->width, hwfc->height, in vaapi_pool_alloc()
[all …]
Dhwcontext_vulkan.c777 static int create_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd, in create_exec_ctx() argument
781 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in create_exec_ctx()
800 av_log(hwfc, AV_LOG_ERROR, "Command pool creation failure: %s\n", in create_exec_ctx()
814 av_log(hwfc, AV_LOG_ERROR, "Command buffer alloc failure: %s\n", in create_exec_ctx()
833 static void free_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) in free_exec_ctx() argument
835 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in free_exec_ctx()
868 static VkCommandBuffer get_buf_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) in get_buf_exec_ctx() argument
873 static void unref_exec_ctx_deps(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) in unref_exec_ctx_deps() argument
882 static int wait_start_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) in wait_start_exec_ctx() argument
885 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in wait_start_exec_ctx()
[all …]
Dhwcontext_drm.c80 static int drm_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame) in drm_get_buffer() argument
82 frame->buf[0] = av_buffer_pool_get(hwfc->pool); in drm_get_buffer()
89 frame->width = hwfc->width; in drm_get_buffer()
90 frame->height = hwfc->height; in drm_get_buffer()
104 static void drm_unmap_frame(AVHWFramesContext *hwfc, in drm_unmap_frame() argument
120 static int drm_map_frame(AVHWFramesContext *hwfc, in drm_map_frame() argument
156 av_log(hwfc, AV_LOG_ERROR, "Failed to map DRM object %d to " in drm_map_frame()
222 static int drm_transfer_data_from(AVHWFramesContext *hwfc, in drm_transfer_data_from() argument
228 if (dst->width > hwfc->width || dst->height > hwfc->height) in drm_transfer_data_from()
236 err = drm_map_frame(hwfc, map, src, AV_HWFRAME_MAP_READ); in drm_transfer_data_from()
[all …]
Dhwcontext_opencl.c1604 AVHWFramesContext *hwfc = opaque; in opencl_pool_free() local
1612 av_log(hwfc, AV_LOG_ERROR, "Failed to release plane %d: " in opencl_pool_free()
1622 AVHWFramesContext *hwfc = opaque; in opencl_pool_alloc() local
1623 AVOpenCLDeviceContext *hwctx = hwfc->device_ctx->hwctx; in opencl_pool_alloc()
1637 err = opencl_get_plane_format(hwfc->sw_format, p, in opencl_pool_alloc()
1638 hwfc->width, hwfc->height, in opencl_pool_alloc()
1652 av_log(hwfc, AV_LOG_ERROR, "Failed to create image for " in opencl_pool_alloc()
1663 &opencl_pool_free, hwfc, 0); in opencl_pool_alloc()
1676 static int opencl_frames_init_command_queue(AVHWFramesContext *hwfc) in opencl_frames_init_command_queue() argument
1678 AVOpenCLFramesContext *hwctx = hwfc->hwctx; in opencl_frames_init_command_queue()
[all …]
Dhwcontext_videotoolbox.c170 static int vt_transfer_data_from(AVHWFramesContext *hwfc, in vt_transfer_data_from() argument
176 if (dst->width > hwfc->width || dst->height > hwfc->height) in vt_transfer_data_from()
184 err = vt_map_frame(hwfc, map, src, AV_HWFRAME_MAP_READ); in vt_transfer_data_from()
201 static int vt_transfer_data_to(AVHWFramesContext *hwfc, in vt_transfer_data_to() argument
207 if (src->width > hwfc->width || src->height > hwfc->height) in vt_transfer_data_to()
215 err = vt_map_frame(hwfc, map, dst, AV_HWFRAME_MAP_WRITE | AV_HWFRAME_MAP_OVERWRITE); in vt_transfer_data_to()
/third_party/ffmpeg/libavfilter/
Dvf_hwmap.c58 AVHWFramesContext *hwfc; in hwmap_config_output() local
73 hwfc = (AVHWFramesContext*)inlink->hw_frames_ctx->data; in hwmap_config_output()
86 hwfc->device_ref, 0); in hwmap_config_output()
101 if (inlink->format == hwfc->format && in hwmap_config_output()
125 } else if (inlink->format == hwfc->format && in hwmap_config_output()
143 frames->sw_format = hwfc->sw_format; in hwmap_config_output()
144 frames->width = hwfc->width; in hwmap_config_output()
145 frames->height = hwfc->height; in hwmap_config_output()
159 hwfc->device_ref, in hwmap_config_output()
177 } else if ((outlink->format == hwfc->format && in hwmap_config_output()
[all …]
Dvaapi_vpp.c410 const AVHWFramesContext *hwfc; in vaapi_vpp_frame_is_rgb() local
414 hwfc = (const AVHWFramesContext*)frame->hw_frames_ctx->data; in vaapi_vpp_frame_is_rgb()
415 desc = av_pix_fmt_desc_get(hwfc->sw_format); in vaapi_vpp_frame_is_rgb()
/third_party/ffmpeg/libavcodec/
Dvaapi_decode.h71 AVVAAPIFramesContext *hwfc; member
Dvaapi_decode.c688 ctx->hwfc = ctx->frames->hwctx; in ff_vaapi_decode_init()
700 ctx->hwfc->surface_ids, in ff_vaapi_decode_init()
701 ctx->hwfc->nb_surfaces, in ff_vaapi_decode_init()