• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (C) 2022 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include <RtpStackProfile.h>
18 
RtpStackProfile()19 RtpStackProfile::RtpStackProfile() :
20         m_uiRtcpSessionBw(RTP_DEF_RTCP_BW_SIZE),
21         m_uiMTUSize(RTP_CONF_MTU_SIZE),
22         m_uiTermNum(RTP_ZERO)
23 {
24 }
25 
~RtpStackProfile()26 RtpStackProfile::~RtpStackProfile() {}
27 
setRtcpBandwidth(IN RtpDt_UInt32 uiRtcpBw)28 RtpDt_Void RtpStackProfile::setRtcpBandwidth(IN RtpDt_UInt32 uiRtcpBw)
29 {
30     m_uiRtcpSessionBw = uiRtcpBw;
31 }
32 
getRtcpBandwidth()33 RtpDt_UInt32 RtpStackProfile::getRtcpBandwidth()
34 {
35     return m_uiRtcpSessionBw;
36 }
37 
setMtuSize(IN RtpDt_UInt32 uiMtuSize)38 RtpDt_Void RtpStackProfile::setMtuSize(IN RtpDt_UInt32 uiMtuSize)
39 {
40     m_uiMTUSize = uiMtuSize;
41 }
42 
getMtuSize()43 RtpDt_UInt32 RtpStackProfile::getMtuSize()
44 {
45     return m_uiMTUSize;
46 }
47 
setTermNumber(IN RtpDt_UInt32 uiTermNum)48 RtpDt_Void RtpStackProfile::setTermNumber(IN RtpDt_UInt32 uiTermNum)
49 {
50     m_uiTermNum = uiTermNum;
51 }
52 
getTermNumber()53 RtpDt_UInt32 RtpStackProfile::getTermNumber()
54 {
55     return m_uiTermNum;
56 }
57