I have been experimenting with the cudaHistogram and the cudaBayerDemosaic examples in the tegra_multimedia_api code on my Jetson Xavier. I’m trying to get the timestamp and get acces to the pixel data on the planes.
If I use FrameConsumer::acquireFrame, and then cast the Frame to an IFrame, I can use getTime() to get the timestamp. However, I haven’t found any functions on the IFrame or IFrame2D interfaces that allow you to access the data - all I see is a way to get the fd for a buffer.
In the CUDA examples, I can use cudaEGLStreamConsumerAcquireFrame to pull an image from the EGL stream. I can map the cudaResource to a cudaArray, so I can access the data. However, I can’t see how I can get the timestamp using this method.
Any suggestions? I’m looking for a way to get the frame timestamp from the cudaEGLStreamComsumerAcquireFrame call (ex: cudaHistogram or cudaDebayerMosaic examples), OR, a way to access the pixel data and planes using the FrameConsumer/Frame/IFrame method.