Searched refs:cuda_dev (Results 1 – 2 of 2) sorted by relevance
/third_party/gstreamer/gstplugins_bad/sys/nvcodec/ |
D | gstcudacontext.c | 142 CUdevice cdev = 0, cuda_dev = -1; in gst_cuda_context_constructed() local 178 priv->device_id = cuda_dev = cdev; in gst_cuda_context_constructed() 185 if (cuda_dev == -1) { in gst_cuda_context_constructed() 190 GST_DEBUG ("Creating cuda context for device index %d", cuda_dev); in gst_cuda_context_constructed() 192 if (!gst_cuda_result (CuCtxCreate (&cuda_ctx, 0, cuda_dev))) { in gst_cuda_context_constructed() 193 GST_WARNING ("Failed to create CUDA context for cuda device %d", cuda_dev); in gst_cuda_context_constructed() 201 GST_INFO ("Created CUDA context %p with device-id %d", cuda_ctx, cuda_dev); in gst_cuda_context_constructed() 204 priv->device = cuda_dev; in gst_cuda_context_constructed()
|
/third_party/ffmpeg/libavutil/ |
D | hwcontext_vulkan.c | 1370 AVCUDADeviceContext *cuda_dev = cuda_cu->hwctx; in vulkan_free_internal() local 1371 AVCUDADeviceContextInternal *cu_internal = cuda_dev->internal; in vulkan_free_internal() 2334 AVCUDADeviceContext *cuda_dev = cuda_cu->hwctx; in vulkan_export_to_cuda() local 2335 AVCUDADeviceContextInternal *cu_internal = cuda_dev->internal; in vulkan_export_to_cuda() 2459 AVCUDADeviceContext *cuda_dev = cuda_cu->hwctx; in vulkan_transfer_data_from_cuda() local 2460 AVCUDADeviceContextInternal *cu_internal = cuda_dev->internal; in vulkan_transfer_data_from_cuda() 2465 ret = CHECK_CU(cu->cuCtxPushCurrent(cuda_dev->cuda_ctx)); in vulkan_transfer_data_from_cuda() 2480 planes, cuda_dev->stream)); in vulkan_transfer_data_from_cuda() 2503 ret = CHECK_CU(cu->cuMemcpy2DAsync(&cpy, cuda_dev->stream)); in vulkan_transfer_data_from_cuda() 2511 planes, cuda_dev->stream)); in vulkan_transfer_data_from_cuda() [all …]
|