Function nvfbc_sys::NvFBCCreateCaptureSession
source · [−]pub unsafe extern "C" fn NvFBCCreateCaptureSession(
sessionHandle: NVFBC_SESSION_HANDLE,
pParams: *mut NVFBC_CREATE_CAPTURE_SESSION_PARAMS
) -> NVFBCSTATUSExpand description
\brief Creates a capture session for an FBC client.
This function starts a capture session of the desired type (system memory, video memory with CUDA interop, or H.264 compressed frames in system memory).
Not all types are supported on all systems. Also, it is possible to use NvFBC without having the CUDA library. In this case, requesting a capture session of the concerned type will return an error.
After this function returns, the display driver will start generating frames that can be captured using the corresponding API call.
\param [in] sessionHandle FBC session handle. \param [in] pParams ::NVFBC_CREATE_CAPTURE_SESSION_PARAMS
\return ::NVFBC_SUCCESS \n ::NVFBC_ERR_INVALID_HANDLE \n ::NVFBC_ERR_API_VERSION \n ::NVFBC_ERR_BAD_REQUEST \n ::NVFBC_ERR_CONTEXT \n ::NVFBC_ERR_INVALID_PARAM \n ::NVFBC_ERR_OUT_OF_MEMORY \n ::NVFBC_ERR_X \n ::NVFBC_ERR_GLX \n ::NVFBC_ERR_GL \n ::NVFBC_ERR_CUDA \n ::NVFBC_ERR_MUST_RECREATE \n ::NVFBC_ERR_INTERNAL