1 /* |
|
2 * Copyright (c) 2007 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 the License "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: Implementation of the Common Recording Engine RTP save format* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <ipvideo/CRtpFileBase.h> |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CRtpToFile::GroupsTotalCount |
|
27 // Returns: Total count of packet groups. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 inline TInt CRtpToFile::GroupsTotalCount() |
|
31 { |
|
32 return iGroupsTotalCount; |
|
33 } |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // CRtpToFile::FirstSeekAddr |
|
37 // Returns: First group's address in RTP file. |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 inline TInt CRtpToFile::FirstSeekAddr() |
|
41 { |
|
42 return iFirstSeekAddr; |
|
43 } |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // CRtpToFile::LastSeekAddr |
|
47 // Returns: Last group's address in RTP file. |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 inline TInt CRtpToFile::LastSeekAddr() |
|
51 { |
|
52 return ( iMode == EModeTimeShift )? KMaxTInt: |
|
53 ( IsActive() )? iPrevGroupPoint: iLastSeekAddr; |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // CRtpToFile::SeekHeaderPoint |
|
58 // Returns: Seek header point in RTP file. |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 inline TInt CRtpToFile::SeekHeaderPoint() |
|
62 { |
|
63 return iSeekHeaderPoint; |
|
64 } |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // CRtpToFile::SeekArray |
|
68 // Returns: Seek arry pointer. |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 inline CArrayFix<CRtpFileBase::SSeek>* CRtpToFile::SeekArray() |
|
72 { |
|
73 return iSeekArray; |
|
74 } |
|
75 |
|
76 // ----------------------------------------------------------------------------- |
|
77 // CRtpToFile::Action |
|
78 // Returns: Current save action. |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 inline MRtpFileWriteObserver::TRtpSaveAction CRtpToFile::Action() const |
|
82 { |
|
83 return iAction; |
|
84 } |
|
85 |
|
86 // End of File |
|