]> 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)
commitb9e7895863a222d5f1d303b5787b9fc5bbe5057d
tree3f1e76ba7c3cb6b57cf99f089846124eb541f4fd
parent8203ce2fdb80f380c8cc81190a5489ba010c4370
[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