]> git.baikalelectronics.ru Git - kernel.git/commit
[media] V4L: mt9t112: fix broken cropping and scaling
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 3 Aug 2011 16:42:31 +0000 (13:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 20:28:19 +0000 (18:28 -0200)
commitd103fb029aeaf2911bcf8a3123fdae42343701ff
tree3f1e76ba7c3cb6b57cf99f089846124eb541f4fd
parent9024b2efa9aa7c6ba7d24386335ef7b3f63f5a17
[media] V4L: mt9t112: fix broken cropping and scaling

G_CROP, S_CROP, CROPCAP, G_FMT, and S_FMT functionality in the mt9t112
driver was broken on many occasions. This patch allows consistent
cropping for rectangles also larger than VGA and cleans up multiple
other issues in this area. It still doesn't add support for proper
scaling, using the sensor own scaler, so input window is still
always equal to the output frame.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mt9t112.c