YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
IFrameGrabberControlsDC1394Test.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef IFRAMEGRABBERCONTROLSDC1394TEST_H
7#define IFRAMEGRABBERCONTROLSDC1394TEST_H
8
9#include <array>
11#include <catch2/catch_amalgamated.hpp>
12
13using namespace yarp::dev;
14using namespace yarp::os;
15
16namespace yarp::dev::tests
17{
19 {
21
22 // Check getBytesPerPacketDC1394()
23 {
24 unsigned int bpp = 0;
25 CHECK(ictl->getBytesPerPacketDC1394(bpp));
26 }
27
28 // Check getColorCodingDC1394()
29 {
30 unsigned int val = 0;
31 CHECK(ictl->getColorCodingDC1394(val));
32 }
33
34 // Check getColorCodingMaskDC1394()
35 {
36 unsigned int val = 0;
37 CHECK(ictl->getColorCodingMaskDC1394(0,val));
38 }
39
40 // Check getFormat7MaxWindowDC1394()
41 {
42 unsigned int xdim = 0;
43 unsigned int ydim = 0;
44 unsigned int xstep = 0;
45 unsigned int ystep = 0;
46 unsigned int xoffstep = 0;
47 unsigned int yoffstep = 0;
48 CHECK(ictl->getFormat7MaxWindowDC1394(xdim,ydim,xstep,ystep,xoffstep,yoffstep));
49 }
50
51 // Check getFormat7MaxWindowDC1394()
52 {
53 unsigned int xdim = 0;
54 unsigned int ydim = 0;
55 int x0 = 0;
56 int y0 = 0;
57 CHECK(ictl->getFormat7WindowDC1394(xdim,ydim,x0,y0));
58 }
59
60 // Check getFPSDC1394()
61 {
62 unsigned int val = 0;
63 CHECK(ictl->getFPSDC1394(val));
64 }
65
66 // Check getFPSMaskDC1394()
67 {
68 unsigned int val = 0;
69 CHECK(ictl->getFPSMaskDC1394(val));
70 }
71
72 // Check getISOSpeedDC1394()
73 {
74 unsigned int val = 0;
75 CHECK(ictl->getISOSpeedDC1394(val));
76 }
77
78 // Check getOperationModeDC1394()
79 {
80 bool val = false;
81 CHECK(ictl->getOperationModeDC1394(val));
82 }
83
84 // Check getTransmissionDC1394()
85 {
86 bool val = false;
87 CHECK(ictl->getTransmissionDC1394(val));
88 }
89
90 // Check getVideoModeDC1394()
91 {
92 unsigned int val = 0;
93 CHECK(ictl->getVideoModeDC1394(val));
94 }
95
96 // Check getVideoModeDC1394()
97 {
98 unsigned int val = 0;
99 CHECK(ictl->getVideoModeMaskDC1394(val));
100 }
101
102 // Check setBroadcastDC1394()
103 {
104 bool val = true;
105 CHECK(ictl->setBroadcastDC1394(val));
106 }
107
108 // Check setBytesPerPacketDC1394()
109 {
110 unsigned int bpp = 0;
111 CHECK(ictl->setBytesPerPacketDC1394(bpp));
112 }
113
114 // Check setCaptureDC1394()
115 {
116 bool bon = true;
117 CHECK(ictl->setCaptureDC1394(bon));
118 }
119
120 // Check setColorCodingDC1394()
121 {
122 int coding = 0;
123 CHECK(ictl->setColorCodingDC1394(coding));
124 }
125
126 // Check setDefaultsDC1394()
127 {
128 CHECK(ictl->setDefaultsDC1394());
129 }
130
131 // Check setFormat7MaxWindowDC1394()
132 {
133 unsigned int xdim = 0;
134 unsigned int ydim = 0;
135 int x0 = 0;
136 int y0 = 0;
137 CHECK(ictl->setFormat7WindowDC1394(xdim,ydim,x0,y0));
138 }
139
140 // Check setFPSDC1394()
141 {
142 unsigned int val = 0;
143 CHECK(ictl->setFPSDC1394(val));
144 }
145
146 // Check setISOSpeedDC1394()
147 {
148 unsigned int val = 0;
149 CHECK(ictl->setISOSpeedDC1394(val));
150 }
151
152 // Check setOperationModeDC1394()
153 {
154 bool val = true;
155 CHECK(ictl->setOperationModeDC1394(val));
156 }
157
158 // Check setPowerDC1394()
159 {
160 bool onoff = true;
161 CHECK(ictl->setPowerDC1394(onoff));
162 }
163
164 // Check setResetDC1394()
165 {
166 CHECK(ictl->setResetDC1394());
167 }
168
169 // Check setTransmissionDC1394()
170 {
171 bool onoff = true;
172 CHECK(ictl->setTransmissionDC1394(onoff));
173 }
174
175 // Check setVideoModeDC1394()
176 {
177 int mode = 0;
178 CHECK(ictl->setVideoModeDC1394(mode));
179 }
180 }
181}
182
183#endif
FeatureMode mode
Control interface for frame grabber devices that conform to the 1394-based Digital Camera Specificati...
A mini-server for performing network communication in the background.
void exec_IFrameGrabberControlsDC1394_test_1(IFrameGrabberControlsDC1394 *ictl)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.