# CAMERA_GetBytesAtOnce

## Syntax

  `#include <twl/camera.h>`
  `u32 CAMERA_GetBytesAtOnce(u16 width);`

## Arguments

width | Width (in pixels)

## Return Values

Returns the one-time transfer size to specify to a `CAMERA_DmaRecv*` function for receiving data from the camera buffer.

## Description

This function is used to calculate the one-time transfer size to specify to a `CAMERA_DmaRecv*` function for receiving data from the camera buffer. If the `CAMERA_SetTrimmingParams` function is called to set the width, that width is specified as an argument. Otherwise, the width set by a `CAMERA_I2CSize*` function is specified as an argument, as described in the function reference for `CAMERA_DmaRecv*`. Although the transfer size may be calculated using the method described in the function reference for `CAMERA_DmaRecv*`, we recommend using this function unless there is a particular reason to do otherwise.

## See Also

`CAMERA_DmaRecv*, CAMERA_SetTrimmingParams, CAMERA_I2CSize*`

## Revision History

2008/01/15 Initial version.

CONFIDENTIAL