1 /* |
|
2 * Copyright (c) 2002-2004 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 |
|
18 |
|
19 #include "transcodercodecinfo.h" |
|
20 |
|
21 // INCLUDE FILES |
|
22 |
|
23 // EXTERNAL DATA STRUCTURES |
|
24 |
|
25 // EXTERNAL FUNCTION PROTOTYPES |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // LOCAL CONSTANTS AND MACROS |
|
32 |
|
33 // MODULE DATA STRUCTURES |
|
34 |
|
35 // LOCAL FUNCTION PROTOTYPES |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 |
|
39 // ============================= LOCAL FUNCTIONS =============================== |
|
40 |
|
41 |
|
42 // ============================ MEMBER FUNCTIONS =============================== |
|
43 |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // CMccTranscoderCodecInfo::CMccTranscoderCodecInfo |
|
47 // default constructor |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 CMccTranscoderCodecInfo::CMccTranscoderCodecInfo() : |
|
51 iVideoType( EVedVideoTypeUnrecognized ), |
|
52 iVideoResolution( TSize( 0, 0 ) ), |
|
53 iBitrate( 0 ), |
|
54 iFrameRate( 0 ), |
|
55 iAudioType( EVedAudioTypeUnrecognized ), |
|
56 iAudioChannelMode( EVedAudioChannelModeSingleChannel ), |
|
57 iSamplingRate( 0 ) |
|
58 { |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CMccTranscoderCodecInfo::~CMccTranscoderCodecInfo |
|
63 // Destructor |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 CMccTranscoderCodecInfo::~CMccTranscoderCodecInfo() |
|
67 { |
|
68 |
|
69 } |
|
70 |
|
71 // ----------------------------------------------------------------------------- |
|
72 // CMccTranscoderCodecInfo::SetAudioType |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 void CMccTranscoderCodecInfo::SetAudioType( TVedAudioType aType ) |
|
76 { |
|
77 iAudioType = aType; |
|
78 } |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // CMccTranscoderCodecInfo::AudioType |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 TVedAudioType CMccTranscoderCodecInfo::AudioType() |
|
85 { |
|
86 return iAudioType; |
|
87 } |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // CMccTranscoderCodecInfo::SetAudioChannelMode |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 void CMccTranscoderCodecInfo::SetAudioChannelMode( TVedAudioChannelMode aMode ) |
|
94 { |
|
95 iAudioChannelMode = aMode; |
|
96 } |
|
97 |
|
98 // ----------------------------------------------------------------------------- |
|
99 // CMccTranscoderCodecInfo::AudioChannelMode |
|
100 // ----------------------------------------------------------------------------- |
|
101 // |
|
102 TVedAudioChannelMode CMccTranscoderCodecInfo::AudioChannelMode() |
|
103 { |
|
104 return iAudioChannelMode; |
|
105 } |
|
106 |
|
107 // ----------------------------------------------------------------------------- |
|
108 // CMccTranscoderCodecInfo::SetVideoType |
|
109 // |
|
110 // ----------------------------------------------------------------------------- |
|
111 // |
|
112 void CMccTranscoderCodecInfo::SetVideoType( TVedVideoType aType ) |
|
113 { |
|
114 iVideoType = aType; |
|
115 } |
|
116 |
|
117 // ----------------------------------------------------------------------------- |
|
118 // CMccTranscoderCodecInfo::VideoType |
|
119 // ----------------------------------------------------------------------------- |
|
120 // |
|
121 TVedVideoType CMccTranscoderCodecInfo::VideoType() |
|
122 { |
|
123 return iVideoType; |
|
124 } |
|
125 |
|
126 // ----------------------------------------------------------------------------- |
|
127 // CMccTranscoderCodecInfo::SetFrameRate |
|
128 // ----------------------------------------------------------------------------- |
|
129 // |
|
130 void CMccTranscoderCodecInfo::SetFrameRate( TReal aFrameRate ) |
|
131 { |
|
132 iFrameRate = aFrameRate; |
|
133 } |
|
134 |
|
135 // ----------------------------------------------------------------------------- |
|
136 // CMccTranscoderCodecInfo::FrameRate |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 TReal CMccTranscoderCodecInfo::FrameRate() |
|
140 { |
|
141 return iFrameRate; |
|
142 } |
|
143 |
|
144 // ----------------------------------------------------------------------------- |
|
145 // CMccTranscoderCodecInfo::SetVideoResolution |
|
146 // ----------------------------------------------------------------------------- |
|
147 // |
|
148 void CMccTranscoderCodecInfo::SetVideoResolution( TSize aVideoResolution ) |
|
149 { |
|
150 iVideoResolution = aVideoResolution; |
|
151 } |
|
152 |
|
153 // ----------------------------------------------------------------------------- |
|
154 // CMccTranscoderCodecInfo::VideoResolution |
|
155 // ----------------------------------------------------------------------------- |
|
156 // |
|
157 TSize CMccTranscoderCodecInfo::VideoResolution() |
|
158 { |
|
159 return iVideoResolution; |
|
160 } |
|
161 |
|
162 |
|
163 |
|