equal
deleted
inserted
replaced
35 const TUint KDefaultBufferLength = 10; |
35 const TUint KDefaultBufferLength = 10; |
36 const TUint KDefaultBufferThreshold = 5; |
36 const TUint KDefaultBufferThreshold = 5; |
37 const TUint KDefaultPreference = EMdaPriorityPreferenceNone; |
37 const TUint KDefaultPreference = EMdaPriorityPreferenceNone; |
38 const TUint KDefaultPriority = EMdaPriorityNormal; |
38 const TUint KDefaultPriority = EMdaPriorityNormal; |
39 const TInt KDefaultModeChangePeriod = 1; |
39 const TInt KDefaultModeChangePeriod = 1; |
40 const TUint KMccSecsToMicroSecs = 1000000; |
|
41 |
40 |
42 |
41 |
43 // MACROS |
42 // MACROS |
44 |
43 |
45 // LOCAL CONSTANTS AND MACROS |
44 // LOCAL CONSTANTS AND MACROS |
135 iPTime = codecInfo.iPtime; |
134 iPTime = codecInfo.iPtime; |
136 iPayloadType = codecInfo.iPayloadType; |
135 iPayloadType = codecInfo.iPayloadType; |
137 iFrameSize = codecInfo.iFrameSize; |
136 iFrameSize = codecInfo.iFrameSize; |
138 iHwFrameTime = codecInfo.iHwFrameTime; |
137 iHwFrameTime = codecInfo.iHwFrameTime; |
139 |
138 |
140 if( (codecInfo.iKeepaliveInterval / KMccSecsToMicroSecs) > KMaxTUint8 ) |
139 iKeepAliveTimer = codecInfo.iKeepaliveInterval; |
141 { |
|
142 iKeepAliveTimer = KMaxTUint8; |
|
143 iKeepAliveTimerMicroSecs = KMaxTUint8 * KMccSecsToMicroSecs; |
|
144 } |
|
145 else |
|
146 { |
|
147 iKeepAliveTimer = codecInfo.iKeepaliveInterval / KMccSecsToMicroSecs; |
|
148 iKeepAliveTimerMicroSecs = codecInfo.iKeepaliveInterval; |
|
149 } |
|
150 iKeepAlivePT = codecInfo.iKeepalivePT; |
140 iKeepAlivePT = codecInfo.iKeepalivePT; |
151 iKeepAliveData = codecInfo.iKeepaliveData; |
141 iKeepAliveData = codecInfo.iKeepaliveData; |
152 |
142 |
153 iMaxRed = codecInfo.iMaxRed; |
143 iMaxRed = codecInfo.iMaxRed; |
154 |
144 |
196 codecInfo.iFrameSize = iFrameSize; |
186 codecInfo.iFrameSize = iFrameSize; |
197 codecInfo.iHwFrameTime = iHwFrameTime; |
187 codecInfo.iHwFrameTime = iHwFrameTime; |
198 codecInfo.iRedundantPayload = iRedundancyPT; |
188 codecInfo.iRedundantPayload = iRedundancyPT; |
199 codecInfo.iNeighbor = iNeighbor; |
189 codecInfo.iNeighbor = iNeighbor; |
200 codecInfo.iModeChangePeriod = iModeChangePeriod; |
190 codecInfo.iModeChangePeriod = iModeChangePeriod; |
201 codecInfo.iKeepaliveInterval = iKeepAliveTimerMicroSecs; |
191 codecInfo.iKeepaliveInterval = iKeepAliveTimer; |
202 codecInfo.iKeepalivePT = iKeepAlivePT; |
192 codecInfo.iKeepalivePT = iKeepAlivePT; |
203 codecInfo.iKeepaliveData = iKeepAliveData; |
193 codecInfo.iKeepaliveData = iKeepAliveData; |
204 codecInfo.iMaxRed = iMaxRed; |
194 codecInfo.iMaxRed = iMaxRed; |
205 |
195 |
206 if ( iConfigKey && iConfigKey->Length() <= KMaxConfigKeyLen ) |
196 if ( iConfigKey && iConfigKey->Length() <= KMaxConfigKeyLen ) |
932 // ----------------------------------------------------------------------------- |
922 // ----------------------------------------------------------------------------- |
933 // |
923 // |
934 TInt CMccCodecInformation::SetKeepAliveTimer( TUint8 aTimerValue ) |
924 TInt CMccCodecInformation::SetKeepAliveTimer( TUint8 aTimerValue ) |
935 { |
925 { |
936 iKeepAliveTimer = aTimerValue; |
926 iKeepAliveTimer = aTimerValue; |
937 iKeepAliveTimerMicroSecs = aTimerValue * KMccSecsToMicroSecs; |
|
938 return KErrNone; |
927 return KErrNone; |
939 } |
928 } |
940 |
929 |
941 // ----------------------------------------------------------------------------- |
930 // ----------------------------------------------------------------------------- |
942 // CMccCodecInformation:SetKeepAlivePT |
931 // CMccCodecInformation:SetKeepAlivePT |
992 // |
981 // |
993 const TDesC8& CMccCodecInformation::KeepAliveData() const |
982 const TDesC8& CMccCodecInformation::KeepAliveData() const |
994 { |
983 { |
995 return iKeepAliveData; |
984 return iKeepAliveData; |
996 } |
985 } |
997 |
|
998 // ----------------------------------------------------------------------------- |
|
999 // CMccCodecInformation:SetKeepAliveTimerMicroSecs |
|
1000 // Default implementation |
|
1001 // ----------------------------------------------------------------------------- |
|
1002 // |
|
1003 TInt CMccCodecInformation::SetKeepAliveTimerMicroSecs( |
|
1004 TUint32 aTimerValueMicroSecs ) |
|
1005 { |
|
1006 if( (aTimerValueMicroSecs / KMccSecsToMicroSecs) > KMaxTUint8 ) |
|
1007 { |
|
1008 iKeepAliveTimer = KMaxTUint8; |
|
1009 iKeepAliveTimerMicroSecs = KMaxTUint8 * KMccSecsToMicroSecs; |
|
1010 } |
|
1011 else |
|
1012 { |
|
1013 iKeepAliveTimer = aTimerValueMicroSecs / KMccSecsToMicroSecs; |
|
1014 iKeepAliveTimerMicroSecs = aTimerValueMicroSecs; |
|
1015 } |
|
1016 return KErrNone; |
|
1017 } |
|
1018 |
|
1019 // ----------------------------------------------------------------------------- |
|
1020 // CMccCodecInformation:KeepAliveTimerMicroSecs |
|
1021 // Default implementation |
|
1022 // ----------------------------------------------------------------------------- |
|
1023 // |
|
1024 TUint32 CMccCodecInformation::KeepAliveTimerMicroSecs() const |
|
1025 { |
|
1026 return iKeepAliveTimerMicroSecs; |
|
1027 } |
|