1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - camera - include
3   File:     types.h
4 
5   Copyright 2007-2009 Nintendo.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Date:: 2009-06-04#$
14   $Rev: 10698 $
15   $Author: okubata_ryoma $
16  *---------------------------------------------------------------------------*/
17 #ifndef TWL_CAMERA_TYPES_H_
18 #define TWL_CAMERA_TYPES_H_
19 
20 #define CAMERA_EXPOSURE_MIN    -5
21 #define CAMERA_EXPOSURE_MAX     6   // exclude
22 #define CAMERA_EXPOSURE_NUMS    (CAMERA_EXPOSURE_MAX - CAMERA_EXPOSURE_MIN)
23 
24 #define CAMERA_SHARPNESS_MIN    -3
25 #define CAMERA_SHARPNESS_MAX     6  // exclude
26 #define CAMERA_SHARPNESS_NUMS   (CAMERA_SHARPNESS_MAX - CAMERA_SHARPNESS_MIN)
27 
28 #ifdef  __cplusplus
29 extern "C" {
30 #endif
31 
32 /*===========================================================================*/
33 
34 typedef enum
35 {
36     CAMERA_SELECT_NONE  = 0,
37     CAMERA_SELECT_IN    = (1<<0),
38     CAMERA_SELECT_OUT   = (1<<1),
39     CAMERA_SELECT_BOTH  = (CAMERA_SELECT_IN|CAMERA_SELECT_OUT)
40 }
41 CAMERASelect;
42 
43 typedef enum
44 {
45     CAMERA_CONTEXT_A     = (1<<0),
46     CAMERA_CONTEXT_B     = (1<<1),
47     CAMERA_CONTEXT_BOTH  = (CAMERA_CONTEXT_A|CAMERA_CONTEXT_B)
48 }
49 CAMERAContext;
50 
51 typedef enum
52 {
53     CAMERA_SIZE_VGA,
54     CAMERA_SIZE_QVGA,
55     CAMERA_SIZE_QQVGA,
56     CAMERA_SIZE_CIF,
57     CAMERA_SIZE_QCIF,
58     CAMERA_SIZE_DS_LCD,
59     CAMERA_SIZE_DS_LCDx4,
60 
61     CAMERA_SIZE_MAX
62 }
63 CAMERASize;
64 
65 typedef enum
66 {
67     CAMERA_EFFECT_NONE,
68     CAMERA_EFFECT_MONO,
69     CAMERA_EFFECT_SEPIA,
70     CAMERA_EFFECT_NEGATIVE,
71     CAMERA_EFFECT_NEGAFILM,
72     CAMERA_EFFECT_SEPIA01,
73 
74     CAMERA_EFFECT_MAX
75 }
76 CAMERAEffect;
77 
78 typedef enum
79 {
80     CAMERA_FLIP_NONE,
81     CAMERA_FLIP_VERTICAL,
82     CAMERA_FLIP_HORIZONTAL,
83     CAMERA_FLIP_REVERSE,
84 
85     CAMERA_FLIP_MAX
86 }
87 CAMERAFlip;
88 
89 typedef enum
90 {
91     CAMERA_PHOTO_MODE_NORMAL,
92     CAMERA_PHOTO_MODE_PORTRAIT,
93     CAMERA_PHOTO_MODE_LANDSCAPE,
94     CAMERA_PHOTO_MODE_NIGHTVIEW,
95     CAMERA_PHOTO_MODE_LETTER,
96 
97     CAMERA_PHOTO_MODE_MAX
98 }
99 CAMERAPhotoMode;
100 
101 typedef enum
102 {
103     CAMERA_WHITE_BALANCE_AUTO,
104 
105     CAMERA_WHITE_BALANCE_3200K,
106     CAMERA_WHITE_BALANCE_4150K,
107     CAMERA_WHITE_BALANCE_5200K,
108     CAMERA_WHITE_BALANCE_6000K,
109     CAMERA_WHITE_BALANCE_7000K,
110 
111     CAMERA_WHITE_BALANCE_MAX,
112 
113     // alias
114     CAMERA_WHITE_BALANCE_NORMAL                     = CAMERA_WHITE_BALANCE_AUTO,
115     CAMERA_WHITE_BALANCE_TUNGSTEN                   = CAMERA_WHITE_BALANCE_3200K,
116     CAMERA_WHITE_BALANCE_WHITE_FLUORESCENT_LIGHT    = CAMERA_WHITE_BALANCE_4150K,
117     CAMERA_WHITE_BALANCE_DAYLIGHT                   = CAMERA_WHITE_BALANCE_5200K,
118     CAMERA_WHITE_BALANCE_CLOUDY                     = CAMERA_WHITE_BALANCE_6000K,
119     CAMERA_WHITE_BALANCE_HORIZON                    = CAMERA_WHITE_BALANCE_6000K,
120     CAMERA_WHITE_BALANCE_SHADE                      = CAMERA_WHITE_BALANCE_7000K
121 }
122 CAMERAWhiteBalance;
123 
124 typedef enum
125 {
126     CAMERA_FRAME_RATE_15,
127     CAMERA_FRAME_RATE_15_TO_5,
128     CAMERA_FRAME_RATE_15_TO_2,
129     CAMERA_FRAME_RATE_8_5,
130     CAMERA_FRAME_RATE_5,
131     CAMERA_FRAME_RATE_20,
132     CAMERA_FRAME_RATE_20_TO_5,
133     CAMERA_FRAME_RATE_30,
134     CAMERA_FRAME_RATE_30_TO_5,
135     CAMERA_FRAME_RATE_15_TO_10,
136     CAMERA_FRAME_RATE_20_TO_10,
137     CAMERA_FRAME_RATE_30_TO_10,
138 
139     CAMERA_FRAME_RATE_MAX
140 }
141 CAMERAFrameRate;
142 
143 typedef enum
144 {
145     CAMERA_TEST_PATTERN_DISABLED,
146     CAMERA_TEST_PATTERN_COLOR_BAR,
147     CAMERA_TEST_PATTERN_NOISE,
148 
149     CAMERA_TEST_PATTERN_MAX
150 }
151 CAMERATestPattern;
152 
153 /*===========================================================================*/
154 
155 #ifdef  __cplusplus
156 }          /* extern "C" */
157 #endif
158 
159 #endif /* TWL_CAMERA_TYPES_H_ */
160 
161 /*---------------------------------------------------------------------------*
162   End of file
163  *---------------------------------------------------------------------------*/
164