10#include <catch2/catch_amalgamated.hpp>
20#if defined(DISABLE_FAILING_VALGRIND_TESTS)
24 Network::setLocalMode(
true);
26 SECTION(
"test compression-decompression")
28 std::string
inName {
"/mjpeg/in"};
29 std::string
outName {
"/mjpeg/out"};
41 outImg.resize(width, height);
57 Network::setLocalMode(
false);
A mini-server for performing network communication in the background.
std::string getName() const override
Get name of port.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
void interrupt() override
Interrupt any current reads or writes attached to the port.
T * read(bool shouldWait=true) override
Read an available object from the port.
void write(bool forceStrict=false)
Write the current object being returned by BufferedPort::prepare.
T & prepare()
Access the object which will be transmitted by the next call to yarp::os::BufferedPort::write.
TEST_CASE("carriers::mjpeg", "[carriers]")
void delay(double seconds)
Wait for a certain number of seconds.
An interface to the operating system, including Port based communication.