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
src
pipeline
node
Sync.cpp
Go to the documentation of this file.
1
#include "
depthai/pipeline/node/Sync.hpp
"
2
3
namespace
dai
{
4
namespace
node {
5
6
Sync::Sync
(
const
std::shared_ptr<PipelineImpl>& par, int64_t nodeId) :
Sync
(par, nodeId,
std
::make_unique<
Sync
::
Properties
>()) {}
7
Sync::Sync
(
const
std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props)
8
:
NodeCRTP
<
Node
,
Sync
,
SyncProperties
>(par, nodeId,
std
::move(props)),
9
inputs(
"inputs"
,
Input
(*this,
""
,
Input
::
Type
::SReceiver, {{
DatatypeEnum::Buffer
,
true
}})) {
10
setInputMapRefs
(&
inputs
);
11
setOutputRefs
({&
out
});
12
}
13
14
void
Sync::setSyncThreshold
(std::chrono::nanoseconds syncThreshold) {
15
properties
.
syncThresholdNs
= syncThreshold.count();
16
}
17
18
void
Sync::setSyncAttempts
(
int
syncAttempts) {
19
properties
.
syncAttempts
= syncAttempts;
20
}
21
22
std::chrono::nanoseconds
Sync::getSyncThreshold
()
const
{
23
return
std::chrono::nanoseconds(
properties
.
syncThresholdNs
);
24
}
25
26
int
Sync::getSyncAttempts
()
const
{
27
return
properties
.
syncAttempts
;
28
}
29
30
}
// namespace node
31
}
// namespace dai
dai::NodeCRTP< Node, Sync, SyncProperties >::properties
Properties & properties
Underlying properties.
Definition:
Node.hpp:346
dai::node::Sync
Definition:
Sync.hpp:11
dai::SyncProperties::syncThresholdNs
uint64_t syncThresholdNs
Definition:
SyncProperties.hpp:14
dai::node::Sync::Sync
Sync(const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
Definition:
Sync.cpp:6
dai::Node
Abstract Node.
Definition:
Node.hpp:29
dai::node::Sync::getSyncAttempts
int getSyncAttempts() const
Definition:
Sync.cpp:26
dai::DatatypeEnum::Buffer
@ Buffer
dai::NodeCRTP
Definition:
Node.hpp:342
dai::Node::setInputMapRefs
void setInputMapRefs(std::initializer_list< InputMap * > l)
dai::bootloader::Type
Type
Definition:
Type.hpp:11
dai::node::Sync::inputs
InputMap inputs
Definition:
Sync.hpp:21
dai::node::Sync::setSyncThreshold
void setSyncThreshold(std::chrono::nanoseconds syncThreshold)
Definition:
Sync.cpp:14
dai::node::Sync::getSyncThreshold
std::chrono::nanoseconds getSyncThreshold() const
Definition:
Sync.cpp:22
dai::Node::Input
Definition:
Node.hpp:147
dai::node::Sync::setSyncAttempts
void setSyncAttempts(int syncAttempts)
Definition:
Sync.cpp:18
dai::SyncProperties
Definition:
SyncProperties.hpp:10
Sync.hpp
dai::Properties
Base Properties structure.
Definition:
Properties.hpp:8
dai::Node::setOutputRefs
void setOutputRefs(std::initializer_list< Output * > l)
dai::SyncProperties::syncAttempts
int32_t syncAttempts
Definition:
SyncProperties.hpp:19
std
Definition:
Node.hpp:366
dai
Definition:
CameraExposureOffset.hpp:6
dai::node::Sync::out
Output out
Definition:
Sync.hpp:26
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19