]> Pileus Git - ~andy/linux/commit
[media] v4l2-common: add CVT and GTF detection functions
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 10 Aug 2012 09:11:12 +0000 (06:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Sep 2012 19:09:59 +0000 (16:09 -0300)
commitc61bd6a0e2a92009f3879457eeec75b5ad102303
tree267c448b50c3a0ee0515a838dfbcd109f98c0578
parentc2a667fa2b40ccb7d21a99ffae53610699a3102c
[media] v4l2-common: add CVT and GTF detection functions

These two helper functions detect whether the analog video timings detected
by the video receiver match the VESA CVT or GTF standards.

They basically do the inverse of the CVT and GTF modeline calculations.

This patch also adds a helper function that will determine the aspect ratio
based on the provided EDID values. This aspect ratio can be given to the GTF
helper function.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/v4l2-common.c
include/media/v4l2-common.h