1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
/**
* @file Scepter_api.h
* @brief Scepter API header file.
* Copyright (c) 2024 Goermicro Inc.
*/
/*! \mainpage Scepter API Documentation
*
* \section intro_sec Introduction
*
* Welcome to the Scepter API documentation. This documentation enables you to quickly get started in your
* development efforts to programmatically interact with the Scepter CW ToF Camera.
*/
/**
* @brief Initializes the API on the device. This function must be invoked before any other Scepter APIs.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Shuts down the API on the device and clears all resources allocated by the API. After
* invoking this function, no other Scepter APIs can be invoked.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the version of SDK.
* @return Returns sdk version.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the number of camera devices currently connected.
* @param[out] pDeviceCount Pointer to a 32-bit integer variable in which to return the device count.
* @param[in] scanTime Scans time, the unit is millisecond.
This function scans devices for scanTime(ms) and then returns the count of devices.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the info lists of the deviceCount camera devices.
* @param[in] deviceCount The number of camera devices.
* @param[out] pDevicesInfoList Pointer to a buffer in which to store the devices list infos.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Opens the device specified by <code>serialNumber</code>. The device must be subsequently closed using scCloseDevice().
* @param[in] pSN The uri of the device. See ::ScDeviceInfo for more information.
* @param[out] pDevice The handle of the device on which to open.
* @return: ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Opens the device specified by <code>ip</code>. The device must be subsequently closed using scCloseDevice().
* @param[in] pIP The ip of the device. See ::ScDeviceInfo for more information.
* @param[out] pDevice The handle of the device on which to open.
* @return: ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Closes the device specified by <code>device</code> that was opened using scOpenDevice.
* @param[in] pDevice The handle of the device to close.
* @return: ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Starts capturing the image stream indicated by <code>device</code>. Invoke scStopStream() to stop capturing the image stream.
* @param[in] device The handle of the device on which to start capturing the image stream.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Stops capturing the image stream on the device specified by <code>device</code>. that was started using scStartStream.
* @param[in] device The handle of the device on which to stop capturing the image stream.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Captures the next image frame from the device specified by <code>device</code>. This API must be invoked before capturing frame data using scGetFrame().
* @param[in] device The handle of the device on which to read the next frame.
* @param[in] waitTime The unit is millisecond, the value is in the range (0,65535).
* You can change the value according to the frame rate. For example,the frame rate is 30, so the theoretical waittime interval is 33ms,
* but if set the time value is 20ms, it means the maximum wait time is 20 ms when capturing next frame, so when call the scGetFrameReady,
* it may return SC_GET_FRAME_READY_TIME_OUT(-11).
* So the recommended value is 2 * 1000/ FPS.
* @param[out] pFrameReady Pointer to a buffer in which to store the signal on which image is ready to be get.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the image data for the current frame from the device specified by <code>device</code>.
* Before invoking this API, invoke scGetFrameReady() to capture one image frame from the device.
* @param[in] device The handle of the device to capture an image frame from.
* @param[in] frameType The image frame type.
* @param[out] pScFrame Pointer to a buffer in which to store the returned image data.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the depth range in the current working mode of the device.
* @param[in] device The handle of the device.
* @param[out] minValue The min value of the depth
* @param[out] maxValue The ax value of the depth
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the internal intrinsic and distortion coefficient parameters from the device specified by <code>device</code>.
* @param[in] device The handle of the device from which to get the internal parameters.
* @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.
* @param[out] pSensorIntrinsicParameters Pointer to a ScSensorIntrinsicParameters variable in which to store the parameter values.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the camera rotation and translation coefficient parameters from the device specified by <code>device</code>.
* @param[in] device The handle of the device from which to get the extrinsic parameters.
* @param[out] pSensorExtrinsicParameters Pointer to a ::ScSensorExtrinsicParameters variable in which to store the parameters.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the firmware version number.
* @param[in] device The handle of the device on which to set the pulse count.
* @param[out] pFirmwareVersion Pointer to a variable in which to store the returned fw value.
* @param[in] length The maximum length is 64 bytes.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the MAC from the device specified by <code>device</code>.
* @param[in] device The handle of the device.
* @param[out] pMACAddress Pointer to a buffer in which to store the device MAC address. the buffer default size is 18, and the last buffer set '\0'.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Enables or disables DHCP. Default disabled
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the Boolean value of whether the device is in DHCP or not.
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[out] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the IP address of the device in non-DHCP mode. The call takes effect after the device is restarted.
* @param[in] device The handle of the device.
* @param[in] ipAddr Pointer to a buffer in which to store the device IP address. the buffer default size is 16, and the last buffer set '\0'.
* @param[in] length The length of the buffer.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the IP address of the device in non-DHCP mode.
* @param[in] device The handle of the device.
* @param[out] ipAddr Pointer to a buffer in which to store the device IP address. the buffer default size is 16, and the last buffer set '\0'.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the subnet mask of the device in non-DHCP mode. The call takes effect after the device is restarted.
* @param[in] device The handle of the device.
* @param[in] pMask Pointer to a buffer in which to store the subnet mask address. the buffer default size is 16, and the last buffer set '\0'.
* @param[in] length The length of the buffer.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the subnet mask of the device in non-DHCP mode.
* @param[in] device The handle of the device.
* @param[out] pMask Pointer to a buffer in which to store the device subnet mask address. the buffer default size is 16, and the last buffer set '\0'.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the parameters for time sync, such as enable the NTP/PTP
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[in] params The parameters defined by ::ScTimeSyncConfig.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the parameters for time sync,such as the status of the NTP/PTP
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[out] pParams Pointer to a variable in which to store the returned value.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the ToF frame rate.The interface takes a long time, about 500 ms.
* @param[in] device The handle of the device on which to set the framerate.
* @param[in] value The rate value. Different products have different maximum values. Please refer to the product specification.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the ToF frame rate.
* @param[in] device The handle of the device on which to get the framerate.
* @param[out] pValue The rate value.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the working mode of the camera.
* @param[in] device The handle of the device.
* @param[in] mode The work mode of camera. For ActiveMode, set the Time filter default true, for SlaveMode, set the Time filter default false.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the working mode of the camera.
* @param[in] device The handle of the device.
* @param[out] pMode The work mode of camera.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the count of frame in SC_SOFTWARE_TRIGGER_MODE.
* The more frames there are, the better frame's quality after algorithm processing
* @param[in] device The handle of the device on which to set the parameter
* @param[in] frameCount The count of frame, in range [1,10].
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the count of framer in SC_SOFTWARE_TRIGGER_MODE.
* @param[in] device The handle of the device from which to get the parameter
* @param[out] pframeCount Pointer to a variable in which to store the count of frame, in range [1,10].
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get a frame in SC_SOFTWARE_TRIGGER_MODE.
* Call the scSetSoftwareTriggerParameter API to improve the quality of depth frame.
* @param[in] device The handle of the device.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the input signal parameters for Hardware Trigger.
* @param[in] device The handle of the device
* @param[in] params Pointer to a variable in which to store the parameters.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the Input signal parameters for Hardware Trigger.
* @param[in] device The handle of the device
* @param[out] pParams Pointer to a variable in which to store the returned value.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the device GMM gain on a device.
* @param[in] device The handle of the device on which to set the GMM gain.
* @param[in] gmmgain The value of IRGMM Gain. Different products have different maximum value. Please refer to the product specification.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the the device's GMM gain.
* @param[in] device The handle of the device from which to get the GMM gain.
* @param[out] pGmmgain Pointer to a variable in which to store the returned GMM gain.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the device IR GMM Correction on a device.
* @param[in] device The handle of the device.
* @param[in] params The value of IR GMM Correction.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Return the device IR GMM Correction on a device.
* @param[in] device The handle of the device.
* @param[out] params The value of IR GMM Correction.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the color image pixel format on the device specified by <code>device</code>. Currently only RGB and BGR formats are supported.
* @param[in] device The handle of the device to set the pixel format.
* @param[in] pixelFormat The color pixel format to use. Pass in one of the values defined by ::ScPixelFormat. Others cameras support only
* <code>SC_PIXEL_FORMAT_RGB_888_JPEG</code> and <code>SC_PIXEL_FORMAT_BGR_888_JPEG</code>.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the color Gain with the exposure mode of Color sensor in SC_EXPOSURE_CONTROL_MODE_MANUAL.
* @param[in] device The handle of the device.
* @param[in] params The value of color Gain.Different products have different maximum value. Please refer to the product specification.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the color Gain.
* @param[in] device The handle of the device.
* @param[out] params The value of color Gain.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get a list of image resolutions supported by Sensor
* @param[in] device The handle of the device.
* @param[in] type The sensor type
* @param[out] pList List of supported resolutions
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the color frame Resolution.
* @param[in] device The handle of the device.
* @param[in] w The width of color image
* @param[in] h The height of color image
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the the color frame Resolution.
* @param[in] device The handle of the device.
* @param[out] pW The width of color image
* @param[out] pH The height of color image
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the exposure mode of sensor.
* @param[in] device The handle of the device on which to set the exposure control mode.
* @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.
* @param[in] exposureType The exposure control mode.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the exposure mode of sensor.
* @param[in] device The handle of the device on which to get the exposure control mode.
* @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.
* @param[out] pControlMode The exposure control mode.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the exposure time of sensor.
* @param[in] device The handle of the device on which to set the exposure time in microseconds.
* @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.
* @param[in] exposureTime The exposure time. The value must be within the maximum exposure time of sensor.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the exposure time of sensor.
* @param[in] device The handle of the device on which to get the exposure time in microseconds.
* @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.
* @param[out] pExposureTime The exposure time.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the maximum exposure time of color sensor in automatic mode. The interface is used in automatic mode.
* @param[in] device The handle of the device on which to set the exposure time in microseconds.
* @param[in] exposureTime The exposure time. The value must be within the maximum exposure time of sensor.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the maximum exposure time of color sensor in automatic mode. The interface is used in automatic mode.
* @param[in] device The handle of the device on which to get the exposure time in microseconds.
* @param[out] pExposureTime The exposure time.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the maximum exposure time of sensor.
* @param[in] device The handle of the device on which to get the exposure time in microseconds.
* @param[in] sensorType The type of sensor (depth or color) from which to get parameter information. Pass in the applicable value defined by ::ScSensorType.
* @param[out] pMaxExposureTime The maximum exposure time. The maximum exposure time is different at different frame rates.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Enables or disables the HDR Mode of the ToF sensor with SC_EXPOSURE_CONTROL_MODE_MANUAL. Default enabled,
* so if you want switch to the SC_EXPOSURE_CONTROL_MODE_AUTO, set HDR Mode disable firstly.
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the Boolean value of whether the HDR Mode of ToF sensor feature is enabled or disabled.
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[out] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the count of frame in HDR mode.
* @param[in] device The handle of the device on which to get the exposure time in microseconds.
* @param[out] pCount The frame count.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the exposure time of depth sensor with the frameIndex in HDR mode.
* @param[in] device The handle of the device on which to set the exposure time in microseconds.
* @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfHDRMode).
* @param[in] exposureTime The exposure time. The value must be within the maximum exposure time of sensor.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the exposure time of depth sensor with the frameIndex in HDR mode.
* @param[in] device The handle of the device on which to get the exposure time in microseconds.
* @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfHDRMode).
* @param[out] pExposureTime The exposure time.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the maximum exposure time of depth sensor with the frameIndex in HDR mode.
* @param[in] device The handle of the device on which to get the exposure time in microseconds.
* @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfHDRMode).
* @param[out] pMaxExposureTime The maximum exposure time. The maximum exposure time is different at different frame rates.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Enables or disables the WDR Mode of the ToF sensor. Default enabled
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the Boolean value of whether the WDRMode of ToF sensor feature is enabled or disabled.
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[out] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the count of frame in WDR mode.
* @param[in] device The handle of the device on which to get the exposure time in microseconds.
* @param[out] pCount The frame count.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the exposure time of depth sensor with the frameIndex in WDR mode.
* @param[in] device The handle of the device on which to set the exposure time in microseconds.
* @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfWDRMode).
* @param[in] exposureTime The exposure time. The value must be within the maximum exposure time of sensor.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the exposure time of depth sensor with the frameIndex in WDR mode.
* @param[in] device The handle of the device on which to get the exposure time in microseconds.
* @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfWDRMode).
* @param[out] pExposureTime The exposure time.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the maximum exposure time of depth sensor with the frameIndex in WDR mode.
* @param[in] device The handle of the device on which to get the exposure time in microseconds.
* @param[in] frameIndex The frameIndex from 0 to the count (get by scGetFrameCountOfWDRMode).
* @param[out] pMaxExposureTime The maximum exposure time. The maximum exposure time is different at different frame rates.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the parameters of the Time filter.
* @param[in] device The handle of the device
* @param[in] params Pointer to a variable in which to store the parameters.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the parameters of the Time Filter feature.
* @param[in] device The handle of the device
* @param[out] pParams Pointer to a variable in which to store the returned value.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the parameters of the Confidence filter.
* @param[in] device The handle of the device
* @param[in] params Pointer to a variable in which to store the parameters.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the parameters of the ConfidenceFilter feature.
* @param[in] device The handle of the device
* @param[out] pParams Pointer to a variable in which to store the returned value.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the parameters of the FlyingPixel filter.
* @param[in] device The handle of the device.
* @param[in] params Pointer to a variable in which to store the parameters.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get the parameters of the FlyingPixel filter.
* @param[in] device The handle of the device
* @param[out] pParams Pointer to a variable in which to store the returned value.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Enables or disables the FillHole filter
* @param[in] device The handle of the device.
* @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the Boolean value of whether the FillHole Filter feature is enabled or disabled.
* @param[in] device The handle of the device
* @param[out] pEnabled Pointer to a variable in which to store the returned Boolean value.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Enables or disables the Spatial filter
* @param[in] device The handle of the device.
* @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the Boolean value of whether the Spatial Filter feature is enabled or disabled.
* @param[in] device The handle of the device
* @param[out] pEnabled Pointer to a variable in which to store the returned Boolean value.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Enables or disables transforms a color image into the geometry of the depth sensor. When enabled, scGetFrame() can\n
* be invoked passing ::ScTransformedColorFrame as the frame type for get a color image which each pixel matches the \n
* corresponding pixel coordinates of the depth sensor. The resolution of the transformed color frame is the same as that\n
* of the depth image.
* @param[in] device The handle of the device on which to enable or disable mapping.
* @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the Boolean value of whether the transformed of the color image to depth sensor space feature is enabled or disabled.
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[out] bEnabled Pointer to a variable in which to store the returned Boolean value.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Enables or disables transforms the depth map into the geometry of the color sensor. When enabled, scGetFrame() can\n
* be invoked passing ::ScTransformedDepthFrame as the frame type for get a depth image which each pixel matches the \n
* corresponding pixel coordinates of the color sensor. The resolution of the transformed depth frame is the same as that\n
* of the color image.
* @param[in] device The handle of the device on which to enable or disable mapping.
* @param[in] bEnabled Set to <code>true</code> to enable the feature or <code>false</code> to disable the feature.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the Boolean value of whether the transformed of the depth image to color space feature is enabled or disabled.
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[out] bEnabled Pointer to a variable in which to store the returned Boolean value.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Returns the point value of the frame that the mapping of the depth image to Color space.
* @param[in] device The handle of the device on which to enable or disable the feature.
* @param[in] depthPoint The point in depth frame.
* @param[in] colorSize The size(x = w,y = h) of color frame.
* @param[out] pPointInColor The point in the color frame.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Converts the input points from depth coordinate space to world coordinate space.
* @param[in] device The handle of the device on which to perform the operation.
* @param[in] pDepthVector Pointer to a buffer containing the x, y, and z values of the depth coordinates to be converted. \n
* x and y are measured in pixels, where 0, 0 is located at the top left corner of the image. \n
* z is measured in millimeters, based on the ::ScPixelFormat depth frame.
* @param[out] pWorldVector Pointer to a buffer in which to output the converted x, y, and z values of the world coordinates, measured in millimeters.
* @param[in] pointCount The number of points to convert.
* @param[in] pSensorParam The intrinsic parameters for the depth sensor. See ::ScSensorIntrinsicParameters.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Converts the input Depth frame from depth coordinate space to world coordinate space on the device. Currently supported depth
* image types are SC_DEPTH_FRAME and SC_TRANSFORM_DEPTH_IMG_TO_COLOR_SENSOR_FRAME.
* @param[in] device The handle of the device on which to perform the operation.
* @param[in] pDepthFrame The depth frame.
* @param[out] pWorldVector Pointer to a buffer in which to output the converted x, y, and z values of the world coordinates,
* measured in millimeters. The length of pWorldVector must is (ScFrame.width * ScFrame.height).
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set the parameters by Json file that can be saved by ScepterGUITool.
* @param[in] device The handle of the device.
* @param[in] pfilePath Pointer to the path of Json file.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Export the parameter initialization file from the device.
* @param[in] device The handle of the device.
* @param[in] pfilePath Pointer to the path of parameter initialization file.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Import the parameter initialization file into the device and take effect after reboot the device.
* @param[in] device The handle of the device.
* @param[in] pfilePath Pointer to the path of parameter initialization file.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Restore the parameter initialization file of the device.
* @param[in] device The handle of the device.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Reboot the camera.
* @param[in] device The handle of the device
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Set hotplug status callback function.
* @param[in] pCallback Pointer to the callback function. See ::PtrHotPlugStatusCallback
* @param[in] pUserData Pointer to the user data. See ::PtrHotPlugStatusCallback
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Input the firmware file path and start upgrading device firmware.
* @param[in] device The handle of the device.
* @param[in] pImgPath Pointer to the path of firmware file. The firmware upgrade file is in .img format.
* @return ::SC_OK If the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/**
* @brief Get firmware upgrade status and progress.
* @param[in] device The handle of the device.
* @param[out] pStatus Pointer to the status of firmware upgrade. 0 indicates normal, other values indicate anomalies.
* @param[out] pProcess Pointer to the process of firmware upgrade, in range [0, 100]. Under normal circumstances, 100 indicates a successful upgrade.
* @return ::SC_OK if the function succeeded, or one of the error values defined by ::ScStatus.
*/
SCEPTER_C_API_EXPORT ScStatus ;
/* SCEPTER_API_H */