my camera has 4 contexts, which I can configure them individually and get the raw image from each context. Theoretically The first image should be from context0, and the raw data should also beginn with the first image from context0. But in face often the very first image in raw data is the image from context1, the image from context0 is just missing.
please have a look at this video, the first image should be the darkst one with lowst exposure time from context0, but in the raw data the first image is the brightest one with highst exposure time from context3.
The context0 always lost or one the first context0 lost?
If only the first context0 lost that could be the sensor streaming on timing before the CSI/VI ready.
Problem resolved by adding delay:
in file: tegracam_v4l2.c
in function: static int v4l2sd_stream(struct v4l2_subdev *sd, int enable)
after line: tc_dev->is_streaming = true;