1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
125 void handleAutofocusStateChanged(CxeAutoFocusControl::State newState, CxeError::Id error); |
125 void handleAutofocusStateChanged(CxeAutoFocusControl::State newState, CxeError::Id error); |
126 |
126 |
127 // sensor events |
127 // sensor events |
128 void handleSensorEvent(CxeSensorEventHandler::SensorType type,QVariant data); |
128 void handleSensorEvent(CxeSensorEventHandler::SensorType type,QVariant data); |
129 |
129 |
|
130 // Use ECam Use Case Hint Custom API to inform ECam of our intended use case |
|
131 // before calling Reserve() |
|
132 void hintUseCase(); |
|
133 |
130 private: // helper functions |
134 private: // helper functions |
131 |
135 |
132 CxeError::Id prepareFilename(CxeStillImageSymbian *stillImage); |
136 CxeError::Id prepareFilename(CxeStillImageSymbian *stillImage); |
133 void setOrientation(QVariant sensorData); |
137 void setOrientation(QVariant sensorData); |
134 CxeStillImageSymbian* getImageForIndex(int index); |
138 CxeStillImageSymbian* getImageForIndex(int index); |
135 CCamera::TFormat supportedStillFormat(Cxe::CameraIndex cameraIndex); |
139 CCamera::TFormat supportedStillFormat(Cxe::CameraIndex cameraIndex); |
136 int prepareStillSnapshot(); |
140 void prepareSnapshot(); |
137 CxeError::Id getImageQualityDetails(CxeImageDetails &imageInfo); |
141 void updateStillCaptureParameters(); |
138 void handleSnapshotEvent(CxeError::Id error); |
142 void handleSnapshotEvent(CxeError::Id error); |
139 void initializeStates(); |
143 void initializeStates(); |
140 void prepare(); |
144 void prepare(); |
141 void updateRemainingImagesCounter(); |
145 void updateRemainingImagesCounter(); |
142 int calculateRemainingImages(int estimatedImagesize); |
146 int calculateRemainingImages(int estimatedImagesize); |
166 QList<CxeImageDetails> mIcmSupportedImageResolutions; |
170 QList<CxeImageDetails> mIcmSupportedImageResolutions; |
167 //still resolutions supported by ecam |
171 //still resolutions supported by ecam |
168 QList<TSize> mECamSupportedImageResolutions; |
172 QList<TSize> mECamSupportedImageResolutions; |
169 //current image quality details in use |
173 //current image quality details in use |
170 CxeImageDetails mCurrentImageDetails; |
174 CxeImageDetails mCurrentImageDetails; |
|
175 CCamera::TFormat mCaptureFormat; |
|
176 int mSizeIndex; //!< ECam still capture size index |
171 }; |
177 }; |
172 |
178 |
173 #endif // CXESTILLCAPTURECONTROLSYMBIAN_H |
179 #endif // CXESTILLCAPTURECONTROLSYMBIAN_H |