/third_party/ffmpeg/libavutil/ |
D | hwcontext_internal.h | 80 int (*frames_init)(AVHWFramesContext *ctx); 81 void (*frames_uninit)(AVHWFramesContext *ctx); 83 int (*frames_get_buffer)(AVHWFramesContext *ctx, AVFrame *frame); 84 int (*transfer_get_formats)(AVHWFramesContext *ctx, 87 int (*transfer_data_to)(AVHWFramesContext *ctx, AVFrame *dst, 89 int (*transfer_data_from)(AVHWFramesContext *ctx, AVFrame *dst, 92 int (*map_to)(AVHWFramesContext *ctx, AVFrame *dst, 94 int (*map_from)(AVHWFramesContext *ctx, AVFrame *dst, 97 int (*frames_derive_to)(AVHWFramesContext *dst_ctx, 98 AVHWFramesContext *src_ctx, int flags); [all …]
|
D | hwcontext.c | 226 AVHWFramesContext *ctx = (AVHWFramesContext*)data; in hwframe_ctx_free() 251 AVHWFramesContext *ctx; in av_hwframe_ctx_alloc() 307 AVHWFramesContext *ctx = (AVHWFramesContext*)ref->data; in hwframe_pool_prealloc() 335 AVHWFramesContext *ctx = (AVHWFramesContext*)ref->data; in av_hwframe_ctx_init() 389 AVHWFramesContext *ctx = (AVHWFramesContext*)hwframe_ref->data; in av_hwframe_transfer_get_formats() 399 AVHWFramesContext *ctx = (AVHWFramesContext*)src->hw_frames_ctx->data; in transfer_data_alloc() 445 AVHWFramesContext *ctx; in av_hwframe_transfer_data() 458 AVHWFramesContext *src_ctx = in av_hwframe_transfer_data() 459 (AVHWFramesContext*)src->hw_frames_ctx->data; in av_hwframe_transfer_data() 460 AVHWFramesContext *dst_ctx = in av_hwframe_transfer_data() [all …]
|
D | hwcontext_drm.c | 70 static int drm_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame) in drm_get_buffer() 92 static void drm_unmap_frame(AVHWFramesContext *hwfc, in drm_unmap_frame() 104 static int drm_map_frame(AVHWFramesContext *hwfc, in drm_map_frame() 171 static int drm_transfer_get_formats(AVHWFramesContext *ctx, in drm_transfer_get_formats() 188 static int drm_transfer_data_from(AVHWFramesContext *hwfc, in drm_transfer_data_from() 219 static int drm_transfer_data_to(AVHWFramesContext *hwfc, in drm_transfer_data_to() 251 static int drm_map_from(AVHWFramesContext *hwfc, AVFrame *dst, in drm_map_from()
|
D | hwcontext_videotoolbox.c | 78 static int vt_get_buffer(AVHWFramesContext *ctx, AVFrame *frame) in vt_get_buffer() 92 static int vt_transfer_get_formats(AVHWFramesContext *ctx, in vt_transfer_get_formats() 107 static void vt_unmap(AVHWFramesContext *ctx, HWMapDescriptor *hwmap) in vt_unmap() 114 static int vt_map_frame(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src, in vt_map_frame() 170 static int vt_transfer_data_from(AVHWFramesContext *hwfc, in vt_transfer_data_from() 201 static int vt_transfer_data_to(AVHWFramesContext *hwfc, in vt_transfer_data_to()
|
D | hwcontext_qsv.c | 164 static void qsv_frames_uninit(AVHWFramesContext *ctx) in qsv_frames_uninit() 199 AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; in qsv_pool_alloc() 212 static int qsv_init_child_ctx(AVHWFramesContext *ctx) in qsv_init_child_ctx() 222 AVHWFramesContext *child_frames_ctx; in qsv_init_child_ctx() 262 child_frames_ctx = (AVHWFramesContext*)child_frames_ref->data; in qsv_init_child_ctx() 315 static int qsv_init_surface(AVHWFramesContext *ctx, mfxFrameSurface1 *surf) in qsv_init_surface() 351 static int qsv_init_pool(AVHWFramesContext *ctx, uint32_t fourcc) in qsv_init_pool() 394 AVHWFramesContext *ctx = pthis; in frame_alloc() 440 static int qsv_init_internal_session(AVHWFramesContext *ctx, in qsv_init_internal_session() 516 static int qsv_frames_init(AVHWFramesContext *ctx) in qsv_frames_init() [all …]
|
D | hwcontext_dxva2.c | 91 static void dxva2_frames_uninit(AVHWFramesContext *ctx) in dxva2_frames_uninit() 129 AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; in dxva2_pool_alloc() 142 static int dxva2_init_pool(AVHWFramesContext *ctx) in dxva2_init_pool() 209 static int dxva2_frames_init(AVHWFramesContext *ctx) in dxva2_frames_init() 236 static int dxva2_get_buffer(AVHWFramesContext *ctx, AVFrame *frame) in dxva2_get_buffer() 250 static int dxva2_transfer_get_formats(AVHWFramesContext *ctx, in dxva2_transfer_get_formats() 268 static void dxva2_unmap_frame(AVHWFramesContext *ctx, HWMapDescriptor *hwmap) in dxva2_unmap_frame() 275 static int dxva2_map_frame(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src, in dxva2_map_frame() 333 static int dxva2_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst, in dxva2_transfer_data_to() 359 static int dxva2_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst, in dxva2_transfer_data_from() [all …]
|
D | hwcontext.h | 124 typedef struct AVHWFramesContext { struct 170 void (*free)(struct AVHWFramesContext *ctx); argument 230 } AVHWFramesContext; argument
|
D | hwcontext_d3d11va.c | 103 static void d3d11va_frames_uninit(AVHWFramesContext *ctx) in d3d11va_frames_uninit() 177 static AVBufferRef *d3d11va_alloc_single(AVHWFramesContext *ctx) in d3d11va_alloc_single() 207 AVHWFramesContext *ctx = (AVHWFramesContext*)opaque; in d3d11va_pool_alloc() 226 static int d3d11va_frames_init(AVHWFramesContext *ctx) in d3d11va_frames_init() 286 static int d3d11va_get_buffer(AVHWFramesContext *ctx, AVFrame *frame) in d3d11va_get_buffer() 305 static int d3d11va_transfer_get_formats(AVHWFramesContext *ctx, in d3d11va_transfer_get_formats() 328 static int d3d11va_create_staging_texture(AVHWFramesContext *ctx) in d3d11va_create_staging_texture() 354 AVHWFramesContext *ctx, in fill_texture_ptrs() 367 static int d3d11va_transfer_data(AVHWFramesContext *ctx, AVFrame *dst, in d3d11va_transfer_data()
|
D | hwcontext_opencl.c | 1604 AVHWFramesContext *hwfc = opaque; in opencl_pool_free() 1622 AVHWFramesContext *hwfc = opaque; in opencl_pool_alloc() 1676 static int opencl_frames_init_command_queue(AVHWFramesContext *hwfc) in opencl_frames_init_command_queue() 1695 static int opencl_frames_init(AVHWFramesContext *hwfc) in opencl_frames_init() 1708 static void opencl_frames_uninit(AVHWFramesContext *hwfc) in opencl_frames_uninit() 1739 static int opencl_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame) in opencl_get_buffer() 1760 static int opencl_transfer_get_formats(AVHWFramesContext *hwfc, in opencl_transfer_get_formats() 1777 static int opencl_wait_events(AVHWFramesContext *hwfc, in opencl_wait_events() 1801 static int opencl_transfer_data_from(AVHWFramesContext *hwfc, in opencl_transfer_data_from() 1856 static int opencl_transfer_data_to(AVHWFramesContext *hwfc, in opencl_transfer_data_to() [all …]
|
D | hwcontext_cuda.c | 83 AVHWFramesContext *ctx = opaque; in cuda_buffer_free() 99 AVHWFramesContext *ctx = opaque; in cuda_pool_alloc() 128 static int cuda_frames_init(AVHWFramesContext *ctx) in cuda_frames_init() 158 static int cuda_get_buffer(AVHWFramesContext *ctx, AVFrame *frame) in cuda_get_buffer() 186 static int cuda_transfer_get_formats(AVHWFramesContext *ctx, in cuda_transfer_get_formats() 204 static int cuda_transfer_data(AVHWFramesContext *ctx, AVFrame *dst, in cuda_transfer_data() 215 …if ((src->hw_frames_ctx && ((AVHWFramesContext*)src->hw_frames_ctx->data)->format != AV_PIX_FMT_CU… in cuda_transfer_data() 216 … (dst->hw_frames_ctx && ((AVHWFramesContext*)dst->hw_frames_ctx->data)->format != AV_PIX_FMT_CUDA)) in cuda_transfer_data()
|
D | hwcontext_vulkan.c | 736 static int create_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd, in create_exec_ctx() 791 static void free_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) in free_exec_ctx() 823 static VkCommandBuffer get_buf_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) in get_buf_exec_ctx() 828 static void unref_exec_ctx_deps(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) in unref_exec_ctx_deps() 837 static int wait_start_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd) in wait_start_exec_ctx() 878 static int add_buf_dep_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd, in add_buf_dep_exec_ctx() 908 static int submit_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd, in submit_exec_ctx() 1314 AVHWFramesContext *cuda_fc = (AVHWFramesContext *)internal->cuda_fc_ref->data; in vulkan_free_internal() 1340 AVHWFramesContext *hwfc = opaque; in vulkan_frame_free() 1355 static int alloc_bind_mem(AVHWFramesContext *hwfc, AVVkFrame *f, in alloc_bind_mem() [all …]
|
D | hwcontext_vaapi.c | 430 AVHWFramesContext *hwfc = opaque; in vaapi_buffer_free() 446 AVHWFramesContext *hwfc = opaque; in vaapi_pool_alloc() 488 static int vaapi_frames_init(AVHWFramesContext *hwfc) in vaapi_frames_init() 640 static void vaapi_frames_uninit(AVHWFramesContext *hwfc) in vaapi_frames_uninit() 649 static int vaapi_get_buffer(AVHWFramesContext *hwfc, AVFrame *frame) in vaapi_get_buffer() 663 static int vaapi_transfer_get_formats(AVHWFramesContext *hwfc, in vaapi_transfer_get_formats() 699 static void vaapi_unmap_frame(AVHWFramesContext *hwfc, in vaapi_unmap_frame() 736 static int vaapi_map_frame(AVHWFramesContext *hwfc, in vaapi_map_frame() 871 static int vaapi_transfer_data_from(AVHWFramesContext *hwfc, in vaapi_transfer_data_from() 902 static int vaapi_transfer_data_to(AVHWFramesContext *hwfc, in vaapi_transfer_data_to() [all …]
|
D | hwcontext_vdpau.c | 207 AVHWFramesContext *ctx = opaque; in vdpau_buffer_free() 216 AVHWFramesContext *ctx = opaque; in vdpau_pool_alloc() 242 static int vdpau_frames_init(AVHWFramesContext *ctx) in vdpau_frames_init() 277 static int vdpau_get_buffer(AVHWFramesContext *ctx, AVFrame *frame) in vdpau_get_buffer() 291 static int vdpau_transfer_get_formats(AVHWFramesContext *ctx, in vdpau_transfer_get_formats() 315 static int vdpau_transfer_data_from(AVHWFramesContext *ctx, AVFrame *dst, in vdpau_transfer_data_from() 370 static int vdpau_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst, in vdpau_transfer_data_to()
|
/third_party/ffmpeg/libavcodec/ |
D | qsv.c | 444 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ref->data; in qsv_create_mids() 482 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ref->data; in qsv_setup_mids() 530 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)ctx->hw_frames_ctx->data; in qsv_frame_alloc() 552 AVHWFramesContext *ext_frames_ctx = (AVHWFramesContext*)ctx->hw_frames_ctx->data; in qsv_frame_alloc() 556 AVHWFramesContext *frames_ctx; in qsv_frame_alloc() 563 frames_ctx = (AVHWFramesContext*)frames_ref->data; in qsv_frame_alloc() 615 AVHWFramesContext *hw_frames_ctx = (AVHWFramesContext*)qsv_mid->hw_frames_ref->data; in qsv_frame_lock() 776 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)qsv_frames_ctx->hw_frames_ctx->data; in ff_qsv_init_session_frames()
|
D | nvdec.c | 274 static void nvdec_free_dummy(struct AVHWFramesContext *ctx) in nvdec_free_dummy() 286 AVHWFramesContext *frames_ctx; in nvdec_init_hwframes() 296 frames_ctx = (AVHWFramesContext*)(*out_frames_ref)->data; in nvdec_init_hwframes() 330 AVHWFramesContext *frames_ctx; in ff_nvdec_decode_init() 386 frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; in ff_nvdec_decode_init() 477 AVHWFramesContext *hwctx = (AVHWFramesContext *)frame->hw_frames_ctx->data; in nvdec_retrieve_data() 657 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ctx->data; in ff_nvdec_frame_params()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_hwupload_cuda.c | 93 AVHWFramesContext *hwframe_ctx; in cudaupload_config_output() 101 hwframe_ctx = (AVHWFramesContext*)s->hwframe->data; in cudaupload_config_output() 104 AVHWFramesContext *in_hwframe_ctx = (AVHWFramesContext*)inlink->hw_frames_ctx->data; in cudaupload_config_output()
|
D | vf_scale_npp.c | 159 AVHWFramesContext *out_ctx; in init_stage() 180 out_ctx = (AVHWFramesContext*)out_ref->data; in init_stage() 237 AVHWFramesContext *in_frames_ctx; in init_processing_chain() 251 in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data; in init_processing_chain() 386 AVHWFramesContext *in_frames_ctx = (AVHWFramesContext*)in->hw_frames_ctx->data; in nppscale_deinterleave() 438 AVHWFramesContext *out_frames_ctx = (AVHWFramesContext*)out->hw_frames_ctx->data; in nppscale_interleave() 506 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)outlink->hw_frames_ctx->data; in nppscale_filter_frame()
|
D | vf_hwupload.c | 37 AVHWFramesContext *hwframes; 135 ctx->hwframes = (AVHWFramesContext*)ctx->hwframes_ref->data; in hwupload_config_output() 142 AVHWFramesContext *in_hwframe_ctx = in hwupload_config_output() 143 (AVHWFramesContext*)inlink->hw_frames_ctx->data; in hwupload_config_output()
|
D | vf_overlay_vulkan.c | 241 AVHWFramesContext *main_fc = (AVHWFramesContext*)main_f->hw_frames_ctx->data; 242 AVHWFramesContext *overlay_fc = (AVHWFramesContext*)overlay_f->hw_frames_ctx->data; 368 AVHWFramesContext *main_fc = (AVHWFramesContext*)input_main->hw_frames_ctx->data; 369 AVHWFramesContext *overlay_fc = (AVHWFramesContext*)input_overlay->hw_frames_ctx->data;
|
D | vf_hwmap.c | 58 AVHWFramesContext *hwfc; in hwmap_config_output() 73 hwfc = (AVHWFramesContext*)inlink->hw_frames_ctx->data; in hwmap_config_output() 133 AVHWFramesContext *frames; in hwmap_config_output() 140 frames = (AVHWFramesContext*)ctx->hwframes_ref->data; in hwmap_config_output() 221 hwfc = (AVHWFramesContext*)ctx->hwframes_ref->data; in hwmap_config_output()
|
D | vf_overlay_qsv.c | 165 AVHWFramesContext *fctx; in have_alpha_planar() 168 fctx = (AVHWFramesContext *)link->hw_frames_ctx->data; in have_alpha_planar() 285 AVHWFramesContext *hw_frame0 = (AVHWFramesContext *)in0->hw_frames_ctx->data; in config_output() 286 AVHWFramesContext *hw_frame1 = (AVHWFramesContext *)in1->hw_frames_ctx->data; in config_output()
|
D | vf_scale_cuda.c | 141 AVHWFramesContext *out_ctx; in init_stage() 162 out_ctx = (AVHWFramesContext*)out_ref->data; in init_stage() 205 AVHWFramesContext *in_frames_ctx; in init_processing_chain() 216 in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data; in init_processing_chain() 258 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)inlink->hw_frames_ctx->data; in cudascale_config_props() 389 AVHWFramesContext *in_frames_ctx = (AVHWFramesContext*)in->hw_frames_ctx->data; in scalecuda_resize()
|
D | vf_scale_qsv.c | 178 AVHWFramesContext *in_frames_ctx; in init_out_pool() 179 AVHWFramesContext *out_frames_ctx; in init_out_pool() 191 in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data; in init_out_pool() 200 out_frames_ctx = (AVHWFramesContext*)outlink->hw_frames_ctx->data; in init_out_pool() 281 AVHWFramesContext *in_frames_ctx = (AVHWFramesContext*)ctx->inputs[0]->hw_frames_ctx->data; in init_out_session() 282 AVHWFramesContext *out_frames_ctx = (AVHWFramesContext*)ctx->outputs[0]->hw_frames_ctx->data; in init_out_session()
|
D | opencl.c | 64 AVHWFramesContext *input_frames; in ff_opencl_filter_config_input() 77 input_frames = (AVHWFramesContext*)inlink->hw_frames_ctx->data; in ff_opencl_filter_config_input() 101 AVHWFramesContext *output_frames; in ff_opencl_filter_config_output() 123 output_frames = (AVHWFramesContext*)output_frames_ref->data; in ff_opencl_filter_config_output()
|
/third_party/ffmpeg/fftools/ |
D | ffmpeg_qsv.c | 75 AVHWFramesContext *frames_ctx; in qsv_init() 90 frames_ctx = (AVHWFramesContext*)ist->hw_frames_ctx->data; in qsv_init()
|