equal
deleted
inserted
replaced
55 CX_DEBUG(("CxUI: entering main()")); |
55 CX_DEBUG(("CxUI: entering main()")); |
56 OstTrace0( camerax_performance, _MAIN, "msg: e_CX_STARTUP 1" ); |
56 OstTrace0( camerax_performance, _MAIN, "msg: e_CX_STARTUP 1" ); |
57 |
57 |
58 Q_INIT_RESOURCE(cxui); |
58 Q_INIT_RESOURCE(cxui); |
59 |
59 |
60 // Use software rendering / raster graphics system to save GPU memory. |
60 // Use software rendering / raster graphics system to save graphics memory |
61 CX_DEBUG(("CxUI: Take raster graphics system into use..")); |
61 CX_DEBUG(("CxUI: Take raster graphics system into use")); |
62 QApplication::setGraphicsSystem("raster"); |
62 QApplication::setGraphicsSystem("raster"); |
63 CX_DEBUG(("CxUI: ..raster graphics system in use")); |
|
64 |
63 |
65 OstTrace0( camerax_performance, DUP1__MAIN, "msg: e_CX_HBAPP_CREATION 1" ); |
64 OstTrace0( camerax_performance, DUP1__MAIN, "msg: e_CX_HBAPP_CREATION 1" ); |
66 CxuiApplication app(argc, argv); |
65 CxuiApplication app(argc, argv); |
67 OstTrace0( camerax_performance, DUP2__MAIN, "msg: e_CX_HBAPP_CREATION 0" ); |
66 OstTrace0( camerax_performance, DUP2__MAIN, "msg: e_CX_HBAPP_CREATION 0" ); |
68 |
67 |
100 } else { |
99 } else { |
101 // in post-capture don't init but set the correct mode to engine |
100 // in post-capture don't init but set the correct mode to engine |
102 // so init can be done later |
101 // so init can be done later |
103 engine->setMode(mode); |
102 engine->setMode(mode); |
104 } |
103 } |
105 } else { |
104 } else { |
106 CX_DEBUG(("CxUI: Camera started as normal app")); |
105 CX_DEBUG(("CxUI: Camera started as normal app")); |
107 // normal start |
106 // normal start |
108 engine->initMode(engine->mode()); |
107 engine->initMode(engine->mode()); |
109 } |
108 } |
110 |
|
111 #ifdef Q_OS_SYMBIAN |
|
112 //!@todo: Yield run time to system to get enough resources released to start camera. |
|
113 CX_DEBUG(("CxUI: yield control for resource freeing..")); |
|
114 User::After(2*1000*1000); // 2s |
|
115 CX_DEBUG(("CxUI: waiting done..")); |
|
116 #endif // Q_OS_SYMBIAN |
|
117 |
109 |
118 // Load language specific application localization file, e.g. "camera_en.qm" |
110 // Load language specific application localization file, e.g. "camera_en.qm" |
119 // Translations need to be loaded before any widgets are created. |
111 // Translations need to be loaded before any widgets are created. |
120 CX_DEBUG(("CxUI: Load translations..")); |
112 CX_DEBUG(("CxUI: Load translations..")); |
121 OstTrace0( camerax_performance, DUP3__MAIN, "msg: e_CX_LOAD_TRANSLATIONS 1" ); |
113 OstTrace0( camerax_performance, DUP3__MAIN, "msg: e_CX_LOAD_TRANSLATIONS 1" ); |