
#include <twl/camera.h>int CAMERA_GetMaxLinesRound(u16 width, u16 height);
| width | Width (in pixels) |
| height | Height (in pixels) |
Returns the maximum value that can be specified for lines in the CAMERA_SetTransferLines function to avoid fractions at the end of a frame.
As described in CAMERA_SetTransferLines(), if the line count and the height specified by a CAMERA_I2CSize* function or the CAMERA_SetTrimmingParams function are not divisible, a new DMA will be started synchronously with the start of a camera V-Blank and the odd amount remaining at the end of the frame will be transferred. In this case, the new DMA will be left running in the camera V-Blank. In order to avoid this, it is possible to find the maximum line count that will keep odd amounts from occurring.
CAMERA_SetTransferLines, CAMERA_I2CSize*, CAMERA_SetTrimmingParams
2007/11/14 Initial version.
CONFIDENTIAL