I’m really new to CUDA and such low level API, so would need to ask some help to get around.
Im trying to overlay text on CUeglFrame using the nvivafilter (my goal is very simple: white text on semi transparent light grey background over live video).
I started from an example from “nvsample_cudaprocess” in “source_release.tbz2” found here: GStreamer videocuda and nvivafilter plugins source code
In the code in case of CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR format it gets a reference to the CUeglFrame’s frame.pPitch and then manipualtes a given pixel like this:
char * pElement = (char*)pDevPtr + row * pitch + col * 2; pElement = 0; pElement = 0;
Based on some documentation I found here:
I guess these attributes are the U and V components of a pixel represented in YUV format. But I was not able to find much more information and whats even more worrisome for me is that there is no ‘frame’ property in the CUeglFrame struct based on the documentation.
Is there any more descriptive documentation about this topic or a developer guide / some kind of tutorial? Or maybe some example code out there?
Thanks in advance!