I mapped an
CUeglFrame from a
NvBufSurface as described here.
I have verified that the
CU_EGL_FRAME_TYPE_PITCH and that
CU_AD_FORMAT_UNSIGNED_INT8. This brings me to the conclusion, that I need to get the data from
I want to access the pPitch data, but I get a SIGSEGV as soon as I try to access it.
This is the code to access it egl_current_frame is the CUeglFrame variable used here:
g_print("Data 0: %d\n", static_cast<uint8_t *>(egl_current_frame.frame.pPitch));
Is there more documentation on how to access this data?
My goal is to use this data in a custom cuda kernel to do calculations on.