Home
last modified time | relevance | path

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

12

/third_party/ffmpeg/libavutil/
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->hwctx; in cuda_frames_init()
225 AVHWDeviceContext *device_ctx = ctx->device_ctx; in cuda_transfer_data() local
226 AVCUDADeviceContext *hwctx = device_ctx->hwctx; in cuda_transfer_data()
281 static void cuda_device_uninit(AVHWDeviceContext *device_ctx) in cuda_device_uninit() argument
[all …]
Dhwcontext.h149 AVHWDeviceContext *device_ctx; member
303 int av_hwdevice_ctx_create(AVBufferRef **device_ctx, enum AVHWDeviceType type,
361 AVBufferRef *av_hwframe_ctx_alloc(AVBufferRef *device_ctx);
492 void *av_hwdevice_hwconfig_alloc(AVBufferRef *device_ctx);
Dhwcontext.c249 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)device_ref_in->data; in av_hwframe_ctx_alloc() local
250 const HWContextType *hw_type = device_ctx->internal->hw_type; in av_hwframe_ctx_alloc()
286 ctx->device_ctx = device_ctx; in av_hwframe_ctx_alloc()
614 AVHWDeviceContext *device_ctx; in av_hwdevice_ctx_create() local
622 device_ctx = (AVHWDeviceContext*)device_ref->data; in av_hwdevice_ctx_create()
624 if (!device_ctx->internal->hw_type->device_create) { in av_hwdevice_ctx_create()
629 ret = device_ctx->internal->hw_type->device_create(device_ctx, device, in av_hwdevice_ctx_create()
864 if (src_src->device_ctx == dst_dev) { in av_hwframe_ctx_create_derived()
Dhwcontext_vulkan.c781 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in create_exec_ctx()
835 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in free_exec_ctx()
885 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in wait_start_exec_ctx()
979 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in submit_exec_ctx()
1369 AVHWDeviceContext *cuda_cu = cuda_fc->device_ctx; in vulkan_free_internal()
1394 AVVulkanDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vulkan_frame_free()
1413 AVHWDeviceContext *ctx = hwfc->device_ctx; in alloc_bind_mem()
1578 AVHWDeviceContext *ctx = hwfc->device_ctx; in create_frame()
1666 AVVulkanDeviceContext *dev_hwctx = hwfc->device_ctx->hwctx; in try_export_flags()
1703 VulkanDevicePriv *p = hwfc->device_ctx->internal->priv; in vulkan_pool_alloc()
[all …]
Dhwcontext_opencl.c1623 AVOpenCLDeviceContext *hwctx = hwfc->device_ctx->hwctx; in opencl_pool_alloc()
1679 OpenCLDeviceContext *devpriv = hwfc->device_ctx->internal->priv; in opencl_frames_init_command_queue()
2073 AVOpenCLDeviceContext *hwctx = dst_fc->device_ctx->hwctx; in opencl_map_from_drm_beignet()
2074 OpenCLDeviceContext *priv = dst_fc->device_ctx->internal->priv; in opencl_map_from_drm_beignet()
2204 OpenCLDeviceContext *device_priv = dst_fc->device_ctx->internal->priv; in opencl_unmap_from_qsv()
2239 AVOpenCLDeviceContext *dst_dev = dst_fc->device_ctx->hwctx; in opencl_map_from_qsv()
2240 OpenCLDeviceContext *device_priv = dst_fc->device_ctx->internal->priv; in opencl_map_from_qsv()
2331 OpenCLDeviceContext *device_priv = dst_fc->device_ctx->internal->priv; in opencl_unmap_from_dxva2()
2332 OpenCLFramesContext *frames_priv = dst_fc->device_ctx->internal->priv; in opencl_unmap_from_dxva2()
2356 OpenCLDeviceContext *device_priv = dst_fc->device_ctx->internal->priv; in opencl_map_from_dxva2()
[all …]
Dhwcontext_vaapi.c454 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_buffer_free()
471 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_pool_alloc()
515 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_frames_init()
628 err = vaapi_get_image_format(hwfc->device_ctx, in vaapi_frames_init()
690 VAAPIDeviceContext *ctx = hwfc->device_ctx->internal->priv; in vaapi_transfer_get_formats()
725 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_unmap_frame()
762 AVVAAPIDeviceContext *hwctx = hwfc->device_ctx->hwctx; in vaapi_map_frame()
786 err = vaapi_get_image_format(hwfc->device_ctx, dst->format, &image_format); in vaapi_map_frame()
962 err = vaapi_get_image_format(hwfc->device_ctx, dst->format, NULL); in vaapi_map_to_memory()
1013 AVVAAPIDeviceContext *dst_dev = dst_fc->device_ctx->hwctx; in vaapi_unmap_from_drm()
[all …]
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()
Dhwcontext_d3d11va.c181 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_alloc_single()
229 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_frames_init()
330 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_create_staging_texture()
370 AVD3D11VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; in d3d11va_transfer_data()
Dhwcontext_qsv.c216 QSVDeviceContext *device_priv = ctx->device_ctx->internal->priv; in qsv_init_child_ctx()
445 QSVDeviceContext *device_priv = ctx->device_ctx->internal->priv; in qsv_init_internal_session()
620 switch (dst_ctx->device_ctx->type) { in qsv_frames_derive_from()
677 switch (child_frames_ctx->device_ctx->type) { in qsv_map_from()
981 switch (src_ctx->device_ctx->type) { in qsv_frames_derive_to()
Dhwcontext_dxva2.c93 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_frames_uninit()
145 AVDXVA2DeviceContext *device_hwctx = ctx->device_ctx->hwctx; in dxva2_init_pool()
/third_party/mindspore/mindspore/lite/src/
Dinner_context.cc94 for (auto &device_ctx : context->device_list_) { in SetContextDevice() local
95 if (device_ctx.device_type_ != DT_CPU) { in SetContextDevice()
96 this->device_list_.push_back(device_ctx); in SetContextDevice()
101 for (auto &device_ctx : context->device_list_) { in SetContextDevice() local
102 if (device_ctx.device_type_ == DT_CPU) { in SetContextDevice()
104 auto cpu_ctx = device_ctx; in SetContextDevice()
108 this->device_list_.push_back(device_ctx); in SetContextDevice()
158 for (auto &device_ctx : this->device_list_) { in Init()
159 if (device_ctx.device_type_ == DT_NPU && in Init()
160device_ctx.device_info_.npu_device_info_.frequency_ != hiai::AiModelDescription_Frequency_LOW && in Init()
[all …]
/third_party/ffmpeg/libavcodec/
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->type == AV_HWDEVICE_TYPE_D3D11VA) { in ff_dxva2_common_frame_params()
675 sctx->device_ctx = frames_ctx->device_ctx; in ff_dxva2_decode_init()
[all …]
Damfenc.c251 switch (frames_ctx->device_ctx->type) { in amf_init_context()
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()
268 av_hwdevice_get_type_name(frames_ctx->device_ctx->type)); in amf_init_context()
280 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)avctx->hw_device_ctx->data; in amf_init_context() local
282 switch (device_ctx->type) { in amf_init_context()
285 ret = amf_init_from_d3d11_device(avctx, device_ctx->hwctx); in amf_init_context()
292 ret = amf_init_from_dxva2_device(avctx, device_ctx->hwctx); in amf_init_context()
299 av_hwdevice_get_type_name(device_ctx->type)); in amf_init_context()
Dcuviddec.c388 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data; in cuvid_decode_packet() local
389 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; in cuvid_decode_packet()
453 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data; in cuvid_output_frame() local
454 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; in cuvid_output_frame()
685 AVHWDeviceContext *device_ctx = (AVHWDeviceContext *)ctx->hwdevice->data; in cuvid_decode_end() local
686 AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; in cuvid_decode_end()
812 AVHWDeviceContext *device_ctx; in cuvid_decode_init() local
908 device_ctx = hwframe_ctx->device_ctx; in cuvid_decode_init()
909 device_hwctx = device_ctx->hwctx; in cuvid_decode_init()
1051 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data; in cuvid_flush() local
[all …]
Dvaapi_decode.c614 AVHWDeviceContext *device_ctx = hw_frames->device_ctx; in ff_vaapi_common_frame_params() local
619 if (device_ctx->type != AV_HWDEVICE_TYPE_VAAPI) in ff_vaapi_common_frame_params()
621 hwctx = device_ctx->hwctx; in ff_vaapi_common_frame_params()
689 ctx->device = ctx->frames->device_ctx; in ff_vaapi_decode_init()
Dmediacodecdec_common.c589 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)(avctx->hw_device_ctx->data); in ff_mediacodec_dec_init() local
590 if (device_ctx->type == AV_HWDEVICE_TYPE_MEDIACODEC) { in ff_mediacodec_dec_init()
591 if (device_ctx->hwctx) { in ff_mediacodec_dec_init()
592 … AVMediaCodecDeviceContext *mediacodec_ctx = (AVMediaCodecDeviceContext *)device_ctx->hwctx; in ff_mediacodec_dec_init()
Ddecode.c1124 AVHWDeviceContext *device_ctx = in avcodec_default_get_format() local
1133 if (device_ctx->type != config->device_type) in avcodec_default_get_format()
1180 AVHWDeviceContext *device_ctx; in ff_decode_get_hw_frames_ctx() local
1195 device_ctx = (AVHWDeviceContext *)avctx->hw_device_ctx->data; in ff_decode_get_hw_frames_ctx()
1196 if (device_ctx->type != dev_type) { in ff_decode_get_hw_frames_ctx()
1199 av_hwdevice_get_type_name(device_ctx->type)); in ff_decode_get_hw_frames_ctx()
1418 const AVHWDeviceContext *device_ctx = in ff_get_format() local
1420 if (device_ctx->type != config->device_type) { in ff_get_format()
Ddxva2_internal.h76 AVHWDeviceContext *device_ctx; member
Dqsv.c698 AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)device_ref->data; in ff_qsv_init_session_device() local
699 AVQSVDeviceContext *device_hwctx = device_ctx->hwctx; in ff_qsv_init_session_device()
/third_party/mindspore/mindspore/lite/test/ut/src/
Dinfer_test.cc106 lite::DeviceContext device_ctx = {lite::DT_CPU, {false, lite::NO_BIND}}; in TEST_F() local
107 device_list.push_back(device_ctx); in TEST_F()
206 lite::DeviceContext device_ctx = {lite::DT_CPU, {false, lite::NO_BIND}}; in TEST_F() local
207 device_list.push_back(device_ctx); in TEST_F()
/third_party/ffmpeg/libavfilter/
Dvf_transpose_npp.c124 static int init_stage(NPPTransposeStageContext *stage, AVBufferRef *device_ctx) in init_stage() argument
146 out_ref = av_hwframe_ctx_alloc(device_ctx); in init_stage()
401 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in npptranspose_filter_frame()
Dvf_scale_npp.c156 static int init_stage(NPPScaleStageContext *stage, AVBufferRef *device_ctx) in init_stage() argument
177 out_ref = av_hwframe_ctx_alloc(device_ctx); in init_stage()
510 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in nppscale_filter_frame()
Dvf_scale_cuda.c165 static av_cold int init_hwframe_ctx(CUDAScaleContext *s, AVBufferRef *device_ctx, int width, int he… in init_hwframe_ctx() argument
171 out_ref = av_hwframe_ctx_alloc(device_ctx); in init_hwframe_ctx()
271 AVCUDADeviceContext *device_hwctx = frames_ctx->device_ctx->hwctx; in cudascale_config_props()
Dvf_overlay_qsv.c288 if (hw_frame0->device_ctx != hw_frame1->device_ctx) { in config_output()
Dqsvvpp.c514 AVHWDeviceContext *device_ctx; in init_vpp_session() local
547 device_ctx = (AVHWDeviceContext *)device_ref->data; in init_vpp_session()
548 device_hwctx = device_ctx->hwctx; in init_vpp_session()

12