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 /** \addtogroup RTP_Stack 18 * @{ 19 */ 20 21 #ifndef __RTP_PAYLOAD_INFO_H__ 22 #define __RTP_PAYLOAD_INFO_H__ 23 24 #include <RtpGlobal.h> 25 26 /** 27 * @class RtpPayloadInfo 28 * @brief It defines the RTP payload information.(ex:- payload type, sampling rate). 29 */ 30 class RtpPayloadInfo 31 { 32 private: 33 // payload type 34 RtpDt_UInt32 m_uiPayloadType[RTP_MAX_PAYLOAD_TYPE] = {0}; 35 RtpDt_UInt32 m_uiSamplingRate; 36 37 public: 38 RtpPayloadInfo(); 39 RtpPayloadInfo(IN RtpDt_UInt32* uiPayloadType, IN RtpDt_UInt32 uiSamplingRate, 40 IN RtpDt_UInt32 nNumOfPayloadParam); 41 42 ~RtpPayloadInfo(); 43 44 RtpDt_UInt32 getPayloadType(IN RtpDt_UInt32 payloadIndex); 45 46 RtpDt_UInt32 getSamplingRate(); 47 48 RtpDt_Void setRtpPayloadInfo(IN RtpPayloadInfo* pobjRlInfo); 49 }; 50 51 #endif /* __RTP_PAYLOAD_INFO_H__ */ 52 53 /** @}*/ 54