[media] vivid: add the kthread code that controls the video rate
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 25 Aug 2014 11:00:20 +0000 (08:00 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 2 Sep 2014 20:41:54 +0000 (17:41 -0300)
commit3f682ffcf957b556a7868decd5593d765ed3455d
tree43583f744f6bfe029b2eac499b5f7a55dd8ec13e
parent7bb70caa3bd59454285738b31f7b47e89fe62c1e
[media] vivid: add the kthread code that controls the video rate

Add the kthread handlers for video/vbi capture and video/vbi output.
These carefully control the rate at which frames are generated (video
capture) and accepted (video output). While the short-term jitter is
around the order of a jiffie, in the long term the rate matches the
configured framerate exactly.

The capture thread handler also takes care of the video looping and
of capture and overlay support. This is probably the most complex part
of this driver due to the many combinations of crop, compose and scaling
on the input and output, and the blending that has to be done if
overlay support is enabled as well.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/vivid/vivid-kthread-cap.c [new file with mode: 0644]
drivers/media/platform/vivid/vivid-kthread-cap.h [new file with mode: 0644]
drivers/media/platform/vivid/vivid-kthread-out.c [new file with mode: 0644]
drivers/media/platform/vivid/vivid-kthread-out.h [new file with mode: 0644]
This page took 0.025639 seconds and 5 git commands to generate.