/third_party/ffmpeg/libavutil/ |
D | hwcontext_cuda.c | 53 #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 …]
|
D | hwcontext.h | 149 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);
|
D | hwcontext.c | 249 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()
|
D | hwcontext_vulkan.c | 781 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 …]
|
D | hwcontext_opencl.c | 1623 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 …]
|
D | hwcontext_vaapi.c | 454 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 …]
|
D | hwcontext_vdpau.c | 222 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()
|
D | hwcontext_d3d11va.c | 181 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()
|
D | hwcontext_qsv.c | 216 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()
|
D | hwcontext_dxva2.c | 93 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/ |
D | inner_context.cc | 94 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() 160 … device_ctx.device_info_.npu_device_info_.frequency_ != hiai::AiModelDescription_Frequency_LOW && in Init() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | dxva2.c | 357 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 …]
|
D | amfenc.c | 251 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()
|
D | cuviddec.c | 388 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 …]
|
D | vaapi_decode.c | 614 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()
|
D | mediacodecdec_common.c | 589 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()
|
D | decode.c | 1124 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()
|
D | dxva2_internal.h | 76 AVHWDeviceContext *device_ctx; member
|
D | qsv.c | 698 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/ |
D | infer_test.cc | 106 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/ |
D | vf_transpose_npp.c | 124 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()
|
D | vf_scale_npp.c | 156 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()
|
D | vf_scale_cuda.c | 165 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()
|
D | vf_overlay_qsv.c | 288 if (hw_frame0->device_ctx != hw_frame1->device_ctx) { in config_output()
|
D | qsvvpp.c | 514 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()
|