24
|
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 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef CAMVIDEOTIME_H
|
|
20 |
#define CAMVIDEOTIME_H
|
|
21 |
|
|
22 |
#include <e32base.h>
|
|
23 |
|
|
24 |
class TCamVideoTime
|
|
25 |
{
|
|
26 |
public:
|
|
27 |
|
|
28 |
/**
|
|
29 |
* Constructor
|
|
30 |
* @param aDiskSpace Remaining disk space
|
|
31 |
* @param aCriticalLimit Diskspace critical limit
|
|
32 |
* @param aVideoBitrate Video bitrate
|
|
33 |
* @param aAudioBitrate Audio bitrate
|
|
34 |
* @param aSizeLimit File size limit (MMS message size)
|
|
35 |
* @param aMuteAudio Is audio muted
|
|
36 |
* @param aBitrateScaler Video bitrate scaler
|
|
37 |
*/
|
|
38 |
TCamVideoTime( TInt64 aDiskSpace,
|
|
39 |
TInt64 aCriticalLimit,
|
|
40 |
TInt aVideoBitRate,
|
|
41 |
TInt aAudioBitRate,
|
|
42 |
TInt64 aSizeLimit,
|
|
43 |
TBool aMuteAudio,
|
|
44 |
TReal aBitrateScaler);
|
|
45 |
|
|
46 |
public:
|
|
47 |
|
|
48 |
/**
|
|
49 |
* Return the estimated remaining time for the recording in microseconds.
|
|
50 |
* @param None
|
|
51 |
* @return Remaining time
|
|
52 |
*/
|
|
53 |
TTimeIntervalMicroSeconds GetRemainingTimeL();
|
|
54 |
|
|
55 |
private:
|
|
56 |
// Average bitrate of video
|
|
57 |
TInt iVideoAverageBitRate;
|
|
58 |
|
|
59 |
// Average bitrate of audio
|
|
60 |
TInt iAudioAverageBitRate;
|
|
61 |
|
|
62 |
// Available space on disk at start of recording
|
|
63 |
TInt64 iAvailableSpaceAtStart;
|
|
64 |
|
|
65 |
// Size limit of the file in bytes
|
|
66 |
TInt64 iSizeLimit;
|
|
67 |
};
|
|
68 |
|
|
69 |
#endif // CAMVIDEOTIME_H
|
|
70 |
|
|
71 |
// End of file
|