]> git.baikalelectronics.ru Git - kernel.git/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)
commit552653eb4901a834aaa2989c5a24c2439ca1e3ec
tree267c448b50c3a0ee0515a838dfbcd109f98c0578
parenta090bd5099a3b84c953b4a57985dc921d8407029
[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