|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 #ifndef CXEQUALITYPRESETSSYMBIAN_H |
|
18 #define CXEQUALITYPRESETSSYMBIAN_H |
|
19 |
|
20 // Include Files |
|
21 #include <QSize> |
|
22 #include "cxequalitypresets.h" |
|
23 |
|
24 // forward declarations |
|
25 class CImagingConfigManager; |
|
26 class CxeSettings; |
|
27 |
|
28 /**! |
|
29 * Class CxeQualityPresetsSymbian |
|
30 * Queries supported image and video qualities from ICM and creates the related |
|
31 * data and wraps up the quality settings for the client. |
|
32 */ |
|
33 class CxeQualityPresetsSymbian : public CxeQualityPresets |
|
34 { |
|
35 public: |
|
36 CxeQualityPresetsSymbian(CxeSettings &settings); |
|
37 ~CxeQualityPresetsSymbian(); |
|
38 QList<CxeImageDetails> imageQualityPresets(Cxe::CameraIndex cameraId); |
|
39 QList<CxeVideoDetails> videoQualityPresets(Cxe::CameraIndex cameraId); |
|
40 qreal avgVideoBitRateScaler(); |
|
41 |
|
42 private: |
|
43 Cxe::AspectRatio calculateAspectRatio(int width, int height) const; |
|
44 QString toString(const TUint8* aData); |
|
45 CxeVideoDetails createVideoPreset(TVideoQualitySet set); |
|
46 CxeImageDetails createImagePreset(TImageQualitySet set); |
|
47 QString calculateMegaPixelCount(int imageWidth, int imageHeight); |
|
48 void debugPrints(CxeVideoDetails preset); |
|
49 void debugPrints(CxeImageDetails newPreset); |
|
50 |
|
51 private: |
|
52 CImagingConfigManager *mIcm; |
|
53 CxeSettings &mSettings; |
|
54 qreal mCMRAvgVideoBitRateScaler; |
|
55 }; |
|
56 |
|
57 |
|
58 #endif // CXEQUALITYPRESETSSYMBIAN_H |