Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
include
depthai
pipeline
datatype
StreamMessageParser.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// standard
4
#include <memory>
5
6
// libraries
7
#include <XLink/XLinkPublicDefines.h>
8
9
// project
10
#include "
depthai-shared/datatype/DatatypeEnum.hpp
"
11
#include "
depthai-shared/datatype/RawMessageGroup.hpp
"
12
#include "
depthai/pipeline/datatype/ADatatype.hpp
"
13
14
// shared
15
#include "
depthai-shared/datatype/RawBuffer.hpp
"
16
17
// StreamPacket structure -> || imgframepixels... , serialized_object, object_type, serialized_object_size ||
18
// object_type -> DataType(int), serialized_object_size -> int
19
20
namespace
dai
{
21
class
StreamMessageParser
{
22
public
:
23
static
std::shared_ptr<RawBuffer>
parseMessage
(streamPacketDesc_t*
const
packet);
24
static
std::shared_ptr<ADatatype>
parseMessageToADatatype
(streamPacketDesc_t*
const
packet);
25
static
std::shared_ptr<ADatatype>
parseMessageToADatatype
(streamPacketDesc_t*
const
packet,
DatatypeEnum
&
type
);
26
static
std::vector<std::uint8_t>
serializeMessage
(
const
std::shared_ptr<const RawBuffer>&
data
);
27
static
std::vector<std::uint8_t>
serializeMessage
(
const
RawBuffer
&
data
);
28
static
std::vector<std::uint8_t>
serializeMessage
(
const
std::shared_ptr<const ADatatype>&
data
);
29
static
std::vector<std::uint8_t>
serializeMessage
(
const
ADatatype
&
data
);
30
};
31
}
// namespace dai
dai::StreamMessageParser::parseMessageToADatatype
static std::shared_ptr< ADatatype > parseMessageToADatatype(streamPacketDesc_t *const packet)
Definition:
StreamMessageParser.cpp:349
dai::DatatypeEnum
DatatypeEnum
Definition:
DatatypeEnum.hpp:7
dai::ADatatype
Abstract message.
Definition:
ADatatype.hpp:11
dai::StreamMessageParser::serializeMessage
static std::vector< std::uint8_t > serializeMessage(const std::shared_ptr< const RawBuffer > &data)
Definition:
StreamMessageParser.cpp:384
DatatypeEnum.hpp
DAI_SPAN_NAMESPACE_NAME::detail::data
constexpr auto data(C &c) -> decltype(c.data())
Definition:
span.hpp:177
ADatatype.hpp
RawMessageGroup.hpp
RawBuffer.hpp
nanorpc::core::detail::pack::meta::type
type
Definition:
pack_meta.h:26
dai::StreamMessageParser
Definition:
StreamMessageParser.hpp:21
dai::RawBuffer
RawBuffer structure.
Definition:
RawBuffer.hpp:12
dai::StreamMessageParser::parseMessage
static std::shared_ptr< RawBuffer > parseMessage(streamPacketDesc_t *const packet)
Definition:
StreamMessageParser.cpp:132
dai
Definition:
CameraExposureOffset.hpp:6
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19