The lantency of capturing camera

How can I get the latency of Orin when capturing MIPI?

hello sqalex,

may I have more details, for instance, which part of latency you’re asking for?
besides, there’s kpi options in the argus_camera sample application, you may toggle the options to obtain some results.

Hello JerryChang,
thanks to your reply.

I am using the V4L2 API for capturing. Now I want to know the capture latency. What Orin-supported methods are available for me to determine the capture latency of the Tegra VI module?

you may dig into VI driver for checking.
for instance,
$public_sources/kernel_src/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi5_fops.c
here’s function for sensor start streaming,

static int vi5_channel_start_streaming(struct vb2_queue *vq, u32 count)
{
..
                ret = vi5_channel_start_kthreads(chan);

here’s vb2_buffer_done for sending frames to user-space.

static void vi5_release_buffer(..)
...
        vb2_buffer_done(&vbuf->vb2_buf, buf->vb2_state);

Thank you JerryChang,I will try it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.