OpenCV: NPPST Core

| OpenCV 3.4.2 Open Source Computer Vision

Functions
NPPST Core
Core functionality » OpenGL interoperability » CUDA-accelerated Computer Vision » Legacy support

## Functions
cudaStream_t | nppStGetActiveCUDAstream ()
cudaStream_t | nppStSetActiveCUDAstream (cudaStream_t cudaStream)

## Detailed Description

Basic functions for CUDA streams management.

## Function Documentation

## ◆ nppStGetActiveCUDAstream()

cudaStream_t nppStGetActiveCUDAstream | ( |  | ) |

Gets an active CUDA stream used by NPPST NOT THREAD SAFE

Returns
  Current CUDA stream

## ◆ nppStSetActiveCUDAstream()

cudaStream_t nppStSetActiveCUDAstream | ( | cudaStream_t | cudaStream | ) |

Sets an active CUDA stream used by NPPST NOT THREAD SAFE

Parameters

  cudaStream | [IN] cudaStream CUDA stream to become current

Returns
  CUDA stream used before