# CAMERAOutput

## Definition

  `#include <twl/camera.h>`

      typedef enum {
          CAMERA_OUTPUT_YUV,
          CAMERA_OUTPUT_RGB
      } CAMERAOutput;

## Elements

CAMERA_OUTPUT_YUV | Sets the format to YUV4:2:2 (YCbCr).
CAMERA_OUTPUT_RGB | Sets the format to RGB5:5:5.

## Description

This is an enumerated type that is used to specify the camera's output data format.
Each of these data formats are output as follows.
YUV4:2:2(YCbCr)

Bits 31–24 | Bits 23–16 | Bits 15–8 | Bits 7–0
V (Cr) | Y [n+1 pixel] | U (Cb) | Y [n pixel]

RGB5:5:5

Bit 31 | Bits 30–26 | Bits 25–21 | Bits 20–16 | Bit 15 | Bits 14–10 | Bits 9–5 | Bits 4–0
Always 1. | Blue [n+1 pixel] | Green [n+1 pixel] | Red [n+1 pixel] | Always 1. | Blue [n pixel] | Green [n pixel] | Red [n pixel]

## Revision History

2007/11/14 Added descriptions of the data formats.
2007/11/09 Initial version.

CONFIDENTIAL