|
11 | 11 | #include <string_view>
|
12 | 12 | #include <vector>
|
13 | 13 |
|
14 |
| -#include <wpi/deprecated.h> |
15 |
| - |
16 | 14 | #include "cscore_cv.h"
|
17 | 15 |
|
18 | 16 | namespace frc {
|
@@ -75,128 +73,6 @@ class CameraServer {
|
75 | 73 | */
|
76 | 74 | static cs::MjpegServer StartAutomaticCapture(const cs::VideoSource& camera);
|
77 | 75 |
|
78 |
| - WPI_IGNORE_DEPRECATED |
79 |
| - /** |
80 |
| - * Adds an Axis IP camera. |
81 |
| - * |
82 |
| - * This overload calls AddAxisCamera() with name "Axis Camera". |
83 |
| - * |
84 |
| - * @param host Camera host IP or DNS name (e.g. "10.x.y.11") |
85 |
| - * @deprecated Call StartAutomaticCapture with a HttpCamera instead. |
86 |
| - */ |
87 |
| - [[deprecated("Call StartAutomaticCapture with a HttpCamera instead.")]] |
88 |
| - static cs::AxisCamera AddAxisCamera(std::string_view host); |
89 |
| - |
90 |
| - /** |
91 |
| - * Adds an Axis IP camera. |
92 |
| - * |
93 |
| - * This overload calls AddAxisCamera() with name "Axis Camera". |
94 |
| - * |
95 |
| - * @param host Camera host IP or DNS name (e.g. "10.x.y.11") |
96 |
| - * @deprecated Call StartAutomaticCapture with a HttpCamera instead. |
97 |
| - */ |
98 |
| - [[deprecated("Call StartAutomaticCapture with a HttpCamera instead.")]] |
99 |
| - static cs::AxisCamera AddAxisCamera(const char* host); |
100 |
| - |
101 |
| - /** |
102 |
| - * Adds an Axis IP camera. |
103 |
| - * |
104 |
| - * This overload calls AddAxisCamera() with name "Axis Camera". |
105 |
| - * |
106 |
| - * @param host Camera host IP or DNS name (e.g. "10.x.y.11") |
107 |
| - * @deprecated Call StartAutomaticCapture with a HttpCamera instead. |
108 |
| - */ |
109 |
| - [[deprecated("Call StartAutomaticCapture with a HttpCamera instead.")]] |
110 |
| - static cs::AxisCamera AddAxisCamera(const std::string& host); |
111 |
| - |
112 |
| - /** |
113 |
| - * Adds an Axis IP camera. |
114 |
| - * |
115 |
| - * This overload calls AddAxisCamera() with name "Axis Camera". |
116 |
| - * |
117 |
| - * @param hosts Array of Camera host IPs/DNS names |
118 |
| - * @deprecated Call StartAutomaticCapture with a HttpCamera instead. |
119 |
| - */ |
120 |
| - [[deprecated("Call StartAutomaticCapture with a HttpCamera instead.")]] |
121 |
| - static cs::AxisCamera AddAxisCamera(std::span<const std::string> hosts); |
122 |
| - |
123 |
| - /** |
124 |
| - * Adds an Axis IP camera. |
125 |
| - * |
126 |
| - * This overload calls AddAxisCamera() with name "Axis Camera". |
127 |
| - * |
128 |
| - * @param hosts Array of Camera host IPs/DNS names |
129 |
| - * @deprecated Call StartAutomaticCapture with a HttpCamera instead. |
130 |
| - */ |
131 |
| - template <typename T> |
132 |
| - [[deprecated("Call StartAutomaticCapture with a HttpCamera instead.")]] |
133 |
| - static cs::AxisCamera AddAxisCamera(std::initializer_list<T> hosts) { |
134 |
| - return AddAxisCamera("Axis Camera", hosts); |
135 |
| - } |
136 |
| - |
137 |
| - /** |
138 |
| - * Adds an Axis IP camera. |
139 |
| - * |
140 |
| - * @param name The name to give the camera |
141 |
| - * @param host Camera host IP or DNS name (e.g. "10.x.y.11") |
142 |
| - * @deprecated Call StartAutomaticCapture with a HttpCamera instead. |
143 |
| - */ |
144 |
| - [[deprecated("Call StartAutomaticCapture with a HttpCamera instead.")]] |
145 |
| - static cs::AxisCamera AddAxisCamera(std::string_view name, |
146 |
| - std::string_view host); |
147 |
| - |
148 |
| - /** |
149 |
| - * Adds an Axis IP camera. |
150 |
| - * |
151 |
| - * @param name The name to give the camera |
152 |
| - * @param host Camera host IP or DNS name (e.g. "10.x.y.11") |
153 |
| - * @deprecated Call StartAutomaticCapture with a HttpCamera instead. |
154 |
| - */ |
155 |
| - [[deprecated("Call StartAutomaticCapture with a HttpCamera instead.")]] |
156 |
| - static cs::AxisCamera AddAxisCamera(std::string_view name, const char* host); |
157 |
| - |
158 |
| - /** |
159 |
| - * Adds an Axis IP camera. |
160 |
| - * |
161 |
| - * @param name The name to give the camera |
162 |
| - * @param host Camera host IP or DNS name (e.g. "10.x.y.11") |
163 |
| - * @deprecated Call StartAutomaticCapture with a HttpCamera instead. |
164 |
| - */ |
165 |
| - [[deprecated("Call StartAutomaticCapture with a HttpCamera instead.")]] |
166 |
| - static cs::AxisCamera AddAxisCamera(std::string_view name, |
167 |
| - const std::string& host); |
168 |
| - |
169 |
| - /** |
170 |
| - * Adds an Axis IP camera. |
171 |
| - * |
172 |
| - * @param name The name to give the camera |
173 |
| - * @param hosts Array of Camera host IPs/DNS names |
174 |
| - * @deprecated Call StartAutomaticCapture with a HttpCamera instead. |
175 |
| - */ |
176 |
| - [[deprecated("Call StartAutomaticCapture with a HttpCamera instead.")]] |
177 |
| - static cs::AxisCamera AddAxisCamera(std::string_view name, |
178 |
| - std::span<const std::string> hosts); |
179 |
| - |
180 |
| - /** |
181 |
| - * Adds an Axis IP camera. |
182 |
| - * |
183 |
| - * @param name The name to give the camera |
184 |
| - * @param hosts Array of Camera host IPs/DNS names |
185 |
| - * @deprecated Call StartAutomaticCapture with a HttpCamera instead. |
186 |
| - */ |
187 |
| - template <typename T> |
188 |
| - [[deprecated("Call StartAutomaticCapture with a HttpCamera instead.")]] |
189 |
| - static cs::AxisCamera AddAxisCamera(std::string_view name, |
190 |
| - std::initializer_list<T> hosts) { |
191 |
| - std::vector<std::string> vec; |
192 |
| - vec.reserve(hosts.size()); |
193 |
| - for (const auto& host : hosts) { |
194 |
| - vec.emplace_back(host); |
195 |
| - } |
196 |
| - return AddAxisCamera(name, vec); |
197 |
| - } |
198 |
| - WPI_UNIGNORE_DEPRECATED |
199 |
| - |
200 | 76 | /**
|
201 | 77 | * Adds a virtual camera for switching between two streams. Unlike the
|
202 | 78 | * other addCamera methods, this returns a VideoSink rather than a
|
|
0 commit comments