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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user