camerauis/cameraapp/generic/camerauiconfigmanager/inc/CameraDynamicSettings.hrh
changeset 0 1ddebce53859
child 1 f5ec9446e5bf
equal deleted inserted replaced
-1:000000000000 0:1ddebce53859
       
     1 /*
       
     2 * Copyright (c) 2007-2009 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:  header which contains contants and enums definitions
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAMERADYNAMICSETTINGS_HRH
       
    20 #define CAMERADYNAMICSETTINGS_HRH
       
    21 
       
    22 #include <e32keys.h>
       
    23 #include <ecam.h>
       
    24 #include "CamSettings.hrh"
       
    25 #include "CamSettingsInternal.hrh"
       
    26 
       
    27 //Constants
       
    28 const TInt KCamLastSettingItem = -9999;
       
    29 
       
    30 
       
    31 // Camera UI dynamic setting items
       
    32 
       
    33 enum TCamDynamicSettings
       
    34     {
       
    35     ECamDynamicSettingsMin,
       
    36 
       
    37     // settings with no configured setting items
       
    38     ECamDynamicSettingSecondaryCamera,
       
    39     ECamDynamicSettingDSAViewFinder,
       
    40     ECamDynamicSettingLensCover,
       
    41     ECamDynamicSettingXenonFlash,
       
    42     ECamDynamicSettingExtLightSensitivity,
       
    43     ECamDynamicSettingFaceTracking,
       
    44     ECamDynamicSettingOpticalJoyStick,
       
    45     ECamDynamicSettingOneClickUpload,
       
    46     ECamDynamicSettingVideoLight,
       
    47     ECamDynamicSettingAutoFocus,
       
    48     ECamDynamicSettingVideoStabilization,
       
    49     ECamDynamicSettingOrientationSensor,
       
    50     ECamDynamicSettingLocation,
       
    51     ECamDynamicSettingKeyLockWatcher,
       
    52     ECamDynamicSettingExtDigitalZoom,
       
    53     ECamDynamicSettingPhoto,
       
    54     ECamDynamicSettingPublishZoomState,
       
    55     ECamDynamicSettingAutofocusSetInHyperfocalAtStartup,
       
    56     ECamDynamicSettingRequiredRamMemory,
       
    57     ECamDynamicSettingCriticalLevelRamMemory,
       
    58     ECamDynamicSettingRequiredRamMemoryFocusGained,
       
    59     ECamDynamicSettingCriticalLevelRamMemoryFocusGained,
       
    60     ECamDynamicSetting2ndCameraOrientation, 
       
    61     ECamDynamicSettingUIOrientationOverride,
       
    62     ECamDynamicSettingThumbnailManagerAPI,
       
    63     ECamDynamicSettingBurstMode,
       
    64     ECamDynamicSettingContinuousAF, 
       
    65     // Primary/secondary camera capture keys
       
    66     ECamDynamicSettingPCCaptureKeys,
       
    67     ECamDynamicSettingSCCaptureKeys,
       
    68     ECamDynamicSettingPCAutoFocusKeys,
       
    69     ECamDynamicSettingSCAutoFocusKeys,
       
    70 
       
    71     // settings with configured setting items
       
    72     ECamDynamicSettingWhiteBalance,
       
    73     ECamDynamicSettingColorTone,
       
    74     ECamDynamicSettingEV,
       
    75     ECamDynamicSettingFlashMode,
       
    76     ECamDynamicSettingLightSensitivity,
       
    77     ECamDynamicSettingSharpness,
       
    78     ECamDynamicSettingContrast,
       
    79     ECamDynamicSettingBrightness,
       
    80 
       
    81     // primary and secondary camera zoom-in and zoom-out settings
       
    82     ECamDynamicSettingPCZoomIn,
       
    83     ECamDynamicSettingPCZoomOut,
       
    84     ECamDynamicSettingSCZoomIn,
       
    85     ECamDynamicSettingSCZoomOut,
       
    86     
       
    87     // primary and secondary camera still/video zoom ( digital, extended & optical ) limits
       
    88     //Image/Video based on supported resolutions
       
    89     ECamDynamicSettingMaxDigitalZoomLimits,
       
    90     ECamDynamicSettingMaxExtendedZoomLimits,
       
    91     ECamDynamicSettingMaxOpticalZoomLimits,
       
    92     ECamDynamicSettingZoomLAF,
       
    93     
       
    94     // image scene mode and scene specific setting cr keys
       
    95     ECamDynamicSettingImageSceneModeAuto,
       
    96     ECamDynamicSettingImageSceneModeUser,
       
    97     ECamDynamicSettingImageSceneModeMacro,
       
    98     ECamDynamicSettingImageSceneModePotrait,
       
    99     ECamDynamicSettingImageSceneModeScenery,
       
   100     ECamDynamicSettingImageSceneModeSports,
       
   101     ECamDynamicSettingImageSceneModeNight,
       
   102     ECamDynamicSettingImageSceneModeNightPotrait,
       
   103     
       
   104     ECamDynamicSettingBurstFileSizeEstimateFactor,
       
   105     
       
   106     ECamDynamicSettingZoomDelays,
       
   107     
       
   108     // video scene mode and scene specific setting cr keys
       
   109     ECamDynamicSettingVideoSceneModeNormal,
       
   110     ECamDynamicSettingVideoSceneModeNight,
       
   111     ECamDynamicSettingVideoSceneModeLowLight,
       
   112     
       
   113     // capture tone related enums
       
   114     ECamDynamicSettingCaptureToneDelaySupport,
       
   115     ECamDynamicSettingCaptureToneDelayValue,
       
   116 
       
   117     ECamDynamicSettingsMax
       
   118     };
       
   119 
       
   120 
       
   121 // Strings per settings and the order of the strings should be matched
       
   122 // exactly to the order of the enum's defined in the enum arrays for
       
   123 // each setting. 
       
   124 
       
   125 //And "Strings" are defined according to the settings from ecam values.
       
   126 
       
   127 /*
       
   128 * Color tone enums and strings
       
   129 */
       
   130 
       
   131 // Photo scene settings 
       
   132 const TInt KCamColorToneEnums[] =
       
   133   {
       
   134     { ECamColourFilterColour },
       
   135     { ECamColourFilterBlackAndWhite },
       
   136     { ECamColourFilterSepia },
       
   137     { ECamColourFilterNegative },
       
   138     { ECamColourFilterVivid },
       
   139     { KCamLastSettingItem }
       
   140   };
       
   141 
       
   142 const TUint16* const KCamColorToneStrings[] =
       
   143   {
       
   144   (const TUint16* const)_S16("EEffectNone"),
       
   145   (const TUint16* const)_S16("EEffectMonochrome"),
       
   146   (const TUint16* const)_S16("EEffectSepia"),
       
   147   (const TUint16* const)_S16("EEffectNegative"),
       
   148   (const TUint16* const)_S16("EEffectVivid")
       
   149   };
       
   150 
       
   151 
       
   152 /*
       
   153 * White balance enums and strings
       
   154 */
       
   155 
       
   156 const TInt KCamWhiteBalanceEnums[] =
       
   157   {
       
   158     { ECamWhiteBalanceAWB },
       
   159     { ECamWhiteBalanceDaylight },
       
   160     { ECamWhiteBalanceCloudy },
       
   161     { ECamWhiteBalanceTungsten },
       
   162     { ECamWhiteBalanceFlourescent },
       
   163     { KCamLastSettingItem }
       
   164   };
       
   165 
       
   166 const TUint16* const KCamWhiteBalanceStrings[] =
       
   167   {
       
   168   ( const TUint16* const )_S16("EWBAuto"),
       
   169   ( const TUint16* const )_S16("EWBDaylight"),
       
   170   ( const TUint16* const )_S16("EWBCloudy"),
       
   171   ( const TUint16* const )_S16("EWBTungsten"),
       
   172   ( const TUint16* const )_S16("EWBFluorescent")
       
   173   };
       
   174 
       
   175 
       
   176 /*
       
   177 * Flash mode setting enums and corresponding strings
       
   178 * order of enums and strings "should" match
       
   179 */
       
   180 const TInt KCamFlashModeEnums[] =
       
   181   {
       
   182     { ECamFlashAuto       },
       
   183     { ECamFlashForced     },
       
   184     { ECamFlashAntiRedEye },
       
   185     { ECamFlashOff        },
       
   186     { KCamLastSettingItem }
       
   187   };
       
   188 
       
   189 const TUint16* const KCamFlashModeStrings[] =
       
   190   {
       
   191   (const TUint16* const)_S16("EFlashAuto"),
       
   192   (const TUint16* const)_S16("EFlashForced"),
       
   193   (const TUint16* const)_S16("EFlashRedEyeReduce"),
       
   194   (const TUint16* const)_S16("EFlashNone")
       
   195   };
       
   196 
       
   197 
       
   198 
       
   199 
       
   200 /*
       
   201  * Scene mode setting enums; and corresponding strings
       
   202  * order of enums and strings "should" match
       
   203  */
       
   204  const TInt KCamSceneModeEnums[] =
       
   205     {
       
   206       { ECamSceneAuto       },
       
   207       { ECamSceneUser       },
       
   208       { ECamSceneMacro      },
       
   209       { ECamScenePortrait   },
       
   210       { ECamSceneScenery    },
       
   211       { ECamSceneSports     },
       
   212       { ECamSceneNight      },
       
   213       { ECamSceneNightPortrait },
       
   214       { ECamSceneNormal },
       
   215       { ECamSceneLowLight },
       
   216       // Exposure modes for each scene
       
   217       { ECamSceneAEModeAuto },
       
   218       { ECamSceneAEModeNight },
       
   219       { ECamSceneAEModeBacklight },
       
   220       { ECamSceneAEModeCenter },
       
   221       { ECamSceneAEModeSports },
       
   222       // AF modes for each scene
       
   223       { ECamSceneAFModeMacro      },
       
   224       { ECamSceneAFPortrait       },
       
   225       { ECamSceneAFModeNormal     },
       
   226       { ECamSceneAFModeInfinity   },
       
   227       { ECamSceneAFModeHyperfocal },
       
   228       { ECamSceneAFModeContinuous },
       
   229       // flash mode
       
   230       { ECamFlashAuto       },
       
   231       { ECamFlashForced     },
       
   232       { ECamFlashAntiRedEye },
       
   233       { ECamFlashOff        },
       
   234       // white balance ecam
       
   235       { ECamWhiteBalanceAWB },
       
   236       { ECamWhiteBalanceDaylight },
       
   237       { ECamWhiteBalanceCloudy },
       
   238       { ECamWhiteBalanceTungsten },
       
   239       { ECamWhiteBalanceFlourescent },
       
   240       // light sensitivity enums
       
   241       { ECamLightSensitivityAuto },
       
   242       { ECamLightSensitivityLow },
       
   243       { ECamLightSensitivityLowMed },
       
   244       { ECamLightSensitivityMed },
       
   245       { ECamLightSensitivityMedHigh },
       
   246       { ECamLightSensitivityHigh },
       
   247       // sharpness modes that ui supports
       
   248       { ECamImageSharpnessNorm },
       
   249       { ECamImageSharpnessSoft },
       
   250       { ECamImageSharpnessHard },
       
   251       // contrast modes that ui supports
       
   252       { ECamContrastNorm },
       
   253       { ECamContrastPlus },
       
   254       { ECamContrastNeg },
       
   255       { KCamLastSettingItem }
       
   256     }; 
       
   257  
       
   258 /*
       
   259 * Scene mode specific strings
       
   260 */
       
   261 const TUint16* const KCamSceneModeStrings[] =
       
   262   {
       
   263   // possible scene modes
       
   264   (const TUint16* const)_S16("ECamSceneAuto"),
       
   265   (const TUint16* const)_S16("ECamSceneUser"),
       
   266   (const TUint16* const)_S16("ECamSceneMacro"),
       
   267   (const TUint16* const)_S16("ECamScenePortrait"),
       
   268   (const TUint16* const)_S16("ECamSceneScenery"),
       
   269   (const TUint16* const)_S16("ECamSceneSports"),
       
   270   (const TUint16* const)_S16("ECamSceneNight"),
       
   271   (const TUint16* const)_S16("ECamSceneNightPortrait"),
       
   272   (const TUint16* const)_S16("ECamSceneNormal"),
       
   273   (const TUint16* const)_S16("ECamSceneLowLight"),
       
   274   // possible exposure modes
       
   275   (const TUint16* const)_S16("EExposureAuto"),
       
   276   (const TUint16* const)_S16("EExposureNight"),
       
   277   (const TUint16* const)_S16("EExposureBacklight"),
       
   278   (const TUint16* const)_S16("EExposureCenter"),
       
   279   (const TUint16* const)_S16("EExposureSport"),
       
   280   // possible AF mode for each specific scene
       
   281   (const TUint16* const)_S16("ECamSceneAFModeMacro"),
       
   282   (const TUint16* const)_S16("ECamSceneAFPortrait"),
       
   283   (const TUint16* const)_S16("ECamSceneAFModeNormal"),
       
   284   (const TUint16* const)_S16("ECamSceneAFModeInfinity"),
       
   285   (const TUint16* const)_S16("ECamSceneAFModeHyperfocal"),
       
   286   (const TUint16* const)_S16("ECamSceneAFModeContinuous"),
       
   287   //possible flash modes
       
   288   (const TUint16* const)_S16("EFlashAuto"),
       
   289   (const TUint16* const)_S16("EFlashForced"),
       
   290   (const TUint16* const)_S16("EFlashRedEyeReduce"),
       
   291   (const TUint16* const)_S16("EFlashNone"),
       
   292   // white balance strings
       
   293   ( const TUint16* const )_S16("EWBAuto"),
       
   294   ( const TUint16* const )_S16("EWBDaylight"),
       
   295   ( const TUint16* const )_S16("EWBCloudy"),
       
   296   ( const TUint16* const )_S16("EWBTungsten"),
       
   297   ( const TUint16* const )_S16("EWBFluorescent"),
       
   298   // light sensitivity enums
       
   299   (const TUint16* const)_S16("ECamLightSensitivityAuto"),
       
   300   (const TUint16* const)_S16("ECamLightSensitivityLow"),
       
   301   (const TUint16* const)_S16("ECamLightSensitivityLowMed"),
       
   302   (const TUint16* const)_S16("ECamLightSensitivityMed"),
       
   303   (const TUint16* const)_S16("ECamLightSensitivityMedHigh"),
       
   304   (const TUint16* const)_S16("ECamLightSensitivityHigh"),
       
   305   // sharpness modes that ui supports
       
   306   (const TUint16* const)_S16("ECamImageSharpnessNorm"),
       
   307   (const TUint16* const)_S16("ECamImageSharpnessSoft"),
       
   308   (const TUint16* const)_S16("ECamImageSharpnessHard"),
       
   309   // contrast modes that ui supports
       
   310   (const TUint16* const)_S16("ECamContrastNorm"),
       
   311   (const TUint16* const)_S16("ECamContrastPlus"),
       
   312   (const TUint16* const)_S16("ECamContrastNeg"),  
       
   313   };
       
   314 
       
   315 
       
   316 
       
   317 #endif //CAMERADYNAMICSETTINGS_HRH
       
   318 
       
   319 //End of file