v4l2: improve timestamp code
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 25 Apr 2012 07:41:46 +0000 (09:41 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 25 Apr 2012 07:41:46 +0000 (09:41 +0200)
commita473750350d60ed2f9076b85c9255ae44ae764cb
tree800b058cdc3c542342482475effdaf71a1cb7a27
parent46045316cef28e0d892bc5f319b8ca944f3d51cb
v4l2: improve timestamp code

Sample the pipeline clock and device clock closer to eachother to reduce jitter.
Don't subtract the frame duration from the timestamp when we can use the device
timestamps.
Assume a delay of 1 frame in read-write mode.
sys/v4l2/gstv4l2src.c