diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-06-28 23:17:34 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-13 13:34:11 -0300 |
commit | fb66852d4c693d5159724aef2b0c5e956206940d (patch) | |
tree | b074921d2a2c55da3f539a79dea5458c565a39a2 /drivers/memory | |
parent | f91e5c0c5f39b2a5c0f1a66462665eddd7021d83 (diff) |
[media] tw686x: use a formula instead of two tables for div
Instead of using two tables to estimate the temporal decimation
factor, use a formula. This allows to get the closest fps, which
sounds better than the current tables.
Also, the current code doesn't store the real framerate.
This patch fixes the above issues.
[Ezequiel:
- introduce a TW686X_MAX_FPS macro for max_fps.
- use hweight_long instead of open coding the set bits count.]
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/memory')
0 files changed, 0 insertions, 0 deletions