Remove contrast support for front camera:N_SE-45269
authorrahul varna <rahul.varna@samsung.com>
Mon, 8 Jul 2013 09:41:17 +0000 (15:11 +0530)
committerrahul varna <rahul.varna@samsung.com>
Mon, 8 Jul 2013 09:41:17 +0000 (15:11 +0530)
Signed-off-by: rahul varna <rahul.varna@samsung.com>
project/src/Audio/TonePlayerForm.cpp
project/src/Recorder/VideoRecorderForm.cpp
project/src/Recorder/VideoRecorderForm.h

index b5d3e47..1bfc768 100644 (file)
@@ -37,9 +37,6 @@ extern const Tizen::Ui::Scenes::SceneId TONE_PLAYER_SCENE_ID = L"TonePlayerScene
 
 const static int DTMF_PRESET = 200;
 const static int DEFAULT_DTMF_PRESET = 3000;
-const static int MAX_VOLUME = 100;
-const static int MIN_VOLUME = 0;
-const static int VOLUME_STEP = 10;
 
 #define TONE_PLAYER_SECTION_NAME L"TonePlayer"
 
index 8eb2d1c..fa9e6ea 100644 (file)
@@ -1651,6 +1651,14 @@ CATCH:
        return E_FAILURE;
 }
 
+void
+VideoRecorderForm::ResetConfigurationValues(void)
+{
+       __brightnessSliderValue = INIT;
+       __contrastSliderValue = INIT;
+       __exposureSliderValue = INIT;
+}
+
 result
 VideoRecorderForm::ReloadAllConfiguration(void)
 {
@@ -2166,6 +2174,8 @@ VideoRecorderForm::ToggleCamera(void)
                SetFooterItem(1, L"Back", ID_TOGGLE_CAMERA_TYPE);
        }
 
+       ResetConfigurationValues();
+
        Activate(null);
        return E_SUCCESS;
 }
@@ -4669,7 +4679,7 @@ VideoRecorderForm::OnVideoRecorderStarted(result r)
 void
 VideoRecorderForm::OnVideoRecorderStopped(result r)
 {
-       AppLog("OnVideoRecorderStopped ");
+       AppLog("OnVideoRecorderStopped  %s", GetErrorMessage(r));
        SendUserEvent(RECORDER_ON_STOP, null);
        ShowFooterItem(0, true);
        if (__cameraCount > 1)  //if camera count is 2 then only use secondary camera.
index bf18432..3f8ae91 100644 (file)
@@ -186,6 +186,7 @@ private:
        void DeletePopup(Popup** pPopup);
        result AddSlider(Slider** pSliderCtrl, int minval, int maxval, String title, Popup* pPopup);
        result ReloadAllConfiguration(void);
+       void ResetConfigurationValues(void);
        void DeleteAllPopups(void);
        void ResetTimeVariables(void);
        void SetFotterItems(void);