1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "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 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * Common elements / data types. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef CTRCOMMON_H |
|
22 #define CTRCOMMON_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32std.h> |
|
26 |
|
27 |
|
28 /** |
|
29 * Video coding options |
|
30 * @lib TRANSCODER.LIB |
|
31 * @since 3.1 |
|
32 */ |
|
33 class TTRVideoCodingOptions |
|
34 { |
|
35 public: |
|
36 // Segment interval in picture. In H.263 baseline this means number of non-empty GOB headers |
|
37 // (1=every GOB has a header), in H.264 and MPEG-4 the segement size in bytes. |
|
38 // Default is 0 == no segments inside picture |
|
39 // Coding standard & used profile etc. limit the value. |
|
40 TInt iSyncIntervalInPicture; |
|
41 |
|
42 // Time between random access points (I-Frame) |
|
43 TUint iMinRandomAccessPeriodInSeconds; |
|
44 |
|
45 // Relevant to MPEG4 only. Specifies whether data partitioning is in use. |
|
46 // When equal to ETrue, data partitioning is in use. |
|
47 TBool iDataPartitioning; |
|
48 |
|
49 // Relevant to MPEG4 only. Specifies whether reversible variable length coding is in use. |
|
50 // When equal to ETrue, reversible variable length coding is in use. |
|
51 // Valid only if iDataPartitioned is equal to ETrue. |
|
52 TBool iReversibleVLC; |
|
53 |
|
54 // Relevant to MPEG4 only. Header extension code. |
|
55 TUint iHeaderExtension; |
|
56 }; |
|
57 |
|
58 |
|
59 /** |
|
60 * Video format |
|
61 * @lib TRANSCODER.LIB |
|
62 * @since 3.1 |
|
63 */ |
|
64 class TTRVideoFormat |
|
65 { |
|
66 public: |
|
67 // Video picture size |
|
68 TSize iSize; |
|
69 |
|
70 // Video data type |
|
71 TInt iDataType; |
|
72 }; |
|
73 |
|
74 |
|
75 |
|
76 /** |
|
77 * Video picture |
|
78 * @lib TRANSCODER.LIB |
|
79 * @since 3.1 |
|
80 */ |
|
81 class TTRVideoPicture |
|
82 { |
|
83 public: |
|
84 // Picture data |
|
85 TPtr8* iRawData; |
|
86 |
|
87 // Picture size in pixels |
|
88 TSize iDataSize; |
|
89 |
|
90 // Picture timestamp |
|
91 TTimeIntervalMicroSeconds iTimestamp; |
|
92 |
|
93 // Queue element |
|
94 TDblQueLink iLink; |
|
95 |
|
96 // Misc user info |
|
97 TAny* iUser; |
|
98 }; |
|
99 |
|
100 |
|
101 /** |
|
102 * Display options |
|
103 * @lib TRANSCODER.LIB |
|
104 * @since 3.1 |
|
105 */ |
|
106 class TTRDisplayOptions |
|
107 { |
|
108 public: |
|
109 // The video output rectangle on screen |
|
110 TRect iVideoRect; |
|
111 |
|
112 // Initial clipping region to use |
|
113 TRegion iClipRegion; |
|
114 }; |
|
115 |
|
116 |
|
117 /** |
|
118 * TTREventItem |
|
119 * @lib TRANSCODER.LIB |
|
120 */ |
|
121 class CTREventItem : public CBase |
|
122 { |
|
123 public: |
|
124 // Timestamp from which to start iAction |
|
125 TTimeIntervalMicroSeconds iTimestamp; |
|
126 |
|
127 // EnableEncoder setting status |
|
128 TBool iEnableEncoderStatus; |
|
129 |
|
130 // Enable PS setting status |
|
131 TBool iEnablePictureSinkStatus; |
|
132 |
|
133 // RandomAccess client's setting |
|
134 TBool iRandomAccessStatus; |
|
135 |
|
136 // Enable / Disable encoder client setting |
|
137 TBool iEnableEncoderClientSetting; |
|
138 |
|
139 // Enable / Disable picture sink client's setting |
|
140 TBool iEnablePictureSinkClientSetting; |
|
141 |
|
142 // Queue link |
|
143 TDblQueLink iLink; |
|
144 |
|
145 public: |
|
146 // Reset item's setting |
|
147 inline void Reset() |
|
148 { |
|
149 // Reset setting statuses & ts |
|
150 iTimestamp = -1; |
|
151 iEnableEncoderStatus = EFalse; |
|
152 iEnablePictureSinkStatus = EFalse; |
|
153 iRandomAccessStatus = EFalse; |
|
154 }; |
|
155 }; |
|
156 |
|
157 #endif |
|