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–24Bits 23–16Bits 15–8Bits 7–0
V (Cr)Y [n+1 pixel]U (Cb)Y [n pixel]

RGB5:5:5
Bit 31Bits 30–26Bits 25–21Bits 20–16Bit 15Bits 14–10Bits 9–5Bits 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