ilabs-flir 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/Flir.podspec +31 -31
  2. package/README.md +1271 -1271
  3. package/android/Flir/build.gradle.kts +85 -80
  4. package/android/Flir/libs/flir-stubs.jar +0 -0
  5. package/android/Flir/src/main/AndroidManifest.xml +31 -31
  6. package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCode.java +13 -0
  7. package/android/Flir/src/main/java/com/flir/thermalsdk/ErrorCodeException.java +14 -0
  8. package/android/Flir/src/main/java/com/flir/thermalsdk/ThermalSdkAndroid.java +16 -0
  9. package/android/Flir/src/main/java/com/flir/thermalsdk/androidsdk/image/BitmapAndroid.java +20 -0
  10. package/android/Flir/src/main/java/com/flir/thermalsdk/image/ImageBuffer.java +11 -0
  11. package/android/Flir/src/main/java/com/flir/thermalsdk/image/JavaImageBuffer.java +35 -0
  12. package/android/Flir/src/main/java/com/flir/thermalsdk/image/Palette.java +15 -0
  13. package/android/Flir/src/main/java/com/flir/thermalsdk/image/PaletteManager.java +16 -0
  14. package/android/Flir/src/main/java/com/flir/thermalsdk/image/Point.java +11 -0
  15. package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalImage.java +23 -0
  16. package/android/Flir/src/main/java/com/flir/thermalsdk/image/ThermalValue.java +9 -0
  17. package/android/Flir/src/main/java/com/flir/thermalsdk/live/Camera.java +26 -0
  18. package/android/Flir/src/main/java/com/flir/thermalsdk/live/CameraType.java +8 -0
  19. package/android/Flir/src/main/java/com/flir/thermalsdk/live/CommunicationInterface.java +16 -0
  20. package/android/Flir/src/main/java/com/flir/thermalsdk/live/ConnectParameters.java +16 -0
  21. package/android/Flir/src/main/java/com/flir/thermalsdk/live/Identity.java +23 -0
  22. package/android/Flir/src/main/java/com/flir/thermalsdk/live/IpSettings.java +9 -0
  23. package/android/Flir/src/main/java/com/flir/thermalsdk/live/RemoteControl.java +16 -0
  24. package/android/Flir/src/main/java/com/flir/thermalsdk/live/connectivity/ConnectionStatusListener.java +7 -0
  25. package/android/Flir/src/main/java/com/flir/thermalsdk/live/discovery/DiscoveryEventListener.java +14 -0
  26. package/android/Flir/src/main/java/com/flir/thermalsdk/live/discovery/DiscoveryFactory.java +33 -0
  27. package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnReceived.java +5 -0
  28. package/android/Flir/src/main/java/com/flir/thermalsdk/live/remote/OnRemoteError.java +7 -0
  29. package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/Stream.java +8 -0
  30. package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/ThermalStreamer.java +28 -0
  31. package/android/Flir/src/main/java/com/flir/thermalsdk/live/streaming/VisualStreamer.java +18 -0
  32. package/android/Flir/src/main/java/flir/android/FlirCommands.java +136 -0
  33. package/android/Flir/src/main/java/flir/android/FlirDownloadManager.kt +76 -75
  34. package/android/Flir/src/main/java/flir/android/FlirDownloadPackage.kt +16 -16
  35. package/android/Flir/src/main/java/flir/android/FlirFrameCache.kt +6 -6
  36. package/android/Flir/src/main/java/flir/android/FlirManager.kt +477 -248
  37. package/android/Flir/src/main/java/flir/android/FlirModule.kt +74 -74
  38. package/android/Flir/src/main/java/flir/android/FlirPackage.kt +19 -19
  39. package/android/Flir/src/main/java/flir/android/FlirSDKLoader.kt +165 -117
  40. package/android/Flir/src/main/java/flir/android/FlirSdkManager.java +1511 -0
  41. package/android/Flir/src/main/java/flir/android/FlirStatus.kt +12 -12
  42. package/android/Flir/src/main/java/flir/android/FlirView.kt +48 -48
  43. package/android/Flir/src/main/java/flir/android/FlirViewManager.kt +13 -13
  44. package/app.plugin.js +264 -264
  45. package/expo-module.config.json +5 -5
  46. package/ios/Flir/Framework/ThermalSDK/FLIRBattery.h +76 -76
  47. package/ios/Flir/Framework/ThermalSDK/FLIRCalibration.h +108 -108
  48. package/ios/Flir/Framework/ThermalSDK/FLIRCamera.h +156 -156
  49. package/ios/Flir/Framework/ThermalSDK/FLIRCameraDeviceInfo.h +53 -53
  50. package/ios/Flir/Framework/ThermalSDK/FLIRCameraEvent.h +132 -132
  51. package/ios/Flir/Framework/ThermalSDK/FLIRCameraImport.h +204 -204
  52. package/ios/Flir/Framework/ThermalSDK/FLIRColorDistributionSettings.h +204 -204
  53. package/ios/Flir/Framework/ThermalSDK/FLIRColorizer.h +82 -82
  54. package/ios/Flir/Framework/ThermalSDK/FLIRDiscoveredCamera.h +44 -44
  55. package/ios/Flir/Framework/ThermalSDK/FLIRDiscovery.h +132 -132
  56. package/ios/Flir/Framework/ThermalSDK/FLIRDisplaySettings.h +29 -29
  57. package/ios/Flir/Framework/ThermalSDK/FLIRFocus.h +70 -70
  58. package/ios/Flir/Framework/ThermalSDK/FLIRFusion.h +192 -192
  59. package/ios/Flir/Framework/ThermalSDK/FLIRFusionController.h +136 -136
  60. package/ios/Flir/Framework/ThermalSDK/FLIRFusionTransformation.h +35 -35
  61. package/ios/Flir/Framework/ThermalSDK/FLIRIdentity.h +264 -264
  62. package/ios/Flir/Framework/ThermalSDK/FLIRImageBase.h +196 -196
  63. package/ios/Flir/Framework/ThermalSDK/FLIRImageColorizer.h +26 -26
  64. package/ios/Flir/Framework/ThermalSDK/FLIRImageStatistics.h +61 -61
  65. package/ios/Flir/Framework/ThermalSDK/FLIRIsotherms.h +208 -208
  66. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementArea.h +38 -38
  67. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementCollection.h +147 -147
  68. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDelta.h +62 -62
  69. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementDimensions.h +33 -33
  70. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementEllipse.h +49 -49
  71. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementLine.h +66 -66
  72. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementMarker.h +69 -69
  73. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementParameters.h +41 -41
  74. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementRectangle.h +36 -36
  75. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementReference.h +27 -27
  76. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementShape.h +46 -46
  77. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementSpot.h +33 -33
  78. package/ios/Flir/Framework/ThermalSDK/FLIRMeasurementsController.h +160 -160
  79. package/ios/Flir/Framework/ThermalSDK/FLIRMeterLinkSensorPoll.h +247 -247
  80. package/ios/Flir/Framework/ThermalSDK/FLIROverlayController.h +27 -27
  81. package/ios/Flir/Framework/ThermalSDK/FLIRPalette.h +60 -60
  82. package/ios/Flir/Framework/ThermalSDK/FLIRPaletteController.h +36 -36
  83. package/ios/Flir/Framework/ThermalSDK/FLIRPaletteManager.h +97 -97
  84. package/ios/Flir/Framework/ThermalSDK/FLIRQuantification.h +55 -55
  85. package/ios/Flir/Framework/ThermalSDK/FLIRRemoteControl.h +393 -393
  86. package/ios/Flir/Framework/ThermalSDK/FLIRRenderer.h +35 -35
  87. package/ios/Flir/Framework/ThermalSDK/FLIRRendererImpl.h +17 -17
  88. package/ios/Flir/Framework/ThermalSDK/FLIRScale.h +99 -99
  89. package/ios/Flir/Framework/ThermalSDK/FLIRScaleController.h +44 -44
  90. package/ios/Flir/Framework/ThermalSDK/FLIRStream.h +109 -109
  91. package/ios/Flir/Framework/ThermalSDK/FLIRStreamer.h +124 -124
  92. package/ios/Flir/Framework/ThermalSDK/FLIRSystem.h +40 -40
  93. package/ios/Flir/Framework/ThermalSDK/FLIRTemperatureRange.h +43 -43
  94. package/ios/Flir/Framework/ThermalSDK/FLIRThermalDelta.h +77 -77
  95. package/ios/Flir/Framework/ThermalSDK/FLIRThermalImage.h +331 -331
  96. package/ios/Flir/Framework/ThermalSDK/FLIRThermalImageFile.h +56 -56
  97. package/ios/Flir/Framework/ThermalSDK/FLIRThermalParameters.h +31 -31
  98. package/ios/Flir/Framework/ThermalSDK/FLIRThermalValue.h +92 -92
  99. package/ios/Flir/Framework/ThermalSDK/FLIRWirelessCameraDetails.h +88 -88
  100. package/ios/Flir/Framework/ThermalSDK/ThermalSDK.h +73 -73
  101. package/ios/Flir/SDKLoader/FlirSDKLoader.m +13 -13
  102. package/ios/Flir/SDKLoader/FlirSDKLoader.swift +175 -175
  103. package/ios/Flir/src/FlirEventEmitter.h +12 -12
  104. package/ios/Flir/src/FlirEventEmitter.m +33 -33
  105. package/ios/Flir/src/FlirModule.h +10 -10
  106. package/ios/Flir/src/FlirModule.m +381 -381
  107. package/ios/Flir/src/FlirPreviewView.h +13 -13
  108. package/ios/Flir/src/FlirPreviewView.m +24 -24
  109. package/ios/Flir/src/FlirState.h +20 -20
  110. package/ios/Flir/src/FlirState.m +79 -79
  111. package/ios/Flir/src/FlirViewManager.h +9 -9
  112. package/ios/Flir/src/FlirViewManager.m +16 -16
  113. package/package.json +60 -60
  114. package/react-native.config.js +14 -14
  115. package/scripts/copy_ios_libs.sh +32 -32
  116. package/scripts/create_stubs.py +174 -174
  117. package/scripts/download-sdk.js +62 -62
  118. package/scripts/prepare-binaries.sh +171 -171
  119. package/sdk-manifest.json +37 -30
  120. package/src/FlirDownload.ts +78 -78
  121. package/src/index.d.ts +17 -17
  122. package/src/index.js +7 -7
  123. package/src/index.ts +7 -7
  124. package/android/Flir/src/main/java/flir/android/CameraHandler.java +0 -194
  125. package/android/Flir/src/main/java/flir/android/FlirController.kt +0 -11
  126. package/android/Flir/src/main/java/flir/android/FrameDataHolder.java +0 -14
@@ -1,132 +1,132 @@
1
- //
2
- // FLIRDiscovery.h
3
- //
4
- // Copyright © 2019 Teledyne FLIR. All rights reserved.
5
- //
6
- // An interface for discovering cameras in vicinity.
7
- //
8
-
9
- #ifndef FLIRDiscovery_h
10
- #define FLIRDiscovery_h
11
-
12
- #import "FLIRIdentity.h"
13
- #import "FLIRDiscoveredCamera.h"
14
-
15
- /**
16
- * Delegate to return events detected in the camera scanner
17
- */
18
- @protocol FLIRDiscoveryEventDelegate <NSObject>
19
-
20
- /**
21
- * This event is raised when a camera device is returning an error.
22
- *
23
- * @param error The error.
24
- *
25
- * @param nsnetserviceserror The NSNetServicesError code
26
- *
27
- * @param iface The interface where the discovery error was encountered.
28
- */
29
- -(void)discoveryError:(nonnull NSString *)error netServiceError:(int)nsnetserviceserror on:(FLIRCommunicationInterface)iface;
30
-
31
- @optional
32
-
33
- /**
34
- * This event is raised when new camera device is found.
35
- * @Deprecated Implement `cameraDiscovered:` instead
36
- */
37
- -(void)cameraFound:(nonnull FLIRIdentity *)cameraIdentity __attribute((deprecated("Implement cameraDiscovered: instead.")));;
38
-
39
- /**
40
- * This event is raised when a camera device is removed from the collection.
41
- */
42
- -(void)cameraLost:(nonnull FLIRIdentity *)cameraIdentity;
43
-
44
- /**
45
- * This event is called when discovery is finished (i.e. OS limitation).
46
- * this event it NOT called after "FLIRDiscovery#stop()" is called
47
- *
48
- * @param iface The interface where the discovery was finished .
49
- */
50
- -(void) discoveryFinished:(FLIRCommunicationInterface)iface;
51
-
52
- /**
53
- * This event is called when a camera is discovered, it provides more information than `cameraFound:`
54
- */
55
- - (void)cameraDiscovered:(nonnull FLIRDiscoveredCamera *)discoveredCamera;
56
-
57
- @end
58
-
59
-
60
- /**
61
- Discover cameras on your connected network. Finds a FLIR ONE if connected to your device.
62
-
63
- @note Cameras can be reported as found even if they aren't connectable, depending on the implementation (entries could be cached in system services).
64
- Similarly camera lost events might be delayed, depending on the implementation (some implementations are only refreshed once per 5 minutes).
65
- One should use `FLIRCamera.connect(...)` if faster feedback is required.
66
-
67
- ### Example Usage
68
- ```swift
69
- import UIKit
70
- import ThermalSDK
71
-
72
- class ViewController: UIViewController, FLIRDiscoveryEventDelegate {
73
-
74
- // Create a discovery object.
75
- let discoverer = FLIRDiscovery()
76
-
77
- override func viewDidLoad() {
78
- super.viewDidLoad()
79
- // Set the discovere delegate to self.
80
- discoverer.delegate = self
81
- // Start discovery on all supported interfaces.
82
- discoverer.start(FLIRCommunicationInterface.FLIRCommunicationInterfaceLightning)
83
- }
84
-
85
- func cameraFound(_ cameraIdentity: FLIRIdentity) {
86
- // Handle discovered camera identity object...
87
- }
88
-
89
- // Etc ...
90
- }
91
- ```
92
- */
93
- @interface FLIRDiscovery : NSObject
94
-
95
- /**
96
- * Start searching for devices on specified interfaces.
97
- * The operation is asynchronous, scanning will continue in the background until FLIRDiscovery#stop() is called or OS cancels the operation
98
- * @param iface specifying the interfaces to use eg "FLIRCommunicationInterface#FLIRCommunicationInterfaceLightning".
99
- */
100
- -(void) start: (FLIRCommunicationInterface)iface;
101
-
102
- /**
103
- * Start searching for devices on specified interfaces.
104
- * The operation is asynchronous, scanning will continue in the background until FLIRDiscovery#stop() is called or OS cancels the operation
105
- * @param iface specifying the interfaces to use eg "FLIRCommunicationInterface#FLIRCommunicationInterfaceLightning".
106
- * @param type specify a specific type to scan for (currently only supported for the emulator)
107
- */
108
- - (void)start:(FLIRCommunicationInterface)iface cameraType:(FLIRCameraType)type;
109
-
110
-
111
- /**
112
- * Stop scanning for devices.
113
- * Does nothing if no scan is active.
114
- * The operation is asynchronous
115
- */
116
- -(void) stop;
117
-
118
- /**
119
- * Checks if the scanner is active.
120
- *
121
- * @return YES if still scanning for cameras, otherwise NO.
122
- */
123
- -(BOOL) isDiscovering;
124
-
125
- /**
126
- * A delegate to handle the events in FLIRDiscoveryEventDelegate.
127
- */
128
- @property (nonatomic, assign, nullable) id<FLIRDiscoveryEventDelegate> delegate;
129
-
130
- @end
131
-
132
- #endif
1
+ //
2
+ // FLIRDiscovery.h
3
+ //
4
+ // Copyright © 2019 Teledyne FLIR. All rights reserved.
5
+ //
6
+ // An interface for discovering cameras in vicinity.
7
+ //
8
+
9
+ #ifndef FLIRDiscovery_h
10
+ #define FLIRDiscovery_h
11
+
12
+ #import "FLIRIdentity.h"
13
+ #import "FLIRDiscoveredCamera.h"
14
+
15
+ /**
16
+ * Delegate to return events detected in the camera scanner
17
+ */
18
+ @protocol FLIRDiscoveryEventDelegate <NSObject>
19
+
20
+ /**
21
+ * This event is raised when a camera device is returning an error.
22
+ *
23
+ * @param error The error.
24
+ *
25
+ * @param nsnetserviceserror The NSNetServicesError code
26
+ *
27
+ * @param iface The interface where the discovery error was encountered.
28
+ */
29
+ -(void)discoveryError:(nonnull NSString *)error netServiceError:(int)nsnetserviceserror on:(FLIRCommunicationInterface)iface;
30
+
31
+ @optional
32
+
33
+ /**
34
+ * This event is raised when new camera device is found.
35
+ * @Deprecated Implement `cameraDiscovered:` instead
36
+ */
37
+ -(void)cameraFound:(nonnull FLIRIdentity *)cameraIdentity __attribute((deprecated("Implement cameraDiscovered: instead.")));;
38
+
39
+ /**
40
+ * This event is raised when a camera device is removed from the collection.
41
+ */
42
+ -(void)cameraLost:(nonnull FLIRIdentity *)cameraIdentity;
43
+
44
+ /**
45
+ * This event is called when discovery is finished (i.e. OS limitation).
46
+ * this event it NOT called after "FLIRDiscovery#stop()" is called
47
+ *
48
+ * @param iface The interface where the discovery was finished .
49
+ */
50
+ -(void) discoveryFinished:(FLIRCommunicationInterface)iface;
51
+
52
+ /**
53
+ * This event is called when a camera is discovered, it provides more information than `cameraFound:`
54
+ */
55
+ - (void)cameraDiscovered:(nonnull FLIRDiscoveredCamera *)discoveredCamera;
56
+
57
+ @end
58
+
59
+
60
+ /**
61
+ Discover cameras on your connected network. Finds a FLIR ONE if connected to your device.
62
+
63
+ @note Cameras can be reported as found even if they aren't connectable, depending on the implementation (entries could be cached in system services).
64
+ Similarly camera lost events might be delayed, depending on the implementation (some implementations are only refreshed once per 5 minutes).
65
+ One should use `FLIRCamera.connect(...)` if faster feedback is required.
66
+
67
+ ### Example Usage
68
+ ```swift
69
+ import UIKit
70
+ import ThermalSDK
71
+
72
+ class ViewController: UIViewController, FLIRDiscoveryEventDelegate {
73
+
74
+ // Create a discovery object.
75
+ let discoverer = FLIRDiscovery()
76
+
77
+ override func viewDidLoad() {
78
+ super.viewDidLoad()
79
+ // Set the discovere delegate to self.
80
+ discoverer.delegate = self
81
+ // Start discovery on all supported interfaces.
82
+ discoverer.start(FLIRCommunicationInterface.FLIRCommunicationInterfaceLightning)
83
+ }
84
+
85
+ func cameraFound(_ cameraIdentity: FLIRIdentity) {
86
+ // Handle discovered camera identity object...
87
+ }
88
+
89
+ // Etc ...
90
+ }
91
+ ```
92
+ */
93
+ @interface FLIRDiscovery : NSObject
94
+
95
+ /**
96
+ * Start searching for devices on specified interfaces.
97
+ * The operation is asynchronous, scanning will continue in the background until FLIRDiscovery#stop() is called or OS cancels the operation
98
+ * @param iface specifying the interfaces to use eg "FLIRCommunicationInterface#FLIRCommunicationInterfaceLightning".
99
+ */
100
+ -(void) start: (FLIRCommunicationInterface)iface;
101
+
102
+ /**
103
+ * Start searching for devices on specified interfaces.
104
+ * The operation is asynchronous, scanning will continue in the background until FLIRDiscovery#stop() is called or OS cancels the operation
105
+ * @param iface specifying the interfaces to use eg "FLIRCommunicationInterface#FLIRCommunicationInterfaceLightning".
106
+ * @param type specify a specific type to scan for (currently only supported for the emulator)
107
+ */
108
+ - (void)start:(FLIRCommunicationInterface)iface cameraType:(FLIRCameraType)type;
109
+
110
+
111
+ /**
112
+ * Stop scanning for devices.
113
+ * Does nothing if no scan is active.
114
+ * The operation is asynchronous
115
+ */
116
+ -(void) stop;
117
+
118
+ /**
119
+ * Checks if the scanner is active.
120
+ *
121
+ * @return YES if still scanning for cameras, otherwise NO.
122
+ */
123
+ -(BOOL) isDiscovering;
124
+
125
+ /**
126
+ * A delegate to handle the events in FLIRDiscoveryEventDelegate.
127
+ */
128
+ @property (nonatomic, assign, nullable) id<FLIRDiscoveryEventDelegate> delegate;
129
+
130
+ @end
131
+
132
+ #endif
@@ -1,29 +1,29 @@
1
- //
2
- // FLIRDisplaySettings.h
3
- //
4
- // Copyright © 2020 Teledyne FLIR. All rights reserved.
5
- //
6
-
7
- #import <Foundation/Foundation.h>
8
-
9
- /**
10
- * The FLIRDisplaySettings exposes a range of visual attributes which specify how the image is
11
- * displayed. They also specify how image was displayed when it was initially taken by a camera.
12
- * FLIRDisplaySettings allows user to specify a "subsection" of interest, while still keeping the
13
- * entire image available for context.
14
- * For example: taking an image of a car engine, but "zoom-in" to a faulty spark-plug, while keeping
15
- * the entire image of the photographed engine for a context.
16
- * The FLIRDisplaySettings effects both the IR and visual image.
17
- */
18
- @interface FLIRDisplaySettings : NSObject
19
-
20
- - (instancetype)initWithZoomFactor:(float)zoomFactor zoomPanX:(int)zoomPanX zoomPanY:(int)zoomPanY;
21
-
22
- /** Defines the image zoom factor, where value 1.0 means no zoom. */
23
- @property (nonatomic, readonly) float zoomFactor;
24
- /** Defines the image zoom pan/offset in X axis, where value 0 means centered. */
25
- @property (nonatomic, readonly) int zoomPanX;
26
- /** Defines the image zoom pan/offset in Y axis, where value 0 means centered. */
27
- @property (nonatomic, readonly) int zoomPanY;
28
-
29
- @end
1
+ //
2
+ // FLIRDisplaySettings.h
3
+ //
4
+ // Copyright © 2020 Teledyne FLIR. All rights reserved.
5
+ //
6
+
7
+ #import <Foundation/Foundation.h>
8
+
9
+ /**
10
+ * The FLIRDisplaySettings exposes a range of visual attributes which specify how the image is
11
+ * displayed. They also specify how image was displayed when it was initially taken by a camera.
12
+ * FLIRDisplaySettings allows user to specify a "subsection" of interest, while still keeping the
13
+ * entire image available for context.
14
+ * For example: taking an image of a car engine, but "zoom-in" to a faulty spark-plug, while keeping
15
+ * the entire image of the photographed engine for a context.
16
+ * The FLIRDisplaySettings effects both the IR and visual image.
17
+ */
18
+ @interface FLIRDisplaySettings : NSObject
19
+
20
+ - (instancetype)initWithZoomFactor:(float)zoomFactor zoomPanX:(int)zoomPanX zoomPanY:(int)zoomPanY;
21
+
22
+ /** Defines the image zoom factor, where value 1.0 means no zoom. */
23
+ @property (nonatomic, readonly) float zoomFactor;
24
+ /** Defines the image zoom pan/offset in X axis, where value 0 means centered. */
25
+ @property (nonatomic, readonly) int zoomPanX;
26
+ /** Defines the image zoom pan/offset in Y axis, where value 0 means centered. */
27
+ @property (nonatomic, readonly) int zoomPanY;
28
+
29
+ @end
@@ -1,70 +1,70 @@
1
- //
2
- // FLIRFocus.h
3
- // ThermalSDK
4
- //
5
- // Created by FLIR on 2020-07-02.
6
- // Copyright © 2020 Teledyne FLIR. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
-
11
- /**
12
- * Determines if camera should focus on near or far objects or control focus automatically (depending on the scene).
13
- */
14
- typedef NS_ENUM(NSUInteger, FLIRDistance) {
15
- NEAR,
16
- FAR,
17
- AUTO
18
- };
19
-
20
- /**
21
- * Autofocus modes.
22
- */
23
- typedef NS_ENUM(NSUInteger, FLIRAutoFocusMode) {
24
- /**
25
- * Allows to specify focus distance parameter.
26
- */
27
- NORMAL,
28
- /**
29
- * Camera automatically and continuously manages focus.
30
- */
31
- CONTINUOUS
32
- };
33
-
34
- /**
35
- * Defines the focus calculation method. I.e. based on maximizing the image contrast or based on laser distance measurement.
36
- */
37
- typedef NS_ENUM(NSUInteger, FLIRCalculationMethod) {
38
- /**
39
- * calculation based on maximizing the image contrast
40
- */
41
- CONTRAST,
42
- /**
43
- * calculation based on laser distance measurement
44
- */
45
- LASER,
46
- /**
47
- * calculation method automatically chosen by the camera (if supported)
48
- */
49
- AUTOMATIC
50
- };
51
-
52
- /** focus settings for the camera */
53
- @interface FLIRFocus : NSObject
54
-
55
- /** Triggers a single autofocus / AF event. */
56
- -(BOOL)autofocus: (out NSError * _Nullable *_Nullable)error;
57
- /** get distance selection */
58
- - (FLIRDistance)getDistance;
59
- /** set distance selection */
60
- - (BOOL)setDistance: (FLIRDistance)distance error: (out NSError * _Nullable *_Nullable)error;
61
- /** get autofocus mode */
62
- - (FLIRAutoFocusMode)getMode;
63
- /** set autofocus mode */
64
- - (BOOL)setMode: (FLIRAutoFocusMode)mode error: (out NSError * _Nullable *_Nullable)error;
65
- /** get focus calculation method */
66
- - (FLIRCalculationMethod)getCalculationMethod;
67
- /** set focus calculation method */
68
- - (BOOL)setCalculationMethod: (FLIRCalculationMethod)method error: (out NSError * _Nullable *_Nullable)error;
69
-
70
- @end
1
+ //
2
+ // FLIRFocus.h
3
+ // ThermalSDK
4
+ //
5
+ // Created by FLIR on 2020-07-02.
6
+ // Copyright © 2020 Teledyne FLIR. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ /**
12
+ * Determines if camera should focus on near or far objects or control focus automatically (depending on the scene).
13
+ */
14
+ typedef NS_ENUM(NSUInteger, FLIRDistance) {
15
+ NEAR,
16
+ FAR,
17
+ AUTO
18
+ };
19
+
20
+ /**
21
+ * Autofocus modes.
22
+ */
23
+ typedef NS_ENUM(NSUInteger, FLIRAutoFocusMode) {
24
+ /**
25
+ * Allows to specify focus distance parameter.
26
+ */
27
+ NORMAL,
28
+ /**
29
+ * Camera automatically and continuously manages focus.
30
+ */
31
+ CONTINUOUS
32
+ };
33
+
34
+ /**
35
+ * Defines the focus calculation method. I.e. based on maximizing the image contrast or based on laser distance measurement.
36
+ */
37
+ typedef NS_ENUM(NSUInteger, FLIRCalculationMethod) {
38
+ /**
39
+ * calculation based on maximizing the image contrast
40
+ */
41
+ CONTRAST,
42
+ /**
43
+ * calculation based on laser distance measurement
44
+ */
45
+ LASER,
46
+ /**
47
+ * calculation method automatically chosen by the camera (if supported)
48
+ */
49
+ AUTOMATIC
50
+ };
51
+
52
+ /** focus settings for the camera */
53
+ @interface FLIRFocus : NSObject
54
+
55
+ /** Triggers a single autofocus / AF event. */
56
+ -(BOOL)autofocus: (out NSError * _Nullable *_Nullable)error;
57
+ /** get distance selection */
58
+ - (FLIRDistance)getDistance;
59
+ /** set distance selection */
60
+ - (BOOL)setDistance: (FLIRDistance)distance error: (out NSError * _Nullable *_Nullable)error;
61
+ /** get autofocus mode */
62
+ - (FLIRAutoFocusMode)getMode;
63
+ /** set autofocus mode */
64
+ - (BOOL)setMode: (FLIRAutoFocusMode)mode error: (out NSError * _Nullable *_Nullable)error;
65
+ /** get focus calculation method */
66
+ - (FLIRCalculationMethod)getCalculationMethod;
67
+ /** set focus calculation method */
68
+ - (BOOL)setCalculationMethod: (FLIRCalculationMethod)method error: (out NSError * _Nullable *_Nullable)error;
69
+
70
+ @end