Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Toggle main menu visibility
Loading...
Searching...
No Matches
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.
29
packet::stream_source_t
ssrc
;
30
};
31
32
//! Parsed SDES item.
33
struct
SdesItem {
34
SdesItem()
35
:
type
(
header::SdesItemType
(0))
36
,
text
(NULL) {
37
}
38
39
//! Item type.
40
header::SdesItemType
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_
roc::packet::stream_source_t
uint32_t stream_source_t
Packet stream identifier.
Definition
units.h:27
roc::rtcp
RTCP protocol support.
roc
Root namespace.
headers.h
RTCP headers.
roc::rtcp::header::SdesItemType
SdesItemType
SDES item type.
Definition
headers.h:725
stddefs.h
Commonly used types and functions.
roc::rtcp::SdesChunk::ssrc
packet::stream_source_t ssrc
Source ID.
Definition
sdes.h:29
roc::rtcp::SdesItem::text
const char * text
Item text. Zero-terminated UTF-8 string. Can't be larger than SdesItemHeader::MaxTextLen.
Definition
sdes.h:45
roc::rtcp::SdesItem::type
header::SdesItemType type
Item type.
Definition
sdes.h:40
units.h
Various units used in packets.
roc_rtcp
sdes.h
Generated by
1.17.0