]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00237682-3: mxc_v4l2_capture: ov5640: support scaling modes
authorSheng Nan <b38800@freescale.com>
Tue, 8 Jan 2013 09:32:25 +0000 (17:32 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:50 +0000 (08:35 +0200)
commita243f65132a9cf777070f5455fb310ce3e2926bf
treed7a8b1db9d23d7b9570e21766417c1f16df9f070
parent4bdd442c7f0213428ab3fd4690bbf9176d6b6b8e
ENGR00237682-3: mxc_v4l2_capture: ov5640: support scaling modes

The method for change between scaling and subsampling mode is different
from ov5640_mipi.
(image bigger than 1280*960 is scaling mode, smaller is subsampling).

According to OV5640 Auto Focus Camera Module Application Notes
(with DVP Interface) R2.14.pdf,
change back from QSXGA to VGA, don't need to do exposure calculation.

According to the test result, if we do exposure calculation when change
back from scaling to subsampling mode, the image would be dark.

So the method is:
Change to scaling mode, go through exposure calcuation.
Change to or back to subsampling mode, change mode directly.

Supported mode:
- QSXGA@7.5fps
- 1080P@7.5fps

Can't make 1080P works at 15fps. Here is a reply from ov fae:
because of scaling down, max frame for 1080P is the same as 5M, both are 15fps.
so if 5M can runs up to 7.5fps on your demo, then 1080P is the same 7.5fps max.

Signed-off-by: Sheng Nan <b38800@freescale.com>
drivers/media/video/mxc/capture/ov5640.c