Skip to content

Commit 92e7508

Browse files
committed
Add missing header
1 parent 37cce94 commit 92e7508

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

include/ccap_def.h

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author wysaid (this@wysaid.org)
44
* @brief Some basic type definitions
55
* @date 2025-05
6-
*
6+
*
77
* @note For C language, use ccap_c.h instead of this header.
88
*
99
*/
@@ -41,6 +41,7 @@
4141
#include <functional>
4242
#include <memory>
4343
#include <string>
44+
#include <string_view>
4445
#include <vector>
4546

4647
// ccap is short for (C)amera(CAP)ture
@@ -226,46 +227,46 @@ enum class PropertyName {
226227
enum class ErrorCode {
227228
/// No error occurred
228229
None = 0,
229-
230+
230231
/// No camera device found or device discovery failed
231232
NoDeviceFound = 0x1001,
232-
233+
233234
/// Invalid device name or device index
234235
InvalidDevice = 0x1002,
235-
236+
236237
/// Camera device open failed
237238
DeviceOpenFailed = 0x1003,
238-
239+
239240
/// Camera start failed
240241
DeviceStartFailed = 0x1004,
241-
242+
242243
/// Camera stop failed
243244
DeviceStopFailed = 0x1005,
244-
245+
245246
/// Initialization failed
246247
InitializationFailed = 0x1006,
247-
248+
248249
/// Requested resolution is not supported
249250
UnsupportedResolution = 0x2001,
250-
251+
251252
/// Requested pixel format is not supported
252253
UnsupportedPixelFormat = 0x2002,
253-
254+
254255
/// Frame rate setting failed
255256
FrameRateSetFailed = 0x2003,
256-
257+
257258
/// Property setting failed
258259
PropertySetFailed = 0x2004,
259-
260+
260261
/// Frame capture timeout
261262
FrameCaptureTimeout = 0x3001,
262-
263+
263264
/// Frame capture failed
264265
FrameCaptureFailed = 0x3002,
265-
266+
266267
/// Memory allocation failed
267268
MemoryAllocationFailed = 0x4001,
268-
269+
269270
/// Unknown or internal error
270271
InternalError = 0x9999,
271272
};

0 commit comments

Comments
 (0)