camerauis/cameraxui/cxengine/src/cxestillcapturecontrolsymbian.cpp
changeset 60 a289dde0a1d6
parent 48 42ba2d16bf40
child 63 415ff50d2eca
equal deleted inserted replaced
56:01e205c615b9 60:a289dde0a1d6
   188 {
   188 {
   189     CX_DEBUG_ENTER_FUNCTION();
   189     CX_DEBUG_ENTER_FUNCTION();
   190     OstTrace0(camerax_performance, CXESTILLCAPTURECONTROLSYMBIAN_INIT_IN, "msg: e_CX_STILL_CAPCONT_INIT 1");
   190     OstTrace0(camerax_performance, CXESTILLCAPTURECONTROLSYMBIAN_INIT_IN, "msg: e_CX_STILL_CAPCONT_INIT 1");
   191 
   191 
   192     if (state() == Uninitialized) {
   192     if (state() == Uninitialized) {
       
   193         
       
   194         // prepare for still capture.
   193         prepare();
   195         prepare();
       
   196 
   194         // Initialize orientation sensor and other sensors
   197         // Initialize orientation sensor and other sensors
   195         mSensorEventHandler.init();
   198         mSensorEventHandler.init();
       
   199         
       
   200         // inform zoom control to prepare zoom
       
   201         emit prepareZoomForStill(mSizeIndex);
   196     }
   202     }
   197 
   203 
   198     OstTrace0(camerax_performance, CXESTILLCAPTURECONTROLSYMBIAN_INIT_OUT, "msg: e_CX_STILL_CAPCONT_INIT 0");
   204     OstTrace0(camerax_performance, CXESTILLCAPTURECONTROLSYMBIAN_INIT_OUT, "msg: e_CX_STILL_CAPCONT_INIT 0");
   199     CX_DEBUG_EXIT_FUNCTION();
   205     CX_DEBUG_EXIT_FUNCTION();
   200 }
   206 }
   282         }
   288         }
   283 
   289 
   284         // Still capture and still snapshot are OK.
   290         // Still capture and still snapshot are OK.
   285         // We can safely set state to READY.
   291         // We can safely set state to READY.
   286         setState(Ready);
   292         setState(Ready);
   287 
       
   288         // inform zoom control to prepare zoom
       
   289         emit prepareZoomForStill(mSizeIndex);
       
   290 
   293 
   291     } catch (const std::exception &e) {
   294     } catch (const std::exception &e) {
   292         // Exception encountered, free resources.
   295         // Exception encountered, free resources.
   293         CX_DEBUG(("Image Prepare FAILED! symbian error = %d", qt_symbian_exception2Error(e)));
   296         CX_DEBUG(("Image Prepare FAILED! symbian error = %d", qt_symbian_exception2Error(e)));
   294         status = CxeErrorHandlingSymbian::map(qt_symbian_exception2Error(e));
   297         status = CxeErrorHandlingSymbian::map(qt_symbian_exception2Error(e));