• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef OHOS_SHARING_RTCP_DEF_H
17 #define OHOS_SHARING_RTCP_DEF_H
18 
19 #include <cstdint>
20 
21 namespace OHOS {
22 namespace Sharing {
23 enum class RtcpType : uint8_t {
24     RTCP_FIR = 192,
25     RTCP_NACK = 193,
26     RTCP_SMPTETC = 194,
27     RTCP_IJ = 195,
28     RTCP_SR = 200,
29     RTCP_RR = 201,
30     RTCP_SDES = 202,
31     RTCP_BYE = 203,
32     RTCP_APP = 204,
33     RTCP_RTPFB = 205, // Generic RTP Feedback
34     RTCP_PSFB = 206,  // Payload-specific Feedback
35     RTCP_XR = 207,    // RTCP Extended Reports, refer to https://www.rfc-editor.org/rfc/rfc3611
36     RTCP_AVB = 208,
37     RTCP_RSI = 209,
38     RTCP_TOKEN = 210
39 };
40 
41 enum class SdesType : uint8_t {
42     RTCP_SDES_END = 0,
43     RTCP_SDES_CNAME = 1,
44     RTCP_SDES_NAME = 2,
45     RTCP_SDES_EMAIL = 3,
46     RTCP_SDES_PHONE = 4,
47     RTCP_SDES_LOC = 5,
48     RTCP_SDES_TOOL = 6,
49     RTCP_SDES_NOTE = 7,
50     RTCP_SDES_PRIVATE = 8,
51 };
52 
53 enum class PsfbType : uint8_t {
54     RTCP_PSFB_PLI = 1,  // Picture Loss Indication (PLI)
55     RTCP_PSFB_SLI = 2,  // Slice Loss Indication (SLI)
56     RTCP_PSFB_RPSI = 3, // Reference Picture Selection Indication (RPSI)
57     RTCP_PSFB_FIR = 4,  // Full Intra Request Command (FIR)
58     RTCP_PSFB_TSTR = 5, // Temporal-Spatial Trade-off Request (TSTR)
59     RTCP_PSFB_TSTN = 6, // Temporal-Spatial Trade-off Notification (TSTN)
60     RTCP_PSFB_VBCM = 7, // VBCM
61     RTCP_PSFB_REMB = 15 // REMB / Application layer FB (AFB) message
62 };
63 
64 enum class RtpfbType : uint8_t {
65     RTCP_RTPFB_NACK = 1,  // Generic NACK
66     RTCP_RTPFB_TMMBR = 3, // Temp. Max Media Stream Bitrate Request
67     RTCP_RTPFB_TMMBN = 4, // Temp. Max Media Stream Bitrate Notification
68     RTCP_RTPFB_TWCC = 15  // transport-cc
69 };
70 } // namespace Sharing
71 } // namespace OHOS
72 #endif