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.
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
const
char
*
text
;
45
};
46
47
}
// namespace rtcp
48
}
// namespace roc
49
50
#endif
// ROC_RTCP_SDES_H_
roc::packet::stream_source_t
uint32_t stream_source_t
Packet stream identifier.
Definition:
units.h:27
roc
Root namespace.
headers.h
RTCP headers.
roc::rtcp::header::SdesItemType
SdesItemType
SDES item type.
Definition:
headers.h:676
stddefs.h
Commonly used types and functions.
roc::rtcp::SdesChunk
Parsed SDES chunk.
Definition:
sdes.h:23
roc::rtcp::SdesChunk::ssrc
packet::stream_source_t ssrc
Source ID.
Definition:
sdes.h:29
roc::rtcp::SdesItem
Parsed SDES item.
Definition:
sdes.h:33
roc::rtcp::SdesItem::text
const char * text
Item text. Zero-terminated UTF-8 string.
Definition:
sdes.h:44
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.9.1