Go to the documentation of this file. 1 #include <catch2/catch_all.hpp>
6 using namespace std::chrono;
7 using namespace std::chrono_literals;
12 std::vector<std::uint8_t>
data(w * h * 3);
17 x_in->setMaxDataSize(
data.size());
20 x_in->out.link(x_out->input);
39 auto t1 = steady_clock::now();
42 auto retFrm = outQ->tryGet();
47 }
while(steady_clock::now() - t1 <
TIMEOUT);
49 FAIL(
"Timeout receiving back the sent message");
52 TEST_CASE(
"Test XLinkIn->XLinkOut passthrough with random 1000x1000 frame") {
56 TEST_CASE(
"Test XLinkIn->XLinkOut passthrough with random 2000x1000 frame") {
60 TEST_CASE(
"Test XLinkIn->XLinkOut passthrough with random 4000x3000 frame") {
XLinkOut node. Sends messages over XLink.
Represents the pipeline, set of nodes and connections between them.
static void test_xlink_roundtrip(int w, int h)
ImgFrame & setSequenceNum(int64_t seq)
TEST_CASE("Test XLinkIn->XLinkOut passthrough with random 1000x1000 frame")
ImgFrame & setWidth(unsigned int width)
constexpr auto data(C &c) -> decltype(c.data())
std::shared_ptr< DataOutputQueue > getOutputQueue(const std::string &name)
std::shared_ptr< N > create()
void setStreamName(const std::string &name)
int64_t getSequenceNum() const
ImgFrame & setType(Type type)
ImgFrame & setHeight(unsigned int height)
XLinkIn node. Receives messages over XLink.
std::shared_ptr< DataInputQueue > getInputQueue(const std::string &name)
void setStreamName(const std::string &name)
void setData(const std::vector< std::uint8_t > &data)
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19