21#include <catch2/catch_amalgamated.hpp>
29TEST_CASE(
"dev::frameGrabberCropperTest",
"[yarp::dev]")
34 Network::setLocalMode(
true);
36 SECTION(
"test the frameGrabberCropper mode")
38 constexpr size_t width = 320;
39 constexpr size_t height = 240;
44 p.
put(
"device",
"fakeFrameGrabber");
45 p.
put(
"width",
static_cast<int>(width * 2));
46 p.
put(
"height",
static_cast<int>(height));
52 pl.put(
"device",
"frameGrabberCropper");
55 pl.put(
"x2",
static_cast<int>(width - 1));
56 pl.put(
"y2",
static_cast<int>(height - 1));
79 pr.put(
"device",
"frameGrabberCropper");
80 pr.put(
"x1",
static_cast<int>(width));
81 pr.put(
"y1",
static_cast<int>(0));
82 pr.put(
"x2",
static_cast<int>((width * 2) - 1));
83 pr.put(
"y2",
static_cast<int>(height - 1));
110 SECTION(
"test the frameGrabberCropper control")
112 constexpr size_t width = 320;
113 constexpr size_t height = 240;
118 p.
put(
"device",
"fakeFrameGrabber");
119 p.
put(
"width",
static_cast<int>(width));
120 p.
put(
"height",
static_cast<int>(height));
126 pl.put(
"device",
"frameGrabberCropper");
129 pl.put(
"x2",
static_cast<int>(width - 1));
130 pl.put(
"y2",
static_cast<int>(height - 1));
158 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_params_test(yarp::dev::PolyDriver *pdrv)
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.