com.shinolab.autd3-sdk.pattern 0.2.0 → 0.3.0

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.
package/Ops.cs CHANGED
@@ -14,6 +14,12 @@ namespace AUTD3
14
14
  PhaseHalf = 2,
15
15
  }
16
16
 
17
+ public static class PatternCompressionExt
18
+ {
19
+ public static int PerFrame(this PatternCompression format) =>
20
+ (int)NativePattern.autd3_pattern_compression_per_frame((byte)format);
21
+ }
22
+
17
23
  public sealed class WritePatternCompressed : ICommand
18
24
  {
19
25
  private readonly PatternBank _bank;
@@ -135,6 +141,6 @@ namespace AUTD3
135
141
  }
136
142
 
137
143
  IntPtr ICommand.CreateOp() =>
138
- NativePattern.autd3_op_change_pattern_bank((byte)_bank, _transitionMode.Mode, _transitionMode.Value);
144
+ NativePattern.autd3_op_change_pattern_bank((byte)_bank, _transitionMode.Mode, _transitionMode.Value, _transitionMode.MarginNs);
139
145
  }
140
146
  }
package/Pattern.cs CHANGED
@@ -155,7 +155,10 @@ namespace AUTD3
155
155
  internal static extern IntPtr autd3_op_config_foci_stm(byte bank, IntPtr samplingConfig, uint size, byte numFoci, float soundSpeedMPerS, ushort rep);
156
156
 
157
157
  [DllImport("autd3capi")]
158
- internal static extern IntPtr autd3_op_change_pattern_bank(byte bank, byte transitionMode, ulong transitionValue);
158
+ internal static extern IntPtr autd3_op_change_pattern_bank(byte bank, byte transitionMode, ulong transitionValue, uint transitionMarginNs);
159
+
160
+ [DllImport("autd3capi")]
161
+ internal static extern UIntPtr autd3_pattern_compression_per_frame(byte format);
159
162
  }
160
163
 
161
164
  public readonly struct DevicePattern : IEnumerable<Emission>
Binary file
@@ -654,10 +654,10 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
654
654
 
655
655
  Used by:
656
656
 
657
- - autd3-ffi-abi 0.2.0 — https://github.com/shinolab/autd3-sdk
658
- - autd3-ffi-pattern 0.2.0 — https://github.com/shinolab/autd3-sdk
659
- - autd3-rs-core 0.2.0 — https://github.com/shinolab/autd3-sdk
660
- - autd3-rs-pattern 0.2.0 — https://github.com/shinolab/autd3-sdk
657
+ - autd3-ffi-abi 0.3.0 — https://github.com/shinolab/autd3-sdk
658
+ - autd3-ffi-pattern 0.3.0 — https://github.com/shinolab/autd3-sdk
659
+ - autd3-rs-core 0.3.0 — https://github.com/shinolab/autd3-sdk
660
+ - autd3-rs-pattern 0.3.0 — https://github.com/shinolab/autd3-sdk
661
661
  - chrono 0.4.45 — https://github.com/chronotope/chrono
662
662
  - wide 1.5.0 — https://github.com/Lokathor/wide
663
663
 
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "com.shinolab.autd3-sdk.pattern",
3
- "version": "0.2.0",
3
+ "repository": {
4
+ "type": "git",
5
+ "url": "git+https://github.com/shinolab/autd3-sdk.git",
6
+ "directory": "bindings/unity/com.shinolab.autd3-sdk.pattern"
7
+ },
8
+ "version": "0.3.0",
4
9
  "displayName": "AUTD3 Pattern",
5
10
  "description": "AUTD3 emission patterns: Focus, Plane, Bessel (Unity binding).",
6
11
  "unity": "6000.0",
@@ -10,6 +15,6 @@
10
15
  "url": "https://github.com/shinolab"
11
16
  },
12
17
  "dependencies": {
13
- "com.shinolab.autd3-sdk.core": "0.2.0"
18
+ "com.shinolab.autd3-sdk.core": "0.3.0"
14
19
  }
15
20
  }