How to set the value to usrptr point of gpu_process in nvivafilter

Hi all
Recently, I want to use CUDA by nvivafilter, I read nvsample_cudaprocess source code and find gpu_process will do CUDA operation, I am confused and don’t know how to set my parameters to usrptr.

static void
gpu_process (EGLImageKHR image, void ** usrptr) {

… //CUDA operation
}

I was just find initialization of function pointers, do not know how to set parameters

extern “C” void
init (CustomerFunction * pFuncs)
{

pFuncs->fGPUProcess = gpu_process;
}

Hi,

You can find several sample for nvivafilter here:
https://devtalk.nvidia.com/default/topic/963123/jetson-tx1/video-mapping-on-jetson-tx1/post/4979740/#4979740
https://devtalk.nvidia.com/default/topic/978438/jetson-tx1/optimizing-access-to-image-data-acquired-with-nvcamerasrc/post/5026998/#5026998

Thanks.