|
1 /* |
|
2 * Copyright (c) 2008-2010 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: Class for calculating remaining video time |
|
15 * |
|
16 * Copyright © 2008 Nokia. All rights reserved. |
|
17 * This material, including documentation and any related computer |
|
18 * programs, is protected by copyright controlled by Nokia. All |
|
19 * rights are reserved. Copying, including reproducing, storing, |
|
20 * adapting or translating, any or all of this material requires the |
|
21 * prior written consent of Nokia. This material also contains |
|
22 * confidential information which may not be disclosed to others |
|
23 * without the prior written consent of Nokia. |
|
24 * |
|
25 * |
|
26 */ |
|
27 |
|
28 |
|
29 #ifndef CAMVIDEOTIME_H |
|
30 #define CAMVIDEOTIME_H |
|
31 |
|
32 #include <e32base.h> |
|
33 |
|
34 class TCamVideoTime |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Constructor |
|
40 * @param aDiskSpace Remaining disk space |
|
41 * @param aCriticalLimit Diskspace critical limit |
|
42 * @param aVideoBitrate Video bitrate |
|
43 * @param aAudioBitrate Audio bitrate |
|
44 * @param aSizeLimit File size limit (MMS message size) |
|
45 * @param aMuteAudio Is audio muted |
|
46 * @param aBitrateScaler Video bitrate scaler |
|
47 */ |
|
48 TCamVideoTime( TInt64 aDiskSpace, |
|
49 TInt64 aCriticalLimit, |
|
50 TInt aVideoBitRate, |
|
51 TInt aAudioBitRate, |
|
52 TInt64 aSizeLimit, |
|
53 TBool aMuteAudio, |
|
54 TReal aBitrateScaler); |
|
55 |
|
56 public: |
|
57 |
|
58 /** |
|
59 * Return the estimated remaining time for the recording in microseconds. |
|
60 * @param None |
|
61 * @return Remaining time |
|
62 */ |
|
63 TTimeIntervalMicroSeconds GetRemainingTimeL(); |
|
64 |
|
65 private: |
|
66 // Average bitrate of video |
|
67 TInt iVideoAverageBitRate; |
|
68 |
|
69 // Average bitrate of audio |
|
70 TInt iAudioAverageBitRate; |
|
71 |
|
72 // Available space on disk at start of recording |
|
73 TInt64 iAvailableSpaceAtStart; |
|
74 |
|
75 // Size limit of the file in bytes |
|
76 TInt64 iSizeLimit; |
|
77 }; |
|
78 |
|
79 #endif // CAMVIDEOTIME_H |
|
80 |
|
81 // End of file |