@@ -274,7 +274,7 @@ namespace rl
274
274
unsigned int width;
275
275
unsigned int height;
276
276
277
- ::dc1394error_t error = ::dc1394_get_image_size_from_video_mode (this ->camera , static_cast < ::dc1394video_mode_t >(this ->videoMode ), &width, &height);
277
+ ::dc1394error_t error = ::dc1394_get_image_size_from_video_mode (this ->camera , static_cast <::dc1394video_mode_t >(this ->videoMode ), &width, &height);
278
278
279
279
if (::DC1394_SUCCESS != error)
280
280
{
@@ -293,7 +293,7 @@ namespace rl
293
293
::dc1394bool_t hasAbsoluteControl;
294
294
295
295
#if (LIBDC1394_VERSION_MAJOR > 10)
296
- ::dc1394error_t error = ::dc1394_feature_has_absolute_control (this ->camera , static_cast < ::dc1394feature_t >(feature), &hasAbsoluteControl);
296
+ ::dc1394error_t error = ::dc1394_feature_has_absolute_control (this ->camera , static_cast <::dc1394feature_t >(feature), &hasAbsoluteControl);
297
297
#else
298
298
int error = ::dc1394_has_absolute_control (this ->handle , this ->nodes [this ->node ], feature, &hasAbsoluteControl);
299
299
#endif
@@ -310,7 +310,7 @@ namespace rl
310
310
Dc1394Camera::getFeatureBoundaries (const Feature& feature, unsigned int & min, unsigned int & max) const
311
311
{
312
312
#if (LIBDC1394_VERSION_MAJOR > 10)
313
- ::dc1394error_t error = ::dc1394_feature_get_boundaries (this ->camera , static_cast < ::dc1394feature_t >(feature), &min, &max);
313
+ ::dc1394error_t error = ::dc1394_feature_get_boundaries (this ->camera , static_cast <::dc1394feature_t >(feature), &min, &max);
314
314
315
315
if (::DC1394_SUCCESS != error)
316
316
{
@@ -337,7 +337,7 @@ namespace rl
337
337
Dc1394Camera::getFeatureBoundariesAbsolute (const Feature& feature, float & min, float & max) const
338
338
{
339
339
#if (LIBDC1394_VERSION_MAJOR > 10)
340
- ::dc1394error_t error = ::dc1394_feature_get_absolute_boundaries (this ->camera , static_cast < ::dc1394feature_t >(feature), &min, &max);
340
+ ::dc1394error_t error = ::dc1394_feature_get_absolute_boundaries (this ->camera , static_cast <::dc1394feature_t >(feature), &min, &max);
341
341
#else
342
342
int error = ::dc1394_query_absolute_feature_min_max (this ->handle , this ->nodes [this ->node ], feature, &min, &max);
343
343
#endif
@@ -354,7 +354,7 @@ namespace rl
354
354
#if (LIBDC1394_VERSION_MAJOR > 10)
355
355
::dc1394feature_mode_t mode;
356
356
357
- ::dc1394error_t error = ::dc1394_feature_get_mode (this ->camera , static_cast < ::dc1394feature_t >(feature), &mode);
357
+ ::dc1394error_t error = ::dc1394_feature_get_mode (this ->camera , static_cast <::dc1394feature_t >(feature), &mode);
358
358
359
359
if (::DC1394_SUCCESS != error)
360
360
{
@@ -401,7 +401,7 @@ namespace rl
401
401
#if (LIBDC1394_VERSION_MAJOR > 10)
402
402
::dc1394feature_modes_t modes;
403
403
404
- ::dc1394error_t error = ::dc1394_feature_get_modes (this ->camera , static_cast < ::dc1394feature_t >(feature), &modes);
404
+ ::dc1394error_t error = ::dc1394_feature_get_modes (this ->camera , static_cast <::dc1394feature_t >(feature), &modes);
405
405
406
406
if (::DC1394_SUCCESS != error)
407
407
{
@@ -428,21 +428,21 @@ namespace rl
428
428
}
429
429
}
430
430
#else
431
- int error = ::dc1394_has_manual_mode (this ->handle , this ->nodes [this ->node ], feature, static_cast < ::dc1394bool_t *>(&hasManual));
431
+ int error = ::dc1394_has_manual_mode (this ->handle , this ->nodes [this ->node ], feature, static_cast <::dc1394bool_t *>(&hasManual));
432
432
433
433
if (::DC1394_SUCCESS != error)
434
434
{
435
435
throw Exception (error);
436
436
}
437
437
438
- error = ::dc1394_has_auto_mode (this ->handle , this ->nodes [this ->node ], feature, stataic_cast< ::dc1394bool_t *>(&hasAuto));
438
+ error = ::dc1394_has_auto_mode (this ->handle , this ->nodes [this ->node ], feature, static_cast < ::dc1394bool_t *>(&hasAuto));
439
439
440
440
if (::DC1394_SUCCESS != error)
441
441
{
442
442
throw Exception (error);
443
443
}
444
444
445
- error = ::dc1394_has_one_push_auto (this ->handle , this ->nodes [this ->node ], feature, static_cast < ::dc1394bool_t *>(&hasOnePushAuto));
445
+ error = ::dc1394_has_one_push_auto (this ->handle , this ->nodes [this ->node ], feature, static_cast <::dc1394bool_t *>(&hasOnePushAuto));
446
446
447
447
if (::DC1394_SUCCESS != error)
448
448
{
@@ -457,7 +457,7 @@ namespace rl
457
457
unsigned int value;
458
458
459
459
#if (LIBDC1394_VERSION_MAJOR > 10)
460
- ::dc1394error_t error = ::dc1394_feature_get_value (this ->camera , static_cast < ::dc1394feature_t >(feature), &value);
460
+ ::dc1394error_t error = ::dc1394_feature_get_value (this ->camera , static_cast <::dc1394feature_t >(feature), &value);
461
461
#else
462
462
int error = ::dc1394_get_feature_value (this ->handle , this ->nodes [this ->node ], feature, &value);
463
463
#endif
@@ -476,7 +476,7 @@ namespace rl
476
476
float value;
477
477
478
478
#if (LIBDC1394_VERSION_MAJOR > 10)
479
- ::dc1394error_t error = ::dc1394_feature_get_absolute_value (this ->camera , static_cast < ::dc1394feature_t >(feature), &value);
479
+ ::dc1394error_t error = ::dc1394_feature_get_absolute_value (this ->camera , static_cast <::dc1394feature_t >(feature), &value);
480
480
#else
481
481
int error = ::dc1394_query_absolute_feature_value (this ->handle , this ->nodes [this ->node ], feature, &value);
482
482
#endif
@@ -510,7 +510,7 @@ namespace rl
510
510
Dc1394Camera::getFormat7MaximumImageSize (const unsigned int & mode, unsigned int & width, unsigned & height) const
511
511
{
512
512
#if (LIBDC1394_VERSION_MAJOR > 10)
513
- ::dc1394error_t error = ::dc1394_format7_get_max_image_size (this ->camera , static_cast < ::dc1394video_mode_t >(mode), &width, &height);
513
+ ::dc1394error_t error = ::dc1394_format7_get_max_image_size (this ->camera , static_cast <::dc1394video_mode_t >(mode), &width, &height);
514
514
#else
515
515
int error = ::dc1394_query_format7_max_image_size (this ->handle , this ->nodes [this ->node ], mode, &width, &height);
516
516
#endif
@@ -527,7 +527,7 @@ namespace rl
527
527
Framerate framerate;
528
528
529
529
#if (LIBDC1394_VERSION_MAJOR > 10)
530
- ::dc1394error_t error = ::dc1394_video_get_framerate (this ->camera , reinterpret_cast < ::dc1394framerate_t *>(&framerate));
530
+ ::dc1394error_t error = ::dc1394_video_get_framerate (this ->camera , reinterpret_cast <::dc1394framerate_t *>(&framerate));
531
531
#else
532
532
int error = ::dc1394_get_video_framerate (this ->handle , this ->nodes [this ->node ], reinterpret_cast <unsigned int *>(&framerate));
533
533
#endif
@@ -558,7 +558,7 @@ namespace rl
558
558
OperationMode operationMode;
559
559
560
560
#if (LIBDC1394_VERSION_MAJOR > 10)
561
- ::dc1394error_t error = ::dc1394_video_get_operation_mode (this ->camera , reinterpret_cast < ::dc1394operation_mode_t *>(&operationMode));
561
+ ::dc1394error_t error = ::dc1394_video_get_operation_mode (this ->camera , reinterpret_cast <::dc1394operation_mode_t *>(&operationMode));
562
562
#else
563
563
int error = ::dc1394_get_operation_mode (this ->handle , this ->nodes [this ->node ], reinterpret_cast <unsigned int *>(&operationMode));
564
564
#endif
@@ -578,7 +578,7 @@ namespace rl
578
578
unsigned int width;
579
579
unsigned int height;
580
580
581
- ::dc1394error_t error = ::dc1394_get_image_size_from_video_mode (this ->camera , static_cast < ::dc1394video_mode_t >(this ->videoMode ), &width, &height);
581
+ ::dc1394error_t error = ::dc1394_get_image_size_from_video_mode (this ->camera , static_cast <::dc1394video_mode_t >(this ->videoMode ), &width, &height);
582
582
583
583
if (::DC1394_SUCCESS != error)
584
584
{
@@ -597,7 +597,7 @@ namespace rl
597
597
IsoSpeed speed;
598
598
599
599
#if (LIBDC1394_VERSION_MAJOR > 10)
600
- ::dc1394error_t error = ::dc1394_video_get_iso_speed (this ->camera , reinterpret_cast < ::dc1394speed_t *>(&speed));
600
+ ::dc1394error_t error = ::dc1394_video_get_iso_speed (this ->camera , reinterpret_cast <::dc1394speed_t *>(&speed));
601
601
#else
602
602
unsigned int channel;
603
603
int error = ::dc1394_get_iso_channel_and_speed (this ->handle , this ->nodes [this ->node ], &channel, reinterpret_cast <unsigned int *>(&speed));
@@ -647,7 +647,7 @@ namespace rl
647
647
break ;
648
648
}
649
649
650
- return ::std::chrono::duration_cast< ::std::chrono::nanoseconds>(
650
+ return ::std::chrono::duration_cast<::std::chrono::nanoseconds>(
651
651
::std::chrono::duration<double >(1.0 / framerate * rl::math::UNIT2NANO)
652
652
);
653
653
}
@@ -658,7 +658,7 @@ namespace rl
658
658
VideoMode videoMode;
659
659
660
660
#if (LIBDC1394_VERSION_MAJOR > 10)
661
- ::dc1394error_t error = ::dc1394_video_get_mode (this ->camera , reinterpret_cast < ::dc1394video_mode_t *>(&videoMode));
661
+ ::dc1394error_t error = ::dc1394_video_get_mode (this ->camera , reinterpret_cast <::dc1394video_mode_t *>(&videoMode));
662
662
#else
663
663
int error = ::dc1394_get_video_mode (this ->handle , this ->nodes [this ->node ], reinterpret_cast <unsigned int *>(&videoMode));
664
664
#endif
@@ -678,7 +678,7 @@ namespace rl
678
678
unsigned int width;
679
679
unsigned int height;
680
680
681
- ::dc1394error_t error = ::dc1394_get_image_size_from_video_mode (this ->camera , static_cast < ::dc1394video_mode_t >(this ->videoMode ), &width, &height);
681
+ ::dc1394error_t error = ::dc1394_get_image_size_from_video_mode (this ->camera , static_cast <::dc1394video_mode_t >(this ->videoMode ), &width, &height);
682
682
683
683
if (::DC1394_SUCCESS != error)
684
684
{
@@ -735,7 +735,7 @@ namespace rl
735
735
::dc1394bool_t hasAbsoluteControl;
736
736
737
737
#if (LIBDC1394_VERSION_MAJOR > 10)
738
- ::dc1394error_t error = ::dc1394_feature_has_absolute_control (this ->camera , static_cast < ::dc1394feature_t >(feature), &hasAbsoluteControl);
738
+ ::dc1394error_t error = ::dc1394_feature_has_absolute_control (this ->camera , static_cast <::dc1394feature_t >(feature), &hasAbsoluteControl);
739
739
#else
740
740
int error = ::dc1394_has_absolute_control (this ->handle , this ->nodes [this ->node ], feature, &hasAbsoluteControl);
741
741
#endif
@@ -754,7 +754,7 @@ namespace rl
754
754
#if (LIBDC1394_VERSION_MAJOR > 10)
755
755
::dc1394switch_t isFeatureOn;
756
756
757
- ::dc1394error_t error = ::dc1394_feature_get_power (this ->camera , static_cast < ::dc1394feature_t >(feature), &isFeatureOn);
757
+ ::dc1394error_t error = ::dc1394_feature_get_power (this ->camera , static_cast <::dc1394feature_t >(feature), &isFeatureOn);
758
758
#else
759
759
::dc1394bool_t isFeatureOn;
760
760
@@ -775,7 +775,7 @@ namespace rl
775
775
::dc1394bool_t isFeaturePresent;
776
776
777
777
#if (LIBDC1394_VERSION_MAJOR > 10)
778
- ::dc1394error_t error = ::dc1394_feature_is_present (this ->camera , static_cast < ::dc1394feature_t >(feature), &isFeaturePresent);
778
+ ::dc1394error_t error = ::dc1394_feature_is_present (this ->camera , static_cast <::dc1394feature_t >(feature), &isFeaturePresent);
779
779
#else
780
780
int error = ::dc1394_is_feature_present (this ->handle , this ->nodes [this ->node ], feature, &isFeaturePresent);
781
781
#endif
@@ -794,7 +794,7 @@ namespace rl
794
794
::dc1394bool_t canReadOut;
795
795
796
796
#if (LIBDC1394_VERSION_MAJOR > 10)
797
- ::dc1394error_t error = ::dc1394_feature_is_readable (this ->camera , static_cast < ::dc1394feature_t >(feature), &canReadOut);
797
+ ::dc1394error_t error = ::dc1394_feature_is_readable (this ->camera , static_cast <::dc1394feature_t >(feature), &canReadOut);
798
798
#else
799
799
int error = ::dc1394_can_read_out (this ->handle , this ->nodes [this ->node ], feature, &canReadOut);
800
800
#endif
@@ -813,7 +813,7 @@ namespace rl
813
813
::dc1394bool_t canTurnOnOff;
814
814
815
815
#if (LIBDC1394_VERSION_MAJOR > 10)
816
- ::dc1394error_t error = ::dc1394_feature_is_switchable (this ->camera , static_cast < ::dc1394feature_t >(feature), &canTurnOnOff);
816
+ ::dc1394error_t error = ::dc1394_feature_is_switchable (this ->camera , static_cast <::dc1394feature_t >(feature), &canTurnOnOff);
817
817
#else
818
818
int error = ::dc1394_can_turn_on_off (this ->handle , this ->nodes [this ->node ], feature, &canTurnOnOff);
819
819
#endif
@@ -873,14 +873,14 @@ namespace rl
873
873
throw Exception (error);
874
874
}
875
875
876
- error = ::dc1394_get_video_framerate (this ->handle , this ->nodes [this ->node ], static_cast < ::dc1394framerate_t *>(&this ->framerate ));
876
+ error = ::dc1394_get_video_framerate (this ->handle , this ->nodes [this ->node ], static_cast <::dc1394framerate_t *>(&this ->framerate ));
877
877
878
878
if (::DC1394_SUCCESS != error)
879
879
{
880
880
throw Exception (error);
881
881
}
882
882
883
- error = ::dc1394_get_video_mode (this ->handle , this ->nodes [this ->node ], static_cast < ::dc1394video_mode_t *>(&this ->videoMode ));
883
+ error = ::dc1394_get_video_mode (this ->handle , this ->nodes [this ->node ], static_cast <::dc1394video_mode_t *>(&this ->videoMode ));
884
884
885
885
if (::DC1394_SUCCESS != error)
886
886
{
@@ -922,7 +922,7 @@ namespace rl
922
922
Dc1394Camera::setFeatureEnabled (const Feature& feature, const bool & doOn)
923
923
{
924
924
#if (LIBDC1394_VERSION_MAJOR > 10)
925
- ::dc1394error_t error = ::dc1394_feature_set_power (this ->camera , static_cast < ::dc1394feature_t >(feature), static_cast < ::dc1394switch_t >(doOn));
925
+ ::dc1394error_t error = ::dc1394_feature_set_power (this ->camera , static_cast <::dc1394feature_t >(feature), static_cast <::dc1394switch_t >(doOn));
926
926
#else
927
927
int error = ::dc1394_feature_on_off (this ->handle , this ->nodes [this ->node ], feature, doOn);
928
928
#endif
@@ -937,7 +937,7 @@ namespace rl
937
937
Dc1394Camera::setFeatureMode (const Feature& feature, const FeatureMode& mode)
938
938
{
939
939
#if (LIBDC1394_VERSION_MAJOR > 10)
940
- ::dc1394error_t error = ::dc1394_feature_set_mode (this ->camera , static_cast < ::dc1394feature_t >(feature), static_cast < ::dc1394feature_mode_t >(mode));
940
+ ::dc1394error_t error = ::dc1394_feature_set_mode (this ->camera , static_cast <::dc1394feature_t >(feature), static_cast <::dc1394feature_mode_t >(mode));
941
941
#else
942
942
int error;
943
943
@@ -967,7 +967,7 @@ namespace rl
967
967
Dc1394Camera::setFeatureValue (const Feature& feature, const unsigned int & value)
968
968
{
969
969
#if (LIBDC1394_VERSION_MAJOR > 10)
970
- ::dc1394error_t error = ::dc1394_feature_set_value (this ->camera , static_cast < ::dc1394feature_t >(feature), value);
970
+ ::dc1394error_t error = ::dc1394_feature_set_value (this ->camera , static_cast <::dc1394feature_t >(feature), value);
971
971
#else
972
972
int error = ::dc1394_set_feature_value (this ->handle , this ->nodes [this ->node ], feature, value);
973
973
#endif
@@ -982,7 +982,7 @@ namespace rl
982
982
Dc1394Camera::setFeatureValueAbsolute (const Feature& feature, const float & value)
983
983
{
984
984
#if (LIBDC1394_VERSION_MAJOR > 10)
985
- ::dc1394error_t error = ::dc1394_feature_set_absolute_value (this ->camera , static_cast < ::dc1394feature_t >(feature), value);
985
+ ::dc1394error_t error = ::dc1394_feature_set_absolute_value (this ->camera , static_cast <::dc1394feature_t >(feature), value);
986
986
#else
987
987
int error = ::dc1394_set_absolute_feature_value (this ->handle , this ->nodes [this ->node ], feature, value);
988
988
#endif
@@ -1005,8 +1005,8 @@ namespace rl
1005
1005
#if (LIBDC1394_VERSION_MAJOR > 10)
1006
1006
::dc1394error_t error = ::dc1394_format7_set_roi (
1007
1007
this ->camera ,
1008
- static_cast < ::dc1394video_mode_t >(videoMode),
1009
- static_cast < ::dc1394color_coding_t >(colorCoding),
1008
+ static_cast <::dc1394video_mode_t >(videoMode),
1009
+ static_cast <::dc1394color_coding_t >(colorCoding),
1010
1010
DC1394_QUERY_FROM_CAMERA,
1011
1011
left,
1012
1012
top,
@@ -1032,7 +1032,7 @@ namespace rl
1032
1032
Dc1394Camera::setFramerate (const Framerate& framerate)
1033
1033
{
1034
1034
#if (LIBDC1394_VERSION_MAJOR > 10)
1035
- ::dc1394error_t error = ::dc1394_video_set_framerate (this ->camera , static_cast < ::dc1394framerate_t >(framerate));
1035
+ ::dc1394error_t error = ::dc1394_video_set_framerate (this ->camera , static_cast <::dc1394framerate_t >(framerate));
1036
1036
#else
1037
1037
int error = ::dc1394_set_video_framerate (this ->handle , this ->nodes [node], framerate);
1038
1038
#endif
@@ -1055,7 +1055,7 @@ namespace rl
1055
1055
Dc1394Camera::setOperationMode (const OperationMode& mode)
1056
1056
{
1057
1057
#if (LIBDC1394_VERSION_MAJOR > 10)
1058
- ::dc1394error_t error = ::dc1394_video_set_operation_mode (this ->camera , static_cast < ::dc1394operation_mode_t >(mode));
1058
+ ::dc1394error_t error = ::dc1394_video_set_operation_mode (this ->camera , static_cast <::dc1394operation_mode_t >(mode));
1059
1059
#else
1060
1060
int error = ::dc1394_set_operation_mode (this ->handle , this ->nodes [this ->node ], mode);
1061
1061
#endif
@@ -1070,7 +1070,7 @@ namespace rl
1070
1070
Dc1394Camera::setSpeed (const IsoSpeed& speed)
1071
1071
{
1072
1072
#if (LIBDC1394_VERSION_MAJOR > 10)
1073
- ::dc1394error_t error = ::dc1394_video_set_iso_speed (this ->camera , static_cast < ::dc1394speed_t >(speed));
1073
+ ::dc1394error_t error = ::dc1394_video_set_iso_speed (this ->camera , static_cast <::dc1394speed_t >(speed));
1074
1074
#else
1075
1075
int error = ::dc1394_set_iso_channel_and_speed (this ->handle , this ->nodes [node], this ->channel , speed);
1076
1076
#endif
@@ -1087,7 +1087,7 @@ namespace rl
1087
1087
Dc1394Camera::setVideoMode (const VideoMode& videoMode)
1088
1088
{
1089
1089
#if (LIBDC1394_VERSION_MAJOR > 10)
1090
- ::dc1394error_t error = ::dc1394_video_set_mode (this ->camera , static_cast < ::dc1394video_mode_t >(videoMode));
1090
+ ::dc1394error_t error = ::dc1394_video_set_mode (this ->camera , static_cast <::dc1394video_mode_t >(videoMode));
1091
1091
#else
1092
1092
unsigned int format;
1093
1093
0 commit comments