CAMERA_GetMaxLinesRound

Syntax

#include <twl/camera.h>

int CAMERA_GetMaxLinesRound(u16 width, u16 height);

Arguments

width Width (in pixels)
height Height (in pixels)

Return Values

Returns the maximum value that can be specified for lines in the CAMERA_SetTransferLines function to avoid fractions at the end of a frame.

Description

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.

See Also

CAMERA_SetTransferLines, CAMERA_I2CSize*, CAMERA_SetTrimmingParams

Revision History

2007/11/14 Initial version.


CONFIDENTIAL