20#include <catch2/catch_amalgamated.hpp>
28TEST_CASE(
"dev::frameGrabberCropperTest",
"[yarp::dev]")
33 Network::setLocalMode(
true);
35 SECTION(
"test the frameGrabberCropper mode")
37 constexpr size_t width = 320;
38 constexpr size_t height = 240;
43 p.
put(
"device",
"fakeFrameGrabber");
44 p.
put(
"width",
static_cast<int>(width * 2));
45 p.
put(
"height",
static_cast<int>(height));
51 pl.put(
"device",
"frameGrabberCropper");
54 pl.put(
"x2",
static_cast<int>(width - 1));
55 pl.put(
"y2",
static_cast<int>(height - 1));
78 pr.put(
"device",
"frameGrabberCropper");
79 pr.put(
"x1",
static_cast<int>(width));
80 pr.put(
"y1",
static_cast<int>(0));
81 pr.put(
"x2",
static_cast<int>((width * 2) - 1));
82 pr.put(
"y2",
static_cast<int>(height - 1));
108 SECTION(
"test the frameGrabberCropper control")
110 constexpr size_t width = 320;
111 constexpr size_t height = 240;
116 p.
put(
"device",
"fakeFrameGrabber");
117 p.
put(
"width",
static_cast<int>(width));
118 p.
put(
"height",
static_cast<int>(height));
124 pl.put(
"device",
"frameGrabberCropper");
127 pl.put(
"x2",
static_cast<int>(width - 1));
128 pl.put(
"y2",
static_cast<int>(height - 1));
156 Network::setLocalMode(
false);
bool view(T *&x)
Get an interface to the device driver.
Control interface for frame grabber devices that conform to the 1394-based Digital Camera Specificati...
Control interface for frame grabber devices.
An interface for retrieving intrinsic parameter from a rgb camera.
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]")
void exec_IFrameGrabberControlsDC1394_test_1(IFrameGrabberControlsDC1394 *ictl)
void exec_IFrameGrabberControls_test_1(IFrameGrabberControls *ictl)
void exec_IRgbVisualParams_test_1(IRgbVisualParams *irgb)
void exec_IFrameGrabberImage_test_1(IFrameGrabberImage *iframe)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.