CAM_STATE

Syntax

#include <cafe/camera/camera.h>

typedef enum _CAM_STATE 
{
    CAMERA_DEVICE_POWER_MODE = 0,        
    CAMERA_AUTO_EXPOSURE_MODE,           
    CAMERA_AUTO_EXPOSURE_TIME_ABSOLUTE,  
    CAMERA_BRIGHTNESS, 
    CAMERA_CONTRAST, 
    CAMERA_GAIN, 
    CAMERA_POWER_LINE_FREQUENCY,         
    CAMERA_HUE, 
    CAMERA_SATURATION, 
    CAMERA_SHARPNESS, 
    CAMERA_GAMMA,
    CAMERA_DIGITAL_MULTIPLIER_STEP,      
    CAMERA_DIGITAL_MULTIPLIER_LIMIT,     
    CAMERA_WHITE_BALANCE_COMPONENT,      
    CAMERA_WHITE_BALANCE_COMPONENT_AUTO,
    CAMERA_DRC_CONNECTION_STATE,
    CAMERA_GENERATE_KEY_FRAME,
    CAMERA_STATE_NUM
} CAM_STATE; 

Elements

CAMERA_DEVICE_POWER_MODE Not supported.
CAMERA_AUTO_EXPOSURE_MODE Auto exposure mode control.
0x02 : Auto Mode (auto exposure time, auto iris)
0x04 : Shutter Priority Mode (manual exposure time, auto iris).
CAMERA_AUTO_EXPOSURE_TIME_ABSOLUTE Manual exposure time setting. To enable this feature, CAMERA_AUTO_EXPOSURE_MODE must be set. The minimum value 1 indicates 100µsec, and the maximum value 666 indicates 66.6 msec. The default is set to the maximum 66.6msec in both 30/15 FPS operations.
CAMERA_BRIGHTNESS Brightness value increases or decreases, depending on the input signed value.
The range is -255←→255. The default value is 0.
CAMERA_CONTRAST Contrast increased/decreased depending on input signed value. The range is -32←→32 and default value is 0.
CAMERA_GAIN If the value is the max 112, auto gain control is enabled. Otherwise, manual gain control (112 stages: 0 — 111) is used.
CAMERA_POWER_LINE_FREQUENCY This parameter is used to prevent flickering. Three setting may be used
0x00 : disable
0x01 : 50Hz
0x02 : 60Hz
CAMERA_HUE Hue control. The values may be set from -180 to 180 degrees. Although the minimum parameter unit is 1/100 degree, in terms of register settings, it should be set in increments of 1 degree.
CAMERA_SATURATION Saturation increases as the number goes up. The lower 1-byte is for V (vertical line) and next 1-byte is for U (horizontal line). It ranges from 0 to 255. The default value is 64, and the maximum value indicates 100% saturation (maximum vividness). U and V parameters may be controlled separately. But, U and V are usually assumed to be same value.
CAMERA_SHARPNESS The edge becomes more emphasized as it gets closer to MAX value. The values can be set from 1 to 7. Default value is 3.
CAMERA_GAMMA DRC supports from 0.35 to 0.60 in increments of 0.05. The default is set to 0.45.
NOTE:
If the user changes the gamma value when the camera status is open, noise occasionally appears on the GamePad (DRC) screen for a short period of time. This is a known hardware issue, work is being performed to find a solution to this issue. It is recommended that the user change gamma value only when the camera image is not displayed on-screen.
CAMERA_DIGITAL_MULTIPLIER_STEP Not supported.
CAMERA_DIGITAL_MULTIPLIER_LIMIT Not supported.
CAMERA_WHITE_BALANCE_COMPONENT White balance increases as the number goes up. The lower 2-bytes are for white balance blue and the upper 2-bytes are for white balance red. The range for each component is 1 — 255, and the default value is 64. Auto/Manual switch for white balance (red and blue) is controlled by CAMERA_WHITE_BALANCE_COMPONENT_AUTO.
CAMERA_WHITE_BALANCE_COMPONENT_AUTO White balance component mode control.
0 : automatic adjustment is disable
1 : automatic adjustment is enable
CAMERA_DRC_CONNECTION_STATE Supported; 1: DRC Attached, 0: DRC Detached
CAMERA_GENERATE_KEY_FRAME Not supported.

Description

CAM_STATE enumerates all of the possible camera states.

NOTE:
In the table above, not all of these states are supported by CAMGetState, CAMSetState and CAMGetStateInfo functions.

See Also

CAMGetState
CAMGetStateInfo
CAMSetState

Revision History

2013/05/08 Automated cleanup pass.
2012/04/03 Initial version.


CONFIDENTIAL