Hello,
I work with eCon System example of their camera and I realized that on their sample, the text also flashes.
Next step, integrate TX2. So, I can not waste more time on this feature.
MMAPI uses Xlib functions to draw text. In the future, on TX2, maybe I’m looking for the OpenGL function used.
Hi,
You need to sync buffers to host or device. Please check
/**
* This method must be used for hw memory cache sync for the CPU.
* @param[in] dmabuf_fd DMABUF FD of buffer.
* @param[in] plane video frame plane.
* @param[in] pVirtAddr Virtual Addres pointer of the mem mapped plane.
*
* @returns 0 for success, -1 for failure.
*/
int NvBufferMemSyncForCpu (int dmabuf_fd, unsigned int plane, void **pVirtAddr);
/**
* This method must be used for hw memory cache sync for device.
* @param[in] dmabuf_fd DMABUF FD of buffer.
* @param[in] plane video frame plane.
* @param[in] pVirtAddr Virtual Addres pointer of the mem mapped plane.
*
* @returns 0 for success, -1 for failure.
*/
int NvBufferMemSyncForDevice (int dmabuf_fd, unsigned int plane, void **pVirtAddr);
Syncing the buffers did not work. The sample app 00_video_decode also shows flicker when displaying text. It even has calls to sync the buffers when saving to an out file. I added in other calls with no luck.
Doesn’t matter where you put it. I’ve put it before and after every call to NvEGLRenderer::render in 00_video_decode and in the test app I mentioned earlier. Run it at fullscreen and the text flickers.