Hey Laurent,

Attached is a changeset that will sync the computer's clock to the camera 
clock. The final result is that uvc_buffer.buf.timestamp is adjusted to 
compensate for the latency that happens on the camera and the latency that 
happens in the USB stack. It seems to work quite nicely. With the patch, I get 
very even timestamp intervals. In fact it's so accurate that I see a 9 
microsecond/frame drift between my camera clock and my computer clock.

There is still +-105 microseconds of latency that could be tweaked out. But for 
now this is should be accurate enough for even the most demanding 
application... such as watching TV, DVDs, etc. :-) I suspect the remaining 
latency is coming from the interrupt handler and USB stack. Getting that out 
would require that I get down into the HCD code.

Have a look and let me know what you think.

Jacob Fehr
SMART Technologies ULC

Attachment: 13110-4617ec8de827.gz
Description: 13110-4617ec8de827.gz

_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to