| 54 | } |
| 55 | |
| 56 | CUstream NvOFCudaAPI::GetCudaStream(NV_OF_BUFFER_USAGE usage) { |
| 57 | CUstream stream = 0; |
| 58 | if (usage == NV_OF_BUFFER_USAGE_INPUT) { |
| 59 | stream = m_inputStream; |
| 60 | } else if ( |
| 61 | (usage == NV_OF_BUFFER_USAGE_OUTPUT) || |
| 62 | (usage == NV_OF_BUFFER_USAGE_COST) || (usage == NV_OF_BUFFER_USAGE_HINT)) { |
| 63 | stream = m_outputStream; |
| 64 | } |
| 65 | return stream; |
| 66 | } |
| 67 | |
| 68 | NvOFObj NvOFCuda::Create( |
| 69 | CUcontext cuContext, uint32_t nWidth, uint32_t nHeight, |
no outgoing calls
no test coverage detected