[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)
commit377c9ba772b0c3f848c12810231eb103aad473eb
tree3f1e76ba7c3cb6b57cf99f089846124eb541f4fd
parentd839fe17a13562897e52e29c13d09ac0435dee85
[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