1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Allow access to CUDA memory and stream pointers for interoperability.

This commit is contained in:
Peter Würtz
2020-02-04 18:25:48 +01:00
parent 43a907ddda
commit 53c0189ed7
4 changed files with 29 additions and 0 deletions
+9
View File
@@ -535,6 +535,15 @@ Stream& cv::cuda::Stream::Null()
#endif
}
void* cv::cuda::Stream::cudaPtr() const
{
#ifndef HAVE_CUDA
return nullptr;
#else
return impl_->stream;
#endif
}
cv::cuda::Stream::operator bool_type() const
{
#ifndef HAVE_CUDA