1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Videoteleng Camera Preferences extension API |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MVTENGCAMERAPREFERENCES_H |
|
20 #define MVTENGCAMERAPREFERENCES_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <ecam.h> |
|
24 #include <ecamimageprocessing.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 // CONSTANTS |
|
31 const TUid KVtEngExtensionCameraPreferences = {0x10282814}; |
|
32 |
|
33 /** |
|
34 * Camera preferences extension API class. |
|
35 * |
|
36 * @lib videoteleng.lib |
|
37 * @since S60 v3.2 |
|
38 */ |
|
39 |
|
40 class MVtEngCameraPreferences |
|
41 { |
|
42 public: |
|
43 |
|
44 enum TColorTone |
|
45 { |
|
46 /** Normal colors. */ |
|
47 ENormal = CCamera::CCameraImageProcessing::EEffectNone, |
|
48 /** Sepial. */ |
|
49 ESepia = CCamera::CCameraImageProcessing::EEffectSepia, |
|
50 /** Black and White. */ |
|
51 EGrayscale = CCamera::CCameraImageProcessing::EEffectMonochrome, |
|
52 /** Inverted colors. */ |
|
53 ENegative = CCamera::CCameraImageProcessing::EEffectNegative |
|
54 }; |
|
55 |
|
56 enum TWhiteBalance |
|
57 { |
|
58 /** Automatically adjusted. */ |
|
59 EAuto = CCamera::EWBAuto, |
|
60 /** Normal daylight. */ |
|
61 EDaylight = CCamera::EWBDaylight, |
|
62 /** Overcast daylight. */ |
|
63 ECloudy = CCamera::EWBCloudy, |
|
64 /** Tungsten filament lighting. */ |
|
65 ETungsten = CCamera::EWBTungsten, |
|
66 /** Fluorescent bulb lighting. */ |
|
67 EFluorescent = CCamera::EWBFluorescent, |
|
68 /** Flash lighting. */ |
|
69 EFlash = CCamera::EWBFlash, |
|
70 /** High contrast daylight primarily snowy. */ |
|
71 ESnow = CCamera::EWBSnow, |
|
72 /** High contrast daylight primarily near the sea. */ |
|
73 EBeach = CCamera::EWBBeach, |
|
74 /** User configurable mode. */ |
|
75 EManual = CCamera::EWBManual, |
|
76 /** Shade. */ |
|
77 EShade = CCamera::EWBShade |
|
78 }; |
|
79 |
|
80 enum TBrightness |
|
81 { |
|
82 /** Automatically set brightness value*/ |
|
83 EAutomaticBrightness = KMinTInt |
|
84 }; |
|
85 |
|
86 enum TContrasts |
|
87 { |
|
88 /** Automatically set contrast value*/ |
|
89 EAutomaticContrast = KMinTInt |
|
90 }; |
|
91 |
|
92 /** |
|
93 * Gets current color tone value from camera |
|
94 * @param aColortone reference value for current color tone |
|
95 * @return Symbian error code |
|
96 */ |
|
97 virtual TInt GetColorTone( TColorTone& aColortone ) const = 0; |
|
98 |
|
99 /** |
|
100 * Gets all suported color tone values from camera |
|
101 * @param aSupportedColorTones reference value for supported colortone |
|
102 * values (a bit field) |
|
103 * @return Symbian error code |
|
104 */ |
|
105 virtual TInt GetSupportedColorTones( |
|
106 TUint32& aSupportedColorTones ) const = 0; |
|
107 |
|
108 /** |
|
109 * Gets current whitebalance value from camera |
|
110 * @param aWhiteBalance reference value for current whitebalance |
|
111 * @return Symbian error code |
|
112 */ |
|
113 virtual TInt GetWhiteBalance( |
|
114 TWhiteBalance& aWhiteBalance ) const = 0; |
|
115 |
|
116 /** |
|
117 * Gets all suported whitebalance values from camera |
|
118 * @param aWhiteBalance reference value for supported whitebalance |
|
119 * values (a bit field) |
|
120 * @return Symbian error code |
|
121 */ |
|
122 virtual TInt GetSupportedWhiteBalanceModes( |
|
123 TUint32& aWhiteBalance ) const = 0; |
|
124 |
|
125 /** |
|
126 * Gets current brightness value from camera |
|
127 * @param aBrightness reference value for current brightness |
|
128 * @return Symbian error code |
|
129 */ |
|
130 virtual TInt GetBrightness( TInt& aBrightness) const = 0; |
|
131 |
|
132 /** |
|
133 * Gets current contrast value from camera |
|
134 * @param aContrast reference value for current brightness |
|
135 * @return Symbian error code |
|
136 */ |
|
137 virtual TInt GetContrast( TInt& aContrast ) const = 0; |
|
138 |
|
139 }; |
|
140 |
|
141 #endif //MVTENGCAMERAPREFERENCES_H |
|
142 |
|