# CAMERA_GET_FRAME_BYTES

## Definition

  `#include <twl/camera.h>`
  `#define CAMERA_GET_FRAME_BYTES(width, height) (CAMERA_GET_LINE_BYTES(width) * (height))`

## Description

Calculates the total size of the frame set with a `CAMERA_DmaRecv*` function. If the `CAMERA_SetTrimmingParams` function was called to set the width and height, those dimensions are specified as arguments. Otherwise, the dimensions set by a `CAMERA_I2CSize*` function are specified as arguments, as described in the function reference for `CAMERA_DmaRecv*`.

## See Also

`CAMERA_DmaRecv*, CAMERA_SetTrimmingParams, CAMERA_I2CSize*`

## Revision History

2008/01/15 Initial version.

CONFIDENTIAL