Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
sdes.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2022 Roc Streaming authors
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 
9 //! @file roc_rtcp/sdes.h
10 //! @brief SDES elements.
11 
12 #ifndef ROC_RTCP_SDES_H_
13 #define ROC_RTCP_SDES_H_
14 
15 #include "roc_core/stddefs.h"
16 #include "roc_packet/units.h"
17 #include "roc_rtcp/headers.h"
18 
19 namespace roc {
20 namespace rtcp {
21 
22 //! Parsed SDES chunk.
23 struct SdesChunk {
24  SdesChunk()
25  : ssrc(0) {
26  }
27 
28  //! Source ID.
30 };
31 
32 //! Parsed SDES item.
33 struct SdesItem {
34  SdesItem()
36  , text(NULL) {
37  }
38 
39  //! Item type.
41 
42  //! Item text.
43  //! Zero-terminated UTF-8 string.
44  //! Can't be larger than SdesItemHeader::MaxTextLen.
45  const char* text;
46 };
47 
48 } // namespace rtcp
49 } // namespace roc
50 
51 #endif // ROC_RTCP_SDES_H_
uint32_t stream_source_t
Packet stream identifier.
Definition: units.h:27
Root namespace.
RTCP headers.
SdesItemType
SDES item type.
Definition: headers.h:725
Commonly used types and functions.
Parsed SDES chunk.
Definition: sdes.h:23
packet::stream_source_t ssrc
Source ID.
Definition: sdes.h:29
Parsed SDES item.
Definition: sdes.h:33
const char * text
Item text. Zero-terminated UTF-8 string. Can't be larger than SdesItemHeader::MaxTextLen.
Definition: sdes.h:45
header::SdesItemType type
Item type.
Definition: sdes.h:40
Various units used in packets.