Hi all:
I have found that the timestamp with RAW data on DM365 is wrong, I test this with an IPNC, I had try to add debug code in videoCapture.c:
int VIDEO_captureTskRunIsifIn()
{
...
static unsigned int timestamp = 0;
...
if (streamId == 0)
{
printf("count=%d, timestamp=%lu, duraion=%lu\n", pBufInfo->count, pBufInfo->timestamp, pBufInfo->timestamp-timestamp);
timestamp = pBufInfo->timestamp;
}
pBufHeader->timestamp = pBufInfo->timestamp;
pBufHeader->frameNum = pBufInfo->count;
...
}
From the debug code we can find the timestamp is wrong, for example, we need cost 1000 milliseconds to got 30 RAW data, but in fact the duration may only 994 milliseconds for the 30 RAW data, and the difference would be very large after long run test.
This may cause streaming can't work under some case.
Anyone who can help on this?