/third_party/ffmpeg/libavutil/ |
H A D | hwcontext_vaapi.c | 456 AVHWFramesContext *hwfc = opaque; in vaapi_buffer_free() local 457 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_buffer_free() 465 av_log(hwfc, AV_LOG_ERROR, "Failed to destroy surface %#x: " in vaapi_buffer_free() 472 AVHWFramesContext *hwfc = opaque; in vaapi_pool_alloc() local 473 VAAPIFramesContext *ctx = hwfc->internal->priv; in vaapi_pool_alloc() 474 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_pool_alloc() 475 AVVAAPIFramesContext *avfc = hwfc->hwctx; in vaapi_pool_alloc() 480 if (hwfc->initial_pool_size > 0 && in vaapi_pool_alloc() 481 avfc->nb_surfaces >= hwfc->initial_pool_size) in vaapi_pool_alloc() 485 hwfc in vaapi_pool_alloc() 514 vaapi_frames_init(AVHWFramesContext *hwfc) vaapi_frames_init() argument 666 vaapi_frames_uninit(AVHWFramesContext *hwfc) vaapi_frames_uninit() argument 675 vaapi_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame) vaapi_get_buffer() argument 689 vaapi_transfer_get_formats(AVHWFramesContext *hwfc, enum AVHWFrameTransferDirection dir, enum AVPixelFormat **formats) vaapi_transfer_get_formats() argument 725 vaapi_unmap_frame(AVHWFramesContext *hwfc, HWMapDescriptor *hwmap) vaapi_unmap_frame() argument 762 vaapi_map_frame(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vaapi_map_frame() argument 897 vaapi_transfer_data_from(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) vaapi_transfer_data_from() argument 928 vaapi_transfer_data_to(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) vaapi_transfer_data_to() argument 959 vaapi_map_to_memory(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vaapi_map_to_memory() argument 1265 vaapi_unmap_to_drm_esh(AVHWFramesContext *hwfc, HWMapDescriptor *hwmap) vaapi_unmap_to_drm_esh() argument 1277 vaapi_map_to_drm_esh(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vaapi_map_to_drm_esh() argument 1362 vaapi_unmap_to_drm_abh(AVHWFramesContext *hwfc, HWMapDescriptor *hwmap) vaapi_unmap_to_drm_abh() argument 1395 vaapi_map_to_drm_abh(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vaapi_map_to_drm_abh() argument 1516 vaapi_map_to_drm(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vaapi_map_to_drm() argument 1533 vaapi_map_to(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vaapi_map_to() argument 1546 vaapi_map_from(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vaapi_map_from() argument [all...] |
H A D | hwcontext_vulkan.c | 1056 static int create_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd, in create_exec_ctx() argument 1060 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in create_exec_ctx() 1061 VulkanDevicePriv *p = hwfc->device_ctx->internal->priv; in create_exec_ctx() 1081 av_log(hwfc, AV_LOG_ERROR, "Command pool creation failure: %s\n", in create_exec_ctx() 1095 av_log(hwfc, AV_LOG_ERROR, "Command buffer alloc failure: %s\n", in create_exec_ctx() 1114 static void free_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) in free_exec_ctx() argument 1116 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in free_exec_ctx() 1117 VulkanDevicePriv *p = hwfc->device_ctx->internal->priv; in free_exec_ctx() 1151 static VkCommandBuffer get_buf_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) in get_buf_exec_ctx() argument 1156 static void unref_exec_ctx_deps(AVHWFramesContext *hwfc, VulkanExecCt argument 1165 wait_start_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) wait_start_exec_ctx() argument 1208 add_buf_dep_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd, AVBufferRef * const *deps, int nb_deps) add_buf_dep_exec_ctx() argument 1238 submit_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd, VkSubmitInfo *s_info, AVVkFrame *f, int synchronous) submit_exec_ctx() argument 1758 AVHWFramesContext *hwfc = opaque; vulkan_frame_free() local 1779 alloc_bind_mem(AVHWFramesContext *hwfc, AVVkFrame *f, void *alloc_pnext, size_t alloc_pnext_stride) alloc_bind_mem() argument 1905 prepare_frame(AVHWFramesContext *hwfc, VulkanExecCtx *ectx, AVVkFrame *frame, enum PrepMode pmode) prepare_frame() argument 2017 create_frame(AVHWFramesContext *hwfc, AVVkFrame **frame, VkImageTiling tiling, VkImageUsageFlagBits usage, void *create_pnext) create_frame() argument 2123 try_export_flags(AVHWFramesContext *hwfc, VkExternalMemoryHandleTypeFlags *comp_handle_types, VkExternalMemoryHandleTypeFlagBits *iexp, VkExternalMemoryHandleTypeFlagBits exp) try_export_flags() argument 2190 AVHWFramesContext *hwfc = opaque; vulkan_pool_alloc() local 2248 vulkan_frames_uninit(AVHWFramesContext *hwfc) vulkan_frames_uninit() argument 2263 vulkan_frames_init(AVHWFramesContext *hwfc) vulkan_frames_init() argument 2413 vulkan_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame) vulkan_get_buffer() argument 2427 vulkan_transfer_get_formats(AVHWFramesContext *hwfc, enum AVHWFrameTransferDirection dir, enum AVPixelFormat **formats) vulkan_transfer_get_formats() argument 2447 vulkan_unmap_frame(AVHWFramesContext *hwfc, HWMapDescriptor *hwmap) vulkan_unmap_frame() argument 2481 vulkan_map_frame_to_mem(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vulkan_map_frame_to_mem() argument 2581 vulkan_unmap_from_drm(AVHWFramesContext *hwfc, HWMapDescriptor *hwmap) vulkan_unmap_from_drm() argument 2634 vulkan_map_from_drm_frame_desc(AVHWFramesContext *hwfc, AVVkFrame **frame, const AVFrame *src) vulkan_map_from_drm_frame_desc() argument 2907 vulkan_map_from_drm(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vulkan_map_from_drm() argument 2973 vulkan_export_to_cuda(AVHWFramesContext *hwfc, AVBufferRef *cuda_hwfc, const AVFrame *frame) vulkan_export_to_cuda() argument 3152 vulkan_transfer_data_from_cuda(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) vulkan_transfer_data_from_cuda() argument 3244 vulkan_map_to(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vulkan_map_to() argument 3275 vulkan_unmap_to_drm(AVHWFramesContext *hwfc, HWMapDescriptor *hwmap) vulkan_unmap_to_drm() argument 3293 vulkan_map_to_drm(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vulkan_map_to_drm() argument 3404 vulkan_map_to_vaapi(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vulkan_map_to_vaapi() argument 3431 vulkan_map_from(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) vulkan_map_from() argument 3684 transfer_image_buf(AVHWFramesContext *hwfc, const AVFrame *f, AVBufferRef **bufs, size_t *buf_offsets, const int *buf_stride, int w, int h, enum AVPixelFormat pix_fmt, int to_buf) transfer_image_buf() argument 3814 vulkan_transfer_data(AVHWFramesContext *hwfc, const AVFrame *vkf, const AVFrame *swf, int from) vulkan_transfer_data() argument 3971 vulkan_transfer_data_to(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) vulkan_transfer_data_to() argument 3997 vulkan_transfer_data_to_cuda(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) vulkan_transfer_data_to_cuda() argument 4089 vulkan_transfer_data_from(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) vulkan_transfer_data_from() argument [all...] |
H A D | hwcontext_drm.c | 80 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 in drm_transfer_data_from() 253 drm_transfer_data_to(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) drm_transfer_data_to() argument 285 drm_map_from(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) drm_map_from() argument [all...] |
H A D | hwcontext_opencl.c | 1613 AVHWFramesContext *hwfc = opaque; in opencl_pool_free() local 1621 av_log(hwfc, AV_LOG_ERROR, "Failed to release plane %d: " in opencl_pool_free() 1631 AVHWFramesContext *hwfc = opaque; in opencl_pool_alloc() local 1632 AVOpenCLDeviceContext *hwctx = hwfc->device_ctx->hwctx; in opencl_pool_alloc() 1646 err = opencl_get_plane_format(hwfc->sw_format, p, in opencl_pool_alloc() 1647 hwfc->width, hwfc->height, in opencl_pool_alloc() 1661 av_log(hwfc, AV_LOG_ERROR, "Failed to create image for " in opencl_pool_alloc() 1672 &opencl_pool_free, hwfc, 0); in opencl_pool_alloc() 1685 static int opencl_frames_init_command_queue(AVHWFramesContext *hwfc) in opencl_frames_init_command_queue() argument 1704 opencl_frames_init(AVHWFramesContext *hwfc) opencl_frames_init() argument 1717 opencl_frames_uninit(AVHWFramesContext *hwfc) opencl_frames_uninit() argument 1748 opencl_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame) opencl_get_buffer() argument 1769 opencl_transfer_get_formats(AVHWFramesContext *hwfc, enum AVHWFrameTransferDirection dir, enum AVPixelFormat **formats) opencl_transfer_get_formats() argument 1786 opencl_wait_events(AVHWFramesContext *hwfc, cl_event *events, int nb_events) opencl_wait_events() argument 1810 opencl_transfer_data_from(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) opencl_transfer_data_from() argument 1865 opencl_transfer_data_to(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src) opencl_transfer_data_to() argument 1927 opencl_unmap_frame(AVHWFramesContext *hwfc, HWMapDescriptor *hwmap) opencl_unmap_frame() argument 1956 opencl_map_frame(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) opencl_map_frame() argument 2821 opencl_map_from(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) opencl_map_from() argument 2830 opencl_map_to(AVHWFramesContext *hwfc, AVFrame *dst, const AVFrame *src, int flags) opencl_map_to() argument [all...] |
H A D | hwcontext_videotoolbox.c | 645 static int vt_transfer_data_from(AVHWFramesContext *hwfc, in vt_transfer_data_from() argument 651 if (dst->width > hwfc->width || dst->height > hwfc->height) in vt_transfer_data_from() 659 err = vt_map_frame(hwfc, map, src, AV_HWFRAME_MAP_READ); in vt_transfer_data_from() 676 static int vt_transfer_data_to(AVHWFramesContext *hwfc, in vt_transfer_data_to() argument 682 if (src->width > hwfc->width || src->height > hwfc->height) in vt_transfer_data_to() 690 err = vt_map_frame(hwfc, map, dst, AV_HWFRAME_MAP_WRITE | AV_HWFRAME_MAP_OVERWRITE); in vt_transfer_data_to() 701 err = vt_pixbuf_set_attachments(hwfc, (CVPixelBufferRef)dst->data[3], src); in vt_transfer_data_to() 711 static int vt_map_from(AVHWFramesContext *hwfc, AVFram argument [all...] |
H A D | vulkan.h | 206 AVVulkanFramesContext *hwfc; member
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_hwmap.c | 58 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 in hwmap_config_output() [all...] |
H A D | vaapi_vpp.c | 410 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()
|
H A D | vf_libplacebo.c | 514 AVHWFramesContext *hwfc; in libplacebo_config_output() local 554 hwfc = (AVHWFramesContext *) outlink->hw_frames_ctx->data; in libplacebo_config_output() 555 vkfc = hwfc->hwctx; in libplacebo_config_output()
|
/third_party/ffmpeg/libavcodec/ |
H A D | vaapi_decode.h | 58 AVVAAPIFramesContext *hwfc; member
|
H A D | vaapi_decode.c | 650 ctx->hwfc = ctx->frames->hwctx; in ff_vaapi_decode_init() 662 ctx->hwfc->surface_ids, in ff_vaapi_decode_init() 663 ctx->hwfc->nb_surfaces, in ff_vaapi_decode_init()
|