pan smoothing and prediction
authorPaul Wisbey <p.wisbey@samsung.com>
Wed, 2 Apr 2014 12:44:53 +0000 (13:44 +0100)
committerPaul Wisbey <p.wisbey@samsung.com>
Thu, 3 Apr 2014 16:09:39 +0000 (17:09 +0100)
commit82f72f4a0bbf9a190d5e3e298206c8f6a0423206
tree5bc6f2f2a793e0c929fb44df356be5b659479ab1
parent213407cee3425b2b9061e4a46b52ff7ece78e525
pan smoothing and prediction

Rebase of this change:

This patch keeps track of a history of the the last 60 touches.
The time stamp of the update (which is a pretty regular 16.7ms),
queries the history for the touch point at the update timestamp
minus a constant (e.g. 16.7ms). The history returns a touch
point which is the linearly interpolated value between the two
nearest touches in the sample. Thus reflecting where the touch
would've been at fixed intervals of a video frame.

-- Reverted to just blending the last two touch video-frames
Appears that most of the problem is noise in the touch positions
rather than their alignment with the frame interval.

Signed-off-by: Paul Wisbey <p.wisbey@samsung.com>
dali/internal/event/events/pan-gesture-processor.cpp
dali/internal/update/gestures/scene-graph-pan-gesture.cpp
dali/internal/update/gestures/scene-graph-pan-gesture.h