Hi,
We test video latency on jetson-tx2 use multimedia api, it turns out the latency of the video is about 70ms. The data stream is called NVARGUS API for video capture(1080p@30fps) and called EGL for display on the LCD screen.
CameraStream* pCamStream = (CameraStream*)data;
Ins_OsalMsgHndl msgHndl = NULL;
OSAL_BOOL quit = FALSE;
IBufferOutputStream* stream = NULL;
int64_t delta = pCamStream->parent->getDeltaTime();
LOGDBG(TAG, "capture task%d crated, waiting startup msg.", pCamStream->streamId);
Ins_OsalTaskWaitMsg(&pCamStream->task, &msgHndl);
stream = interface_cast<IBufferOutputStream>(pCamStream->outputStream.get());
if (!stream) {
LOGERR(TAG, "capture task%d got stream failed, quit");
return NULL;
}
Buffer* buffer = stream->acquireBuffer();
DmaBuffer *dmabuf = DmaBuffer::fromArgusBuffer(buffer);
int dmabuf_fd = dmabuf->getFd();
pCamStream->renderer->render(dmabuf_fd);
have any suggestions?