11#include <catch2/catch_amalgamated.hpp>
19TEST_CASE(
"dev::frameGrabberCropperTest",
"[yarp::dev]")
24 Network::setLocalMode(
true);
26 SECTION(
"test the frameGrabberCropper mode")
28 constexpr size_t width = 320;
29 constexpr size_t height = 240;
34 p.
put(
"device",
"fakeFrameGrabber");
35 p.
put(
"width",
static_cast<int>(width * 2));
36 p.
put(
"height",
static_cast<int>(height));
42 pl.put(
"device",
"frameGrabberCropper");
45 pl.put(
"x2",
static_cast<int>(width - 1));
46 pl.put(
"y2",
static_cast<int>(height - 1));
69 pr.put(
"device",
"frameGrabberCropper");
70 pr.put(
"x1",
static_cast<int>(width));
71 pr.put(
"y1",
static_cast<int>(0));
72 pr.put(
"x2",
static_cast<int>((width * 2) - 1));
73 pr.put(
"y2",
static_cast<int>(height - 1));
99 Network::setLocalMode(
false);
Interface for an object that can wrap/or "attach" to another.
A container for a device driver.
bool close() override
Close the DeviceDriver.
bool open(const std::string &txt)
Construct and configure a device by its common name.
A mini-server for performing network communication in the background.
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.
A class for storing options and configuration information.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
TEST_CASE("dev::frameGrabberCropperTest", "[yarp::dev]")
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.