Home
last modified time | relevance | path

Searched refs:device_ctx (Results 1 - 25 of 31) sorted by relevance

12

/third_party/ffmpeg/libavutil/
H A Dhwcontext_cuda.c53 #define CHECK_CU(x) FF_CUDA_CHECK_DL(device_ctx, cu, x)
83 AVHWDeviceContext *device_ctx = ctx->device_ctx; in cuda_buffer_free() local
84 AVCUDADeviceContext *hwctx = device_ctx->hwctx; in cuda_buffer_free()
99 AVHWDeviceContext *device_ctx = ctx->device_ctx; in cuda_pool_alloc() local
100 AVCUDADeviceContext *hwctx = device_ctx->hwctx; in cuda_pool_alloc()
129 AVHWDeviceContext *device_ctx = ctx->device_ctx; in cuda_frames_init() local
130 AVCUDADeviceContext *hwctx = device_ctx in cuda_frames_init()
225 AVHWDeviceContext *device_ctx = ctx->device_ctx; cuda_transfer_data() local
281 cuda_device_uninit(AVHWDeviceContext *device_ctx) cuda_device_uninit() argument
329 cuda_context_init(AVHWDeviceContext *device_ctx, int flags) cuda_context_init() argument
379 cuda_flags_from_opts(AVHWDeviceContext *device_ctx, AVDictionary *opts, int *flags) cuda_flags_from_opts() argument
395 cuda_device_create(AVHWDeviceContext *device_ctx, const char *device, AVDictionary *opts, int flags) cuda_device_create() argument
435 cuda_device_derive(AVHWDeviceContext *device_ctx, AVHWDeviceContext *src_ctx, AVDictionary *opts, int flags) cuda_device_derive() argument
[all...]
H A Dhwcontext.h149 AVHWDeviceContext *device_ctx; member
291 * @param device_ctx On success, a reference to the newly-created device context
303 int av_hwdevice_ctx_create(AVBufferRef **device_ctx, enum AVHWDeviceType type,
355 * @param device_ctx a reference to a AVHWDeviceContext. This function will make
361 AVBufferRef *av_hwframe_ctx_alloc(AVBufferRef *device_ctx);
488 * @param device_ctx a reference to the associated AVHWDeviceContext.
492 void *av_hwdevice_hwconfig_alloc(AVBufferRef *device_ctx);
H A Dhwcontext.c250 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)device_ref_in->data; in av_hwframe_ctx_alloc() local
251 const HWContextType *hw_type = device_ctx->internal->hw_type; in av_hwframe_ctx_alloc()
287 ctx->device_ctx = device_ctx; in av_hwframe_ctx_alloc()
611 AVHWDeviceContext *device_ctx; in av_hwdevice_ctx_create() local
619 device_ctx = (AVHWDeviceContext*)device_ref->data; in av_hwdevice_ctx_create()
621 if (!device_ctx->internal->hw_type->device_create) { in av_hwdevice_ctx_create()
626 ret = device_ctx->internal->hw_type->device_create(device_ctx, device, in av_hwdevice_ctx_create()
883 if (src_src->device_ctx in av_hwframe_ctx_create_derived()
[all...]
H A Dhwcontext_vulkan.c1060 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in create_exec_ctx()
1061 VulkanDevicePriv *p = hwfc->device_ctx->internal->priv; in create_exec_ctx()
1116 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in free_exec_ctx()
1117 VulkanDevicePriv *p = hwfc->device_ctx->internal->priv; in free_exec_ctx()
1168 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in wait_start_exec_ctx()
1170 VulkanDevicePriv *p = hwfc->device_ctx->internal->priv; in wait_start_exec_ctx()
1243 VulkanDevicePriv *p = hwfc->device_ctx->internal->priv; in submit_exec_ctx()
1272 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in submit_exec_ctx()
1728 AVHWDeviceContext *cuda_cu = cuda_fc->device_ctx; in vulkan_free_internal()
1759 AVVulkanDeviceContext *hwctx = hwfc->device_ctx in vulkan_frame_free()
[all...]
H A Dhwcontext_opencl.c1632 AVOpenCLDeviceContext *hwctx = hwfc->device_ctx->hwctx; in opencl_pool_alloc()
1688 OpenCLDeviceContext *devpriv = hwfc->device_ctx->internal->priv; in opencl_frames_init_command_queue()
2082 AVOpenCLDeviceContext *hwctx = dst_fc->device_ctx->hwctx; in opencl_map_from_drm_beignet()
2083 OpenCLDeviceContext *priv = dst_fc->device_ctx->internal->priv; in opencl_map_from_drm_beignet()
2214 OpenCLDeviceContext *device_priv = dst_fc->device_ctx->internal->priv; in opencl_unmap_from_qsv()
2249 AVOpenCLDeviceContext *dst_dev = dst_fc->device_ctx->hwctx; in opencl_map_from_qsv()
2250 OpenCLDeviceContext *device_priv = dst_fc->device_ctx->internal->priv; in opencl_map_from_qsv()
2348 OpenCLDeviceContext *device_priv = dst_fc->device_ctx->internal->priv; in opencl_unmap_from_dxva2()
2349 OpenCLFramesContext *frames_priv = dst_fc->device_ctx->internal->priv; in opencl_unmap_from_dxva2()
2373 OpenCLDeviceContext *device_priv = dst_fc->device_ctx in opencl_map_from_dxva2()
[all...]
H A Dhwcontext_vaapi.c457 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_buffer_free()
474 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_pool_alloc()
518 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_frames_init()
631 err = vaapi_get_image_format(hwfc->device_ctx, in vaapi_frames_init()
693 VAAPIDeviceContext *ctx = hwfc->device_ctx->internal->priv; in vaapi_transfer_get_formats()
728 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_unmap_frame()
765 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_map_frame()
789 err = vaapi_get_image_format(hwfc->device_ctx, dst->format, &image_format); in vaapi_map_frame()
965 err = vaapi_get_image_format(hwfc->device_ctx, dst->format, NULL); in vaapi_map_to_memory()
1017 AVVAAPIDeviceContext *dst_dev = dst_fc->device_ctx in vaapi_unmap_from_drm()
[all...]
H A Dhwcontext_vdpau.c222 VDPAUDeviceContext *device_priv = ctx->device_ctx->internal->priv; in vdpau_buffer_free()
232 AVVDPAUDeviceContext *device_hwctx = ctx->device_ctx->hwctx; in vdpau_pool_alloc()
233 VDPAUDeviceContext *device_priv = ctx->device_ctx->internal->priv; in vdpau_pool_alloc()
258 VDPAUDeviceContext *device_priv = ctx->device_ctx->internal->priv; in vdpau_frames_init()
H A Dhwcontext_d3d11va.c201 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_alloc_single()
249 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_frames_init()
355 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_create_staging_texture()
395 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_transfer_data()
H A Dhwcontext_qsv.c333 QSVDeviceContext *device_priv = ctx->device_ctx->internal->priv; in qsv_init_child_ctx()
615 QSVDeviceContext *device_priv = ctx->device_ctx->internal->priv; in qsv_init_internal_session()
789 switch (dst_ctx->device_ctx->type) { in qsv_frames_derive_from()
870 switch (child_frames_ctx->device_ctx->type) { in qsv_map_from()
912 if (child_frames_ctx->device_ctx->type == AV_HWDEVICE_TYPE_D3D11VA) { in qsv_map_from()
942 if (child_frames_ctx->device_ctx->type == AV_HWDEVICE_TYPE_D3D11VA) { in qsv_map_from()
1250 switch (src_ctx->device_ctx->type) { in qsv_frames_derive_to()
H A Dhwcontext_dxva2.c94 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_frames_uninit()
146 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_init_pool()
/third_party/ffmpeg/libavcodec/
H A Ddxva2.c357 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()
568 if (sctx->device_ctx) { in ff_dxva2_lock()
569 AVD3D11VADeviceContext *hwctx = sctx->device_ctx->hwctx; in ff_dxva2_lock()
584 if (sctx->device_ctx) { in ff_dxva2_unlock()
585 AVD3D11VADeviceContext *hwctx = sctx->device_ctx->hwctx; in ff_dxva2_unlock()
596 AVHWDeviceContext *device_ctx = frames_ctx->device_ctx; in ff_dxva2_common_frame_params() local
599 if (device_ctx->type == AV_HWDEVICE_TYPE_DXVA2) { in ff_dxva2_common_frame_params()
601 } else if (device_ctx in ff_dxva2_common_frame_params()
[all...]
H A Dcuviddec.c397 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data; in cuvid_decode_packet() local
398 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; in cuvid_decode_packet()
462 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data; in cuvid_output_frame() local
463 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; in cuvid_output_frame()
658 AVHWDeviceContext *device_ctx = ctx->hwdevice ? (AVHWDeviceContext *)ctx->hwdevice->data : NULL; in cuvid_decode_end() local
659 AVCUDADeviceContext *device_hwctx = device_ctx ? device_ctx->hwctx : NULL; in cuvid_decode_end()
787 AVHWDeviceContext *device_ctx; in cuvid_decode_init() local
884 device_ctx = hwframe_ctx->device_ctx; in cuvid_decode_init()
1037 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data; cuvid_flush() local
[all...]
H A Damfenc.c253 switch (frames_ctx->device_ctx->type) { in amf_init_context()
256 ret = amf_init_from_d3d11_device(avctx, frames_ctx->device_ctx->hwctx); in amf_init_context()
263 ret = amf_init_from_dxva2_device(avctx, frames_ctx->device_ctx->hwctx); in amf_init_context()
270 av_hwdevice_get_type_name(frames_ctx->device_ctx->type)); in amf_init_context()
282 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)avctx->hw_device_ctx->data; in amf_init_context() local
284 switch (device_ctx->type) { in amf_init_context()
287 ret = amf_init_from_d3d11_device(avctx, device_ctx->hwctx); in amf_init_context()
294 ret = amf_init_from_dxva2_device(avctx, device_ctx->hwctx); in amf_init_context()
301 av_hwdevice_get_type_name(device_ctx->type)); in amf_init_context()
H A Dvaapi_decode.c616 AVHWDeviceContext *device_ctx = hw_frames->device_ctx; in ff_vaapi_common_frame_params() local
621 if (device_ctx->type != AV_HWDEVICE_TYPE_VAAPI) in ff_vaapi_common_frame_params()
623 hwctx = device_ctx->hwctx; in ff_vaapi_common_frame_params()
651 ctx->device = ctx->frames->device_ctx; in ff_vaapi_decode_init()
H A Dmediacodecdec_common.c579 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)(avctx->hw_device_ctx->data); in ff_mediacodec_dec_init() local
580 if (device_ctx->type == AV_HWDEVICE_TYPE_MEDIACODEC) { in ff_mediacodec_dec_init()
581 if (device_ctx->hwctx) { in ff_mediacodec_dec_init()
582 AVMediaCodecDeviceContext *mediacodec_ctx = (AVMediaCodecDeviceContext *)device_ctx->hwctx; in ff_mediacodec_dec_init()
H A Ddecode.c898 AVHWDeviceContext *device_ctx = in avcodec_default_get_format() local
907 if (device_ctx->type != config->device_type) in avcodec_default_get_format()
954 AVHWDeviceContext *device_ctx; in ff_decode_get_hw_frames_ctx() local
969 device_ctx = (AVHWDeviceContext *)avctx->hw_device_ctx->data; in ff_decode_get_hw_frames_ctx()
970 if (device_ctx->type != dev_type) { in ff_decode_get_hw_frames_ctx()
973 av_hwdevice_get_type_name(device_ctx->type)); in ff_decode_get_hw_frames_ctx()
1190 const AVHWDeviceContext *device_ctx = in ff_get_format() local
1192 if (device_ctx->type != config->device_type) { in ff_get_format()
H A Ddxva2_internal.h76 AVHWDeviceContext *device_ctx; member
/third_party/ffmpeg/libavfilter/
H A Dvf_chromakey_cuda.c114 static av_cold int init_hwframe_ctx(ChromakeyCUDAContext *s, AVBufferRef *device_ctx, int width, int height) in init_hwframe_ctx() argument
120 out_ref = av_hwframe_ctx_alloc(device_ctx); in init_hwframe_ctx()
267 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in cudachromakey_config_props()
H A Dvf_transpose_npp.c114 static int init_stage(NPPTransposeStageContext *stage, AVBufferRef *device_ctx) in init_stage() argument
136 out_ref = av_hwframe_ctx_alloc(device_ctx); in init_stage()
391 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in npptranspose_filter_frame()
H A Dvf_scale_cuda.c148 static av_cold int init_hwframe_ctx(CUDAScaleContext *s, AVBufferRef *device_ctx, int width, int height) in init_hwframe_ctx() argument
154 out_ref = av_hwframe_ctx_alloc(device_ctx); in init_hwframe_ctx()
354 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in cudascale_config_props()
H A Dvf_vpp_qsv.c297 AVHWDeviceContext *device_ctx; in get_mfx_version() local
313 device_ctx = (AVHWDeviceContext *)device_ref->data; in get_mfx_version()
314 device_hwctx = device_ctx->hwctx; in get_mfx_version()
H A Dvf_overlay_qsv.c287 if (hw_frame0->device_ctx != hw_frame1->device_ctx) { in config_output()
H A Dqsvvpp.c491 AVHWDeviceContext *device_ctx; in init_vpp_session() local
524 device_ctx = (AVHWDeviceContext *)device_ref->data; in init_vpp_session()
525 device_hwctx = device_ctx->hwctx; in init_vpp_session()
H A Dvf_sharpen_npp.c184 AVCUDADeviceContext* device_hwctx = frames_ctx->device_ctx->hwctx; in nppsharpen_filter_frame()
H A Dvf_scale_npp.c435 static int init_stage(NPPScaleStageContext *stage, AVBufferRef *device_ctx) in init_stage() argument
463 out_ref = av_hwframe_ctx_alloc(device_ctx); in init_stage()
872 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in nppscale_filter_frame()

Completed in 34 milliseconds

12