|
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 #include <QList> |
|
18 #include "cxequalitydetails.h" |
|
19 #include "cxefakequalitypresets.h" |
|
20 #include "cxequalitypresetssymbian.h" |
|
21 |
|
22 |
|
23 CxeFakeQualityPresets::CxeFakeQualityPresets() |
|
24 { |
|
25 } |
|
26 |
|
27 CxeFakeQualityPresets::~CxeFakeQualityPresets() |
|
28 { |
|
29 } |
|
30 |
|
31 QList<CxeImageDetails> CxeFakeQualityPresets::imageQualityPresets(Cxe::CameraIndex cameraId) |
|
32 { |
|
33 Q_UNUSED(cameraId); |
|
34 |
|
35 QList<CxeImageDetails> list; |
|
36 list.append(fakeImageDetails()); |
|
37 return list; |
|
38 } |
|
39 |
|
40 |
|
41 QList<CxeVideoDetails> CxeFakeQualityPresets::videoQualityPresets(Cxe::CameraIndex cameraId) |
|
42 { |
|
43 Q_UNUSED(cameraId); |
|
44 |
|
45 QList<CxeVideoDetails> list; |
|
46 list.append(fakeVideoDetails()); |
|
47 return list; |
|
48 } |
|
49 |
|
50 qreal CxeFakeQualityPresets::avgVideoBitRateScaler() |
|
51 { |
|
52 return 1.0; |
|
53 } |
|
54 |
|
55 CxeImageDetails CxeFakeQualityPresets::fakeImageDetails() |
|
56 { |
|
57 CxeImageDetails quality; |
|
58 |
|
59 quality.mWidth = 640; |
|
60 quality.mHeight = 360; |
|
61 quality.mEstimatedSize = 300000; |
|
62 quality.mMpxCount = QString::number(qreal(0.2)); |
|
63 quality.mPossibleImages = 1000; |
|
64 quality.mAspectRatio = Cxe::AspectRatio16to9; |
|
65 |
|
66 return quality; |
|
67 } |
|
68 |
|
69 CxeVideoDetails CxeFakeQualityPresets::fakeVideoDetails() |
|
70 { |
|
71 CxeVideoDetails quality; |
|
72 |
|
73 quality.mWidth = 640; |
|
74 quality.mHeight = 360; |
|
75 quality.mRemainingTime = 1000; |
|
76 quality.mAudioBitRate = 0; |
|
77 quality.mVideoBitRate = 3072000; |
|
78 quality.mVideoFrameRate = 30; |
|
79 quality.mAudioType = QString(""); |
|
80 quality.mVideoFileMimeType = QString("video/mp4"); |
|
81 quality.mPreferredSupplier = QString("Nokia"); |
|
82 quality.mVideoCodecMimeType = QString("video/mp4v-es; profile-level-id=4"); |
|
83 quality.mAspectRatio = Cxe::AspectRatio16to9; |
|
84 |
|
85 return quality; |
|
86 } |
|
87 |