com.shinolab.autd3-sdk.pattern.holo 0.9.0 → 0.13.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/Holo.cs CHANGED
@@ -1,4 +1,5 @@
1
1
  using System;
2
+ using System.Collections.Generic;
2
3
  using System.Numerics;
3
4
  using System.Runtime.InteropServices;
4
5
 
@@ -10,7 +11,7 @@ namespace AUTD3.Holo
10
11
  T4010A1 = 1,
11
12
  }
12
13
 
13
- public readonly struct Amplitude
14
+ public readonly struct Amplitude : IEquatable<Amplitude>
14
15
  {
15
16
  internal const float AbsoluteThresholdOfHearing = 20e-6f;
16
17
 
@@ -28,9 +29,33 @@ namespace AUTD3.Holo
28
29
  new Amplitude(NativeHolo.autd3_holo_amplitude_kilo_pascal(value));
29
30
 
30
31
  public static Amplitude FromSpl(float value) =>
31
- new Amplitude(NativeHolo.autd3_holo_amplitude_spl(value));
32
+ new Amplitude(NativeHolo.autd3_holo_amplitude_from_db(value));
32
33
 
33
34
  public float Spl => 20f * MathF.Log10(Pascal / AbsoluteThresholdOfHearing);
35
+
36
+ public static Amplitude operator *(Amplitude lhs, float rhs) => new Amplitude(lhs.Pascal * rhs);
37
+
38
+ public static Amplitude operator *(float lhs, Amplitude rhs) => new Amplitude(lhs * rhs.Pascal);
39
+
40
+ public static Amplitude operator /(Amplitude lhs, float rhs) => new Amplitude(lhs.Pascal / rhs);
41
+
42
+ public bool Equals(Amplitude other) => Pascal.Equals(other.Pascal);
43
+
44
+ public override bool Equals(object? obj) => obj is Amplitude other && Equals(other);
45
+
46
+ public override int GetHashCode() => Pascal.GetHashCode();
47
+
48
+ public static bool operator ==(Amplitude left, Amplitude right) => left.Pascal == right.Pascal;
49
+
50
+ public static bool operator !=(Amplitude left, Amplitude right) => left.Pascal != right.Pascal;
51
+
52
+ public static bool operator <(Amplitude left, Amplitude right) => left.Pascal < right.Pascal;
53
+
54
+ public static bool operator >(Amplitude left, Amplitude right) => left.Pascal > right.Pascal;
55
+
56
+ public static bool operator <=(Amplitude left, Amplitude right) => left.Pascal <= right.Pascal;
57
+
58
+ public static bool operator >=(Amplitude left, Amplitude right) => left.Pascal >= right.Pascal;
34
59
  }
35
60
 
36
61
  public readonly struct PressureUnit
@@ -69,32 +94,56 @@ namespace AUTD3.Holo
69
94
  public static readonly SplUnit dB = default;
70
95
  }
71
96
 
72
- public readonly struct EmissionConstraint
97
+ public readonly struct IntensityConstraint : IEquatable<IntensityConstraint>
73
98
  {
74
- internal byte Kind { get; }
75
- internal byte Min { get; }
76
- internal byte Max { get; }
77
- internal float MultiplyValue { get; }
99
+ private const byte KindUnset = 0;
100
+ private const byte KindMultiply = 1;
101
+ private const byte KindClamp = 2;
102
+
103
+ private readonly byte _kind;
104
+ private readonly byte _min;
105
+ private readonly byte _max;
106
+ private readonly float _multiply;
78
107
 
79
- private EmissionConstraint(byte kind, byte min, byte max, float multiply)
108
+ private IntensityConstraint(byte kind, byte min, byte max, float multiply)
80
109
  {
81
- Kind = kind;
82
- Min = min;
83
- Max = max;
84
- MultiplyValue = multiply;
110
+ _kind = kind;
111
+ _min = min;
112
+ _max = max;
113
+ _multiply = multiply;
85
114
  }
86
115
 
87
- public static EmissionConstraint Normalize => new EmissionConstraint(0, 0, 0, 0);
88
- public static EmissionConstraint Multiply(float value) => new EmissionConstraint(1, 0, 0, value);
89
- public static EmissionConstraint Uniform(Intensity intensity) => new EmissionConstraint(2, intensity.Value, 0, 0);
90
- public static EmissionConstraint Clamp(Intensity min, Intensity max) => new EmissionConstraint(3, min.Value, max.Value, 0);
116
+ public static IntensityConstraint Multiply(float value) => new IntensityConstraint(KindMultiply, 0, 0, value);
117
+ public static IntensityConstraint Clamp(Intensity min, Intensity max) => new IntensityConstraint(KindClamp, min.Value, max.Value, 0);
91
118
 
92
- internal EmissionConstraintNative ToNative() =>
93
- new EmissionConstraintNative { Kind = Kind, Min = Min, Max = Max, Multiply = MultiplyValue };
119
+ internal IntensityConstraintNative ToNative()
120
+ {
121
+ if (_kind == KindUnset)
122
+ {
123
+ throw new Autd3Exception("the intensity constraint is not set (default(IntensityConstraint) has no value)", Autd3ErrorCode.InvalidArgument);
124
+ }
125
+ return new IntensityConstraintNative { Kind = (byte)(_kind - 1), Min = _min, Max = _max, Multiply = _multiply };
126
+ }
127
+
128
+ internal static IntensityConstraint FromNative(IntensityConstraintNative native) =>
129
+ native.Kind <= KindClamp - 1
130
+ ? new IntensityConstraint((byte)(native.Kind + 1), native.Min, native.Max, native.Multiply)
131
+ : throw new Autd3Exception($"unknown intensity constraint {native.Kind}");
132
+
133
+ public bool Equals(IntensityConstraint other) =>
134
+ _kind == other._kind && _min == other._min && _max == other._max && _multiply.Equals(other._multiply);
135
+
136
+ public override bool Equals(object? obj) => obj is IntensityConstraint other && Equals(other);
137
+
138
+ public override int GetHashCode() => HashCode.Combine(_kind, _min, _max, _multiply);
139
+
140
+ public static bool operator ==(IntensityConstraint left, IntensityConstraint right) => left.Equals(right);
141
+
142
+ public static bool operator !=(IntensityConstraint left, IntensityConstraint right) => !left.Equals(right);
94
143
  }
95
144
 
96
145
  [StructLayout(LayoutKind.Sequential)]
97
- internal struct EmissionConstraintNative
146
+ internal struct IntensityConstraintNative
98
147
  {
99
148
  public byte Kind;
100
149
  public byte Min;
@@ -102,88 +151,74 @@ namespace AUTD3.Holo
102
151
  public float Multiply;
103
152
  }
104
153
 
105
- public readonly struct NaiveOption
154
+ internal static class HoloOptionDefaults
106
155
  {
107
- public EmissionConstraint Constraint { get; }
108
- public Directivity Directivity { get; }
109
- public TransducerMask Mask { get; }
110
- public bool Parallel { get; }
111
-
112
- public NaiveOption() : this(constraint: null)
156
+ internal static readonly IntensityConstraint NaiveConstraint;
157
+ internal static readonly Directivity NaiveDirectivity;
158
+ internal static readonly uint GsRepeat;
159
+ internal static readonly IntensityConstraint GsConstraint;
160
+ internal static readonly Directivity GsDirectivity;
161
+ internal static readonly uint GspatRepeat;
162
+ internal static readonly IntensityConstraint GspatConstraint;
163
+ internal static readonly Directivity GspatDirectivity;
164
+ internal static readonly byte GreedyPhaseQuantizationLevels;
165
+ internal static readonly Directivity GreedyDirectivity;
166
+
167
+ static HoloOptionDefaults()
113
168
  {
169
+ OptionNative.Apply("preset", NativeHolo.autd3_holo_naive_option_default(out var naiveConstraint, out var naiveDirectivity));
170
+ NaiveConstraint = IntensityConstraint.FromNative(naiveConstraint);
171
+ NaiveDirectivity = (Directivity)naiveDirectivity;
172
+ OptionNative.Apply("preset", NativeHolo.autd3_holo_gs_option_default(out var gsRepeat, out var gsConstraint, out var gsDirectivity));
173
+ GsRepeat = (uint)gsRepeat;
174
+ GsConstraint = IntensityConstraint.FromNative(gsConstraint);
175
+ GsDirectivity = (Directivity)gsDirectivity;
176
+ OptionNative.Apply("preset", NativeHolo.autd3_holo_gspat_option_default(out var gspatRepeat, out var gspatConstraint, out var gspatDirectivity));
177
+ GspatRepeat = (uint)gspatRepeat;
178
+ GspatConstraint = IntensityConstraint.FromNative(gspatConstraint);
179
+ GspatDirectivity = (Directivity)gspatDirectivity;
180
+ OptionNative.Apply("preset", NativeHolo.autd3_holo_greedy_option_default(out GreedyPhaseQuantizationLevels, out var greedyDirectivity));
181
+ GreedyDirectivity = (Directivity)greedyDirectivity;
114
182
  }
183
+ }
115
184
 
116
- public NaiveOption(EmissionConstraint? constraint = null, Directivity directivity = Directivity.Sphere, TransducerMask mask = default, bool parallel = true)
117
- {
118
- Constraint = constraint ?? EmissionConstraint.Clamp(Intensity.Min, Intensity.Max);
119
- Directivity = directivity;
120
- Mask = mask;
121
- Parallel = parallel;
122
- }
185
+ public readonly struct NaiveOption
186
+ {
187
+ private readonly IntensityConstraint? _constraint;
188
+ public IntensityConstraint Constraint { get => _constraint ?? HoloOptionDefaults.NaiveConstraint; init => _constraint = value; }
189
+ private readonly Directivity? _directivity;
190
+ public Directivity Directivity { get => _directivity ?? HoloOptionDefaults.NaiveDirectivity; init => _directivity = value; }
191
+ public TransducerMask Mask { get; init; }
123
192
  }
124
193
 
125
194
  public readonly struct GsOption
126
195
  {
127
- public uint Repeat { get; }
128
- public EmissionConstraint Constraint { get; }
129
- public Directivity Directivity { get; }
130
- public TransducerMask Mask { get; }
131
- public bool Parallel { get; }
132
-
133
- public GsOption() : this(repeat: 100)
134
- {
135
- }
136
-
137
- public GsOption(uint repeat = 100, EmissionConstraint? constraint = null, Directivity directivity = Directivity.Sphere, TransducerMask mask = default, bool parallel = true)
138
- {
139
- Repeat = repeat;
140
- Constraint = constraint ?? EmissionConstraint.Clamp(Intensity.Min, Intensity.Max);
141
- Directivity = directivity;
142
- Mask = mask;
143
- Parallel = parallel;
144
- }
196
+ private readonly uint? _repeat;
197
+ public uint Repeat { get => _repeat ?? HoloOptionDefaults.GsRepeat; init => _repeat = value; }
198
+ private readonly IntensityConstraint? _constraint;
199
+ public IntensityConstraint Constraint { get => _constraint ?? HoloOptionDefaults.GsConstraint; init => _constraint = value; }
200
+ private readonly Directivity? _directivity;
201
+ public Directivity Directivity { get => _directivity ?? HoloOptionDefaults.GsDirectivity; init => _directivity = value; }
202
+ public TransducerMask Mask { get; init; }
145
203
  }
146
204
 
147
205
  public readonly struct GspatOption
148
206
  {
149
- public uint Repeat { get; }
150
- public EmissionConstraint Constraint { get; }
151
- public Directivity Directivity { get; }
152
- public TransducerMask Mask { get; }
153
- public bool Parallel { get; }
154
-
155
- public GspatOption() : this(repeat: 100)
156
- {
157
- }
158
-
159
- public GspatOption(uint repeat = 100, EmissionConstraint? constraint = null, Directivity directivity = Directivity.Sphere, TransducerMask mask = default, bool parallel = true)
160
- {
161
- Repeat = repeat;
162
- Constraint = constraint ?? EmissionConstraint.Clamp(Intensity.Min, Intensity.Max);
163
- Directivity = directivity;
164
- Mask = mask;
165
- Parallel = parallel;
166
- }
207
+ private readonly uint? _repeat;
208
+ public uint Repeat { get => _repeat ?? HoloOptionDefaults.GspatRepeat; init => _repeat = value; }
209
+ private readonly IntensityConstraint? _constraint;
210
+ public IntensityConstraint Constraint { get => _constraint ?? HoloOptionDefaults.GspatConstraint; init => _constraint = value; }
211
+ private readonly Directivity? _directivity;
212
+ public Directivity Directivity { get => _directivity ?? HoloOptionDefaults.GspatDirectivity; init => _directivity = value; }
213
+ public TransducerMask Mask { get; init; }
167
214
  }
168
215
 
169
216
  public readonly struct GreedyOption
170
217
  {
171
- public byte PhaseQuantizationLevels { get; }
172
- public EmissionConstraint Constraint { get; }
173
- public Directivity Directivity { get; }
174
- public TransducerMask Mask { get; }
175
-
176
- public GreedyOption() : this(phaseQuantizationLevels: 16)
177
- {
178
- }
179
-
180
- public GreedyOption(byte phaseQuantizationLevels = 16, EmissionConstraint? constraint = null, Directivity directivity = Directivity.Sphere, TransducerMask mask = default)
181
- {
182
- PhaseQuantizationLevels = phaseQuantizationLevels;
183
- Constraint = constraint ?? EmissionConstraint.Uniform(Intensity.Max);
184
- Directivity = directivity;
185
- Mask = mask;
186
- }
218
+ private readonly byte? _phaseQuantizationLevels;
219
+ public byte PhaseQuantizationLevels { get => _phaseQuantizationLevels ?? HoloOptionDefaults.GreedyPhaseQuantizationLevels; init => _phaseQuantizationLevels = value; }
220
+ private readonly Directivity? _directivity;
221
+ public Directivity Directivity { get => _directivity ?? HoloOptionDefaults.GreedyDirectivity; init => _directivity = value; }
187
222
  }
188
223
 
189
224
  [StructLayout(LayoutKind.Sequential)]
@@ -211,22 +246,34 @@ namespace AUTD3.Holo
211
246
  internal static extern float autd3_holo_amplitude_kilo_pascal(float value);
212
247
 
213
248
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
214
- internal static extern float autd3_holo_amplitude_spl(float value);
249
+ internal static extern float autd3_holo_amplitude_from_db(float value);
250
+
251
+ [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
252
+ internal static extern int autd3_holo_naive_option_default(out IntensityConstraintNative constraint, out byte directivity);
215
253
 
216
254
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
217
- internal static extern int autd3_holo_naive(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, in EmissionConstraintNative constraint, byte directivity, byte[]? mask, [MarshalAs(UnmanagedType.I1)] bool parallel, PatternBufferHandle buffer, byte[] outErr, UIntPtr outErrLen);
255
+ internal static extern int autd3_holo_gs_option_default(out UIntPtr repeat, out IntensityConstraintNative constraint, out byte directivity);
218
256
 
219
257
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
220
- internal static extern int autd3_holo_gs(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in EmissionConstraintNative constraint, byte directivity, byte[]? mask, [MarshalAs(UnmanagedType.I1)] bool parallel, PatternBufferHandle buffer, byte[] outErr, UIntPtr outErrLen);
258
+ internal static extern int autd3_holo_gspat_option_default(out UIntPtr repeat, out IntensityConstraintNative constraint, out byte directivity);
221
259
 
222
260
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
223
- internal static extern int autd3_holo_gspat(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in EmissionConstraintNative constraint, byte directivity, byte[]? mask, [MarshalAs(UnmanagedType.I1)] bool parallel, PatternBufferHandle buffer, byte[] outErr, UIntPtr outErrLen);
261
+ internal static extern int autd3_holo_greedy_option_default(out byte phaseQuantizationLevels, out byte directivity);
224
262
 
225
263
  [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
226
- internal static extern int autd3_holo_greedy(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, byte phaseQuantizationLevels, in EmissionConstraintNative constraint, byte directivity, byte[]? mask, PatternBufferHandle buffer, byte[] outErr, UIntPtr outErrLen);
264
+ internal static extern int autd3_holo_naive(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, PhaseBufferHandle phases, IntensityBufferHandle intensities, byte[] outErr, UIntPtr outErrLen);
265
+
266
+ [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
267
+ internal static extern int autd3_holo_gs(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, PhaseBufferHandle phases, IntensityBufferHandle intensities, byte[] outErr, UIntPtr outErrLen);
268
+
269
+ [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
270
+ internal static extern int autd3_holo_gspat(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, UIntPtr repeat, in IntensityConstraintNative constraint, byte directivity, byte[]? mask, PhaseBufferHandle phases, IntensityBufferHandle intensities, byte[] outErr, UIntPtr outErrLen);
271
+
272
+ [DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
273
+ internal static extern int autd3_holo_greedy(GeometryHandle geometry, HoloAmplitudeTargetNative[] foci, UIntPtr numFoci, float wavelengthMm, IntPtr intensities, byte uniformIntensity, uint[] order, UIntPtr orderLen, byte phaseQuantizationLevels, byte directivity, PhaseBufferHandle dst, byte[] outErr, UIntPtr outErrLen);
227
274
  }
228
275
 
229
- public readonly struct AmplitudeTarget
276
+ public readonly struct AmplitudeTarget : IEquatable<AmplitudeTarget>
230
277
  {
231
278
  public Vector3 Point { get; }
232
279
  public Amplitude Amplitude { get; }
@@ -236,6 +283,16 @@ namespace AUTD3.Holo
236
283
  Point = point;
237
284
  Amplitude = amplitude;
238
285
  }
286
+
287
+ public bool Equals(AmplitudeTarget other) => Point.Equals(other.Point) && Amplitude.Equals(other.Amplitude);
288
+
289
+ public override bool Equals(object? obj) => obj is AmplitudeTarget other && Equals(other);
290
+
291
+ public override int GetHashCode() => HashCode.Combine(Point, Amplitude);
292
+
293
+ public static bool operator ==(AmplitudeTarget left, AmplitudeTarget right) => left.Equals(right);
294
+
295
+ public static bool operator !=(AmplitudeTarget left, AmplitudeTarget right) => !left.Equals(right);
239
296
  }
240
297
 
241
298
  public static class Holo
@@ -266,60 +323,52 @@ namespace AUTD3.Holo
266
323
  }
267
324
  if (mask.Length != numDevices)
268
325
  {
269
- throw new Autd3Exception($"the mask has {mask.Length} device slots but the buffer has {numDevices} devices");
270
- }
271
- var flat = new byte[numDevices * Autd3.NumTransducers];
272
- for (var d = 0; d < numDevices; d++)
273
- {
274
- if (mask[d].Length != Autd3.NumTransducers)
275
- {
276
- throw new Autd3Exception($"each device mask requires {Autd3.NumTransducers} values");
277
- }
278
- for (var t = 0; t < Autd3.NumTransducers; t++)
279
- {
280
- flat[d * Autd3.NumTransducers + t] = (byte)(mask[d][t] ? 1 : 0);
281
- }
326
+ throw new Autd3Exception($"the mask has {mask.Length} device slots but the geometry has {numDevices} devices", Autd3ErrorCode.InvalidArgument);
282
327
  }
283
- return flat;
328
+ return BufferArray.Flatten(mask, m => (byte)(m ? 1 : 0), "mask values");
284
329
  }
285
330
 
286
- public static void Naive(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, NaiveOption option, PatternBuffer dst)
331
+ public static void Naive(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, NaiveOption option, PhaseBuffer phases, IntensityBuffer intensities)
287
332
  {
288
333
  var c = option.Constraint.ToNative();
289
334
  var err = new byte[NativeAbi.ErrorBufferLength];
290
- if (NativeHolo.autd3_holo_naive(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, dst.NumDevices), option.Parallel, dst.Handle, err, (UIntPtr)err.Length) != 0)
335
+ var code = NativeHolo.autd3_holo_naive(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), phases.Handle, intensities.Handle, err, (UIntPtr)err.Length);
336
+ if (code != 0)
291
337
  {
292
- throw new Autd3Exception(NativeUtil.Utf8(err));
338
+ throw Autd3Exception.FromNative(code, err);
293
339
  }
294
340
  }
295
341
 
296
- public static void Gs(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GsOption option, PatternBuffer dst)
342
+ public static void Gs(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GsOption option, PhaseBuffer phases, IntensityBuffer intensities)
297
343
  {
298
344
  var c = option.Constraint.ToNative();
299
345
  var err = new byte[NativeAbi.ErrorBufferLength];
300
- if (NativeHolo.autd3_holo_gs(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, dst.NumDevices), option.Parallel, dst.Handle, err, (UIntPtr)err.Length) != 0)
346
+ var code = NativeHolo.autd3_holo_gs(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), phases.Handle, intensities.Handle, err, (UIntPtr)err.Length);
347
+ if (code != 0)
301
348
  {
302
- throw new Autd3Exception(NativeUtil.Utf8(err));
349
+ throw Autd3Exception.FromNative(code, err);
303
350
  }
304
351
  }
305
352
 
306
- public static void Gspat(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GspatOption option, PatternBuffer dst)
353
+ public static void Gspat(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GspatOption option, PhaseBuffer phases, IntensityBuffer intensities)
307
354
  {
308
355
  var c = option.Constraint.ToNative();
309
356
  var err = new byte[NativeAbi.ErrorBufferLength];
310
- if (NativeHolo.autd3_holo_gspat(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, dst.NumDevices), option.Parallel, dst.Handle, err, (UIntPtr)err.Length) != 0)
357
+ var code = NativeHolo.autd3_holo_gspat(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, (UIntPtr)option.Repeat, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, geometry.NumDevices), phases.Handle, intensities.Handle, err, (UIntPtr)err.Length);
358
+ if (code != 0)
311
359
  {
312
- throw new Autd3Exception(NativeUtil.Utf8(err));
360
+ throw Autd3Exception.FromNative(code, err);
313
361
  }
314
362
  }
315
363
 
316
- public static void Greedy(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, GreedyOption option, PatternBuffer dst)
364
+ public static void Greedy(Geometry geometry, AmplitudeTarget[] foci, Length wavelength, PatternIntensity intensities, uint[] order, GreedyOption option, PhaseBuffer dst)
317
365
  {
318
- var c = option.Constraint.ToNative();
366
+ using var intensityLease = new HandleLease(intensities.Buffer?.Handle);
319
367
  var err = new byte[NativeAbi.ErrorBufferLength];
320
- if (NativeHolo.autd3_holo_greedy(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, option.PhaseQuantizationLevels, in c, (byte)option.Directivity, FlattenMask(option.Mask.Mask, dst.NumDevices), dst.Handle, err, (UIntPtr)err.Length) != 0)
368
+ var code = NativeHolo.autd3_holo_greedy(geometry.Handle, ToNative(foci), (UIntPtr)foci.Length, wavelength.Mm, intensityLease.Pointer, intensities.Uniform, order, (UIntPtr)order.Length, option.PhaseQuantizationLevels, (byte)option.Directivity, dst.Handle, err, (UIntPtr)err.Length);
369
+ if (code != 0)
321
370
  {
322
- throw new Autd3Exception(NativeUtil.Utf8(err));
371
+ throw Autd3Exception.FromNative(code, err);
323
372
  }
324
373
  }
325
374
  }
@@ -5,7 +5,7 @@ The following is a list of those components and the full text of their licenses.
5
5
 
6
6
  ## Overview
7
7
 
8
- - MIT License (63)
8
+ - MIT License (27)
9
9
  - Apache License 2.0 (3)
10
10
  - Unicode License v3 (1)
11
11
 
@@ -226,7 +226,7 @@ Used by:
226
226
  Used by:
227
227
 
228
228
  - nalgebra 0.35.0 — https://github.com/dimforge/nalgebra
229
- - simba 0.10.0 — https://github.com/dimforge/simba
229
+ - simba 0.10.2 — https://github.com/dimforge/simba
230
230
 
231
231
  ```
232
232
  Apache License
@@ -437,11 +437,14 @@ Used by:
437
437
 
438
438
  Used by:
439
439
 
440
- - rayon-core 1.13.0 — https://github.com/rayon-rs/rayon
441
- - rayon 1.12.0 — https://github.com/rayon-rs/rayon
440
+ - bitflags 2.13.2 — https://github.com/bitflags/bitflags
441
+ - num-complex 0.4.6 — https://github.com/rust-num/num-complex
442
+ - num-integer 0.1.47 — https://github.com/rust-num/num-integer
443
+ - num-rational 0.4.2 — https://github.com/rust-num/num-rational
444
+ - num-traits 0.2.19 — https://github.com/rust-num/num-traits
442
445
 
443
446
  ```
444
- Copyright (c) 2010 The Rust Project Developers
447
+ Copyright (c) 2014 The Rust Project Developers
445
448
 
446
449
  Permission is hereby granted, free of charge, to any
447
450
  person obtaining a copy of this software and associated
@@ -473,10 +476,10 @@ DEALINGS IN THE SOFTWARE.
473
476
 
474
477
  Used by:
475
478
 
476
- - cfg-if 1.0.4 — https://github.com/rust-lang/cfg-if
479
+ - rawpointer 0.2.1 — https://github.com/bluss/rawpointer/
477
480
 
478
481
  ```
479
- Copyright (c) 2014 Alex Crichton
482
+ Copyright (c) 2015
480
483
 
481
484
  Permission is hereby granted, free of charge, to any
482
485
  person obtaining a copy of this software and associated
@@ -508,49 +511,12 @@ DEALINGS IN THE SOFTWARE.
508
511
 
509
512
  Used by:
510
513
 
511
- - core_affinity 0.8.3 — https://github.com/Elzair/core_affinity_rs
514
+ - matrixmultiply 0.3.11 — https://github.com/bluss/matrixmultiply/
512
515
 
513
516
  ```
514
- Copyright (c) 2014 The Rust Project Developers
515
-
516
- Permission is hereby granted, free of charge, to any
517
- person obtaining a copy of this software and associated
518
- documentation files (the "Software"), to deal in the
519
- Software without restriction, including without
520
- limitation the rights to use, copy, modify, merge,
521
- publish, distribute, sublicense, and/or sell copies of
522
- the Software, and to permit persons to whom the Software
523
- is furnished to do so, subject to the following
524
- conditions:
525
-
526
- The above copyright notice and this permission notice
527
- shall be included in all copies or substantial portions
528
- of the Software.
529
-
530
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
531
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
532
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
533
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
534
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
535
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
536
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
537
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
538
- DEALINGS IN THE SOFTWARE.
539
- ```
540
-
541
- ## MIT License
542
-
543
- Used by:
544
-
545
- - bitflags 2.13.0 — https://github.com/bitflags/bitflags
546
- - log 0.4.33 — https://github.com/rust-lang/log
547
- - num-complex 0.4.6 — https://github.com/rust-num/num-complex
548
- - num-integer 0.1.46 — https://github.com/rust-num/num-integer
549
- - num-rational 0.4.2 — https://github.com/rust-num/num-rational
550
- - num-traits 0.2.19 — https://github.com/rust-num/num-traits
551
-
552
- ```
553
- Copyright (c) 2014 The Rust Project Developers
517
+ Copyright (c) 2016 - 2023 Ulrik Sverdrup "bluss"
518
+ Copyirhgt (c) 2018 R. Janis Goldschmidt
519
+ Copyright (c) 2021 DutchGhost [constparse.rs]
554
520
 
555
521
  Permission is hereby granted, free of charge, to any
556
522
  person obtaining a copy of this software and associated
@@ -582,11 +548,11 @@ DEALINGS IN THE SOFTWARE.
582
548
 
583
549
  Used by:
584
550
 
585
- - either 1.16.0 — https://github.com/rayon-rs/either
586
- - rawpointer 0.2.1 — https://github.com/bluss/rawpointer/
551
+ - zerocopy-derive 0.8.63 — https://github.com/google/zerocopy
552
+ - zerocopy 0.8.63 — https://github.com/google/zerocopy
587
553
 
588
554
  ```
589
- Copyright (c) 2015
555
+ Copyright 2023 The Fuchsia Authors
590
556
 
591
557
  Permission is hereby granted, free of charge, to any
592
558
  person obtaining a copy of this software and associated
@@ -612,16 +578,19 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
612
578
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
613
579
  DEALINGS IN THE SOFTWARE.
614
580
 
581
+
615
582
  ```
616
583
 
617
584
  ## MIT License
618
585
 
619
586
  Used by:
620
587
 
621
- - winapi 0.3.9 — https://github.com/retep998/winapi-rs
588
+ - crc 3.4.0 — https://github.com/mrhooray/crc-rs.git
622
589
 
623
590
  ```
624
- Copyright (c) 2015-2018 The winapi-rs Developers
591
+ MIT License
592
+
593
+ Copyright (c) 2017 crc-rs Developers
625
594
 
626
595
  Permission is hereby granted, free of charge, to any person obtaining a copy
627
596
  of this software and associated documentation files (the "Software"), to deal
@@ -647,10 +616,12 @@ SOFTWARE.
647
616
 
648
617
  Used by:
649
618
 
650
- - num_cpus 1.17.0 — https://github.com/seanmonstar/num_cpus
619
+ - crc-catalog 2.5.0 — https://github.com/akhilles/crc-catalog.git
651
620
 
652
621
  ```
653
- Copyright (c) 2015-2025 Sean McArthur
622
+ MIT License
623
+
624
+ Copyright (c) 2019 Akhil Velagapudi
654
625
 
655
626
  Permission is hereby granted, free of charge, to any person obtaining a copy
656
627
  of this software and associated documentation files (the "Software"), to deal
@@ -659,302 +630,16 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
659
630
  copies of the Software, and to permit persons to whom the Software is
660
631
  furnished to do so, subject to the following conditions:
661
632
 
662
- The above copyright notice and this permission notice shall be included in
663
- all copies or substantial portions of the Software.
633
+ The above copyright notice and this permission notice shall be included in all
634
+ copies or substantial portions of the Software.
664
635
 
665
636
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
666
637
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
667
638
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
668
639
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
669
640
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
670
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
671
- THE SOFTWARE.
672
-
673
-
674
- ```
675
-
676
- ## MIT License
677
-
678
- Used by:
679
-
680
- - matrixmultiply 0.3.10 — https://github.com/bluss/matrixmultiply/
681
-
682
- ```
683
- Copyright (c) 2016 - 2023 Ulrik Sverdrup "bluss"
684
- Copyirhgt (c) 2018 R. Janis Goldschmidt
685
- Copyright (c) 2021 DutchGhost [constparse.rs]
686
-
687
- Permission is hereby granted, free of charge, to any
688
- person obtaining a copy of this software and associated
689
- documentation files (the "Software"), to deal in the
690
- Software without restriction, including without
691
- limitation the rights to use, copy, modify, merge,
692
- publish, distribute, sublicense, and/or sell copies of
693
- the Software, and to permit persons to whom the Software
694
- is furnished to do so, subject to the following
695
- conditions:
696
-
697
- The above copyright notice and this permission notice
698
- shall be included in all copies or substantial portions
699
- of the Software.
700
-
701
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
702
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
703
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
704
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
705
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
706
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
707
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
708
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
709
- DEALINGS IN THE SOFTWARE.
710
-
711
- ```
712
-
713
- ## MIT License
714
-
715
- Used by:
716
-
717
- - rand_core 0.10.1 — https://github.com/rust-random/rand_core
718
-
719
- ```
720
- Copyright (c) 2018-2026 The Rand Project Developers
721
-
722
- Permission is hereby granted, free of charge, to any
723
- person obtaining a copy of this software and associated
724
- documentation files (the "Software"), to deal in the
725
- Software without restriction, including without
726
- limitation the rights to use, copy, modify, merge,
727
- publish, distribute, sublicense, and/or sell copies of
728
- the Software, and to permit persons to whom the Software
729
- is furnished to do so, subject to the following
730
- conditions:
731
-
732
- The above copyright notice and this permission notice
733
- shall be included in all copies or substantial portions
734
- of the Software.
735
-
736
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
737
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
738
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
739
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
740
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
741
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
742
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
743
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
744
- DEALINGS IN THE SOFTWARE.
745
-
746
- ```
747
-
748
- ## MIT License
749
-
750
- Used by:
751
-
752
- - getrandom 0.4.3 — https://github.com/rust-random/getrandom
753
-
754
- ```
755
- Copyright (c) 2018-2026 The rust-random Project Developers
756
- Copyright (c) 2014 The Rust Project Developers
757
-
758
- Permission is hereby granted, free of charge, to any
759
- person obtaining a copy of this software and associated
760
- documentation files (the "Software"), to deal in the
761
- Software without restriction, including without
762
- limitation the rights to use, copy, modify, merge,
763
- publish, distribute, sublicense, and/or sell copies of
764
- the Software, and to permit persons to whom the Software
765
- is furnished to do so, subject to the following
766
- conditions:
767
-
768
- The above copyright notice and this permission notice
769
- shall be included in all copies or substantial portions
770
- of the Software.
771
-
772
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
773
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
774
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
775
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
776
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
777
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
778
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
779
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
780
- DEALINGS IN THE SOFTWARE.
781
-
782
- ```
783
-
784
- ## MIT License
785
-
786
- Used by:
787
-
788
- - tracing-core 0.1.36 — https://github.com/tokio-rs/tracing
789
- - tracing 0.1.44 — https://github.com/tokio-rs/tracing
790
-
791
- ```
792
- Copyright (c) 2019 Tokio Contributors
793
-
794
- Permission is hereby granted, free of charge, to any
795
- person obtaining a copy of this software and associated
796
- documentation files (the "Software"), to deal in the
797
- Software without restriction, including without
798
- limitation the rights to use, copy, modify, merge,
799
- publish, distribute, sublicense, and/or sell copies of
800
- the Software, and to permit persons to whom the Software
801
- is furnished to do so, subject to the following
802
- conditions:
803
-
804
- The above copyright notice and this permission notice
805
- shall be included in all copies or substantial portions
806
- of the Software.
807
-
808
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
809
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
810
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
811
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
812
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
813
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
814
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
815
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
816
- DEALINGS IN THE SOFTWARE.
817
-
818
- ```
819
-
820
- ## MIT License
821
-
822
- Used by:
823
-
824
- - chacha20 0.10.2 — https://github.com/RustCrypto/stream-ciphers
825
-
826
- ```
827
- Copyright (c) 2019-2026 The RustCrypto Project Developers
828
-
829
- Permission is hereby granted, free of charge, to any
830
- person obtaining a copy of this software and associated
831
- documentation files (the "Software"), to deal in the
832
- Software without restriction, including without
833
- limitation the rights to use, copy, modify, merge,
834
- publish, distribute, sublicense, and/or sell copies of
835
- the Software, and to permit persons to whom the Software
836
- is furnished to do so, subject to the following
837
- conditions:
838
-
839
- The above copyright notice and this permission notice
840
- shall be included in all copies or substantial portions
841
- of the Software.
842
-
843
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
844
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
845
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
846
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
847
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
848
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
849
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
850
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
851
- DEALINGS IN THE SOFTWARE.
852
-
853
- ```
854
-
855
- ## MIT License
856
-
857
- Used by:
858
-
859
- - cpufeatures 0.3.0 — https://github.com/RustCrypto/utils
860
-
861
- ```
862
- Copyright (c) 2020-2025 The RustCrypto Project Developers
863
-
864
- Permission is hereby granted, free of charge, to any
865
- person obtaining a copy of this software and associated
866
- documentation files (the "Software"), to deal in the
867
- Software without restriction, including without
868
- limitation the rights to use, copy, modify, merge,
869
- publish, distribute, sublicense, and/or sell copies of
870
- the Software, and to permit persons to whom the Software
871
- is furnished to do so, subject to the following
872
- conditions:
873
-
874
- The above copyright notice and this permission notice
875
- shall be included in all copies or substantial portions
876
- of the Software.
877
-
878
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
879
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
880
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
881
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
882
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
883
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
884
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
885
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
886
- DEALINGS IN THE SOFTWARE.
887
-
888
- ```
889
-
890
- ## MIT License
891
-
892
- Used by:
893
-
894
- - libc 0.2.186 — https://github.com/rust-lang/libc
895
-
896
- ```
897
- Copyright (c) The Rust Project Developers
898
-
899
- Permission is hereby granted, free of charge, to any
900
- person obtaining a copy of this software and associated
901
- documentation files (the "Software"), to deal in the
902
- Software without restriction, including without
903
- limitation the rights to use, copy, modify, merge,
904
- publish, distribute, sublicense, and/or sell copies of
905
- the Software, and to permit persons to whom the Software
906
- is furnished to do so, subject to the following
907
- conditions:
908
-
909
- The above copyright notice and this permission notice
910
- shall be included in all copies or substantial portions
911
- of the Software.
912
-
913
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
914
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
915
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
916
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
917
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
918
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
919
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
920
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
921
- DEALINGS IN THE SOFTWARE.
922
-
923
- ```
924
-
925
- ## MIT License
926
-
927
- Used by:
928
-
929
- - rand 0.10.1 — https://github.com/rust-random/rand
930
-
931
- ```
932
- Copyright 2018 Developers of the Rand project
933
- Copyright (c) 2014 The Rust Project Developers
934
-
935
- Permission is hereby granted, free of charge, to any
936
- person obtaining a copy of this software and associated
937
- documentation files (the "Software"), to deal in the
938
- Software without restriction, including without
939
- limitation the rights to use, copy, modify, merge,
940
- publish, distribute, sublicense, and/or sell copies of
941
- the Software, and to permit persons to whom the Software
942
- is furnished to do so, subject to the following
943
- conditions:
944
-
945
- The above copyright notice and this permission notice
946
- shall be included in all copies or substantial portions
947
- of the Software.
948
-
949
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
950
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
951
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
952
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
953
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
954
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
955
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
956
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
957
- DEALINGS IN THE SOFTWARE.
641
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
642
+ SOFTWARE.
958
643
 
959
644
  ```
960
645
 
@@ -962,36 +647,18 @@ DEALINGS IN THE SOFTWARE.
962
647
 
963
648
  Used by:
964
649
 
965
- - zerocopy-derive 0.8.52 — https://github.com/google/zerocopy
966
- - zerocopy 0.8.52 — https://github.com/google/zerocopy
650
+ - bytemuck 1.25.2 — https://github.com/Lokathor/bytemuck
967
651
 
968
652
  ```
969
- Copyright 2023 The Fuchsia Authors
653
+ MIT License
970
654
 
971
- Permission is hereby granted, free of charge, to any
972
- person obtaining a copy of this software and associated
973
- documentation files (the "Software"), to deal in the
974
- Software without restriction, including without
975
- limitation the rights to use, copy, modify, merge,
976
- publish, distribute, sublicense, and/or sell copies of
977
- the Software, and to permit persons to whom the Software
978
- is furnished to do so, subject to the following
979
- conditions:
655
+ Copyright (c) 2019 Daniel "Lokathor" Gee.
980
656
 
981
- The above copyright notice and this permission notice
982
- shall be included in all copies or substantial portions
983
- of the Software.
657
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
984
658
 
985
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
986
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
987
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
988
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
989
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
990
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
991
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
992
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
993
- DEALINGS IN THE SOFTWARE.
659
+ The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
994
660
 
661
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
995
662
 
996
663
  ```
997
664
 
@@ -999,12 +666,12 @@ DEALINGS IN THE SOFTWARE.
999
666
 
1000
667
  Used by:
1001
668
 
1002
- - thread-priority 3.1.1 — https://github.com/iddm/thread-priority
669
+ - wide 1.7.1 — https://github.com/Lokathor/wide
1003
670
 
1004
671
  ```
1005
672
  MIT License
1006
673
 
1007
- Copyright (c) 2017 Victor Polevoy
674
+ Copyright (c) 2020 Daniel "Lokathor" Gee
1008
675
 
1009
676
  Permission is hereby granted, free of charge, to any person obtaining a copy
1010
677
  of this software and associated documentation files (the "Software"), to deal
@@ -1030,26 +697,7 @@ SOFTWARE.
1030
697
 
1031
698
  Used by:
1032
699
 
1033
- - bytemuck 1.25.0 — https://github.com/Lokathor/bytemuck
1034
-
1035
- ```
1036
- MIT License
1037
-
1038
- Copyright (c) 2019 Daniel "Lokathor" Gee.
1039
-
1040
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1041
-
1042
- The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
1043
-
1044
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1045
-
1046
- ```
1047
-
1048
- ## MIT License
1049
-
1050
- Used by:
1051
-
1052
- - safe_arch 1.0.0 — https://github.com/Lokathor/safe_arch
700
+ - safe_arch 1.2.0 — https://github.com/Lokathor/safe_arch
1053
701
 
1054
702
  ```
1055
703
  MIT License
@@ -1068,9 +716,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
1068
716
 
1069
717
  Used by:
1070
718
 
1071
- - autd3-rs-core 0.9.0 — https://github.com/shinolab/autd3-sdk
1072
- - autd3-rs-pattern-holo 0.9.0 — https://github.com/shinolab/autd3-sdk
1073
- - autd3-cpu-wire 0.9.0 — https://github.com/shinolab/autd3-sdk
719
+ - autd3-rs-core 0.13.0 — https://github.com/shinolab/autd3-sdk
720
+ - autd3-rs-pattern-holo 0.13.0 — https://github.com/shinolab/autd3-sdk
721
+ - autd3-cpu-wire 0.13.0 — https://github.com/shinolab/autd3-sdk
1074
722
 
1075
723
  ```
1076
724
  MIT License
@@ -1101,24 +749,8 @@ SOFTWARE.
1101
749
 
1102
750
  Used by:
1103
751
 
1104
- - autd3-ffi-abi 0.9.0 — https://github.com/shinolab/autd3-sdk
1105
- - autd3-ffi-pattern-holo 0.9.0 — https://github.com/shinolab/autd3-sdk
1106
- - chrono 0.4.45 — https://github.com/chronotope/chrono
1107
- - r-efi 6.0.0 — https://github.com/r-efi/r-efi
1108
- - wide 1.5.0 — https://github.com/Lokathor/wide
1109
- - winapi-i686-pc-windows-gnu 0.4.0 — https://github.com/retep998/winapi-rs
1110
- - winapi-x86_64-pc-windows-gnu 0.4.0 — https://github.com/retep998/winapi-rs
1111
- - windows-collections 0.3.2 — https://github.com/microsoft/windows-rs
1112
- - windows-core 0.62.2 — https://github.com/microsoft/windows-rs
1113
- - windows-future 0.3.2 — https://github.com/microsoft/windows-rs
1114
- - windows-implement 0.60.2 — https://github.com/microsoft/windows-rs
1115
- - windows-interface 0.59.3 — https://github.com/microsoft/windows-rs
1116
- - windows-link 0.2.1 — https://github.com/microsoft/windows-rs
1117
- - windows-numerics 0.3.1 — https://github.com/microsoft/windows-rs
1118
- - windows-result 0.4.1 — https://github.com/microsoft/windows-rs
1119
- - windows-strings 0.5.1 — https://github.com/microsoft/windows-rs
1120
- - windows-threading 0.2.1 — https://github.com/microsoft/windows-rs
1121
- - windows 0.62.2 — https://github.com/microsoft/windows-rs
752
+ - autd3-ffi-abi 0.13.0 — https://github.com/shinolab/autd3-sdk
753
+ - autd3-ffi-pattern-holo 0.13.0 — https://github.com/shinolab/autd3-sdk
1122
754
 
1123
755
  ```
1124
756
  MIT License
@@ -1146,15 +778,13 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
1146
778
 
1147
779
  Used by:
1148
780
 
1149
- - hermit-abi 0.5.2 — https://github.com/hermit-os/hermit-rs
1150
- - pin-project-lite 0.2.17 — https://github.com/taiki-e/pin-project-lite
1151
- - proc-macro2 1.0.106 — https://github.com/dtolnay/proc-macro2
1152
- - quote 1.0.46 — https://github.com/dtolnay/quote
1153
- - rustversion 1.0.22 — https://github.com/dtolnay/rustversion
1154
- - syn 2.0.118 — https://github.com/dtolnay/syn
1155
- - thiserror-impl 2.0.18 — https://github.com/dtolnay/thiserror
1156
- - thiserror 2.0.18 — https://github.com/dtolnay/thiserror
1157
- - unicode-ident 1.0.24 — https://github.com/dtolnay/unicode-ident
781
+ - proc-macro2 1.0.107 — https://github.com/dtolnay/proc-macro2
782
+ - quote 1.0.47 — https://github.com/dtolnay/quote
783
+ - syn 2.0.119 — https://github.com/dtolnay/syn
784
+ - syn 3.0.9 — https://github.com/dtolnay/syn
785
+ - thiserror-impl 2.0.21 — https://github.com/dtolnay/thiserror
786
+ - thiserror 2.0.21 — https://github.com/dtolnay/thiserror
787
+ - unicode-ident 1.0.27 — https://github.com/dtolnay/unicode-ident
1158
788
 
1159
789
  ```
1160
790
  Permission is hereby granted, free of charge, to any
@@ -1187,37 +817,6 @@ DEALINGS IN THE SOFTWARE.
1187
817
 
1188
818
  Used by:
1189
819
 
1190
- - tracing-core 0.1.36 — https://github.com/tokio-rs/tracing
1191
-
1192
- ```
1193
- The MIT License (MIT)
1194
-
1195
- Copyright (c) 2014 Mathijs van de Nes
1196
-
1197
- Permission is hereby granted, free of charge, to any person obtaining a copy
1198
- of this software and associated documentation files (the "Software"), to deal
1199
- in the Software without restriction, including without limitation the rights
1200
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1201
- copies of the Software, and to permit persons to whom the Software is
1202
- furnished to do so, subject to the following conditions:
1203
-
1204
- The above copyright notice and this permission notice shall be included in all
1205
- copies or substantial portions of the Software.
1206
-
1207
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1208
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1209
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1210
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1211
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1212
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1213
- SOFTWARE.
1214
-
1215
- ```
1216
-
1217
- ## MIT License
1218
-
1219
- Used by:
1220
-
1221
820
  - typenum 1.20.1 — https://github.com/paholg/typenum
1222
821
 
1223
822
  ```
@@ -1245,50 +844,11 @@ SOFTWARE.
1245
844
 
1246
845
  ```
1247
846
 
1248
- ## MIT License
1249
-
1250
- Used by:
1251
-
1252
- - crossbeam-deque 0.8.7 — https://github.com/crossbeam-rs/crossbeam
1253
- - crossbeam-epoch 0.9.20 — https://github.com/crossbeam-rs/crossbeam
1254
- - crossbeam-utils 0.8.21 — https://github.com/crossbeam-rs/crossbeam
1255
-
1256
- ```
1257
- The MIT License (MIT)
1258
-
1259
- Copyright (c) 2019 The Crossbeam Project Developers
1260
-
1261
- Permission is hereby granted, free of charge, to any
1262
- person obtaining a copy of this software and associated
1263
- documentation files (the "Software"), to deal in the
1264
- Software without restriction, including without
1265
- limitation the rights to use, copy, modify, merge,
1266
- publish, distribute, sublicense, and/or sell copies of
1267
- the Software, and to permit persons to whom the Software
1268
- is furnished to do so, subject to the following
1269
- conditions:
1270
-
1271
- The above copyright notice and this permission notice
1272
- shall be included in all copies or substantial portions
1273
- of the Software.
1274
-
1275
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
1276
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
1277
- TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
1278
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
1279
- SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1280
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
1281
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1282
- IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1283
- DEALINGS IN THE SOFTWARE.
1284
-
1285
- ```
1286
-
1287
847
  ## Unicode License v3
1288
848
 
1289
849
  Used by:
1290
850
 
1291
- - unicode-ident 1.0.24 — https://github.com/dtolnay/unicode-ident
851
+ - unicode-ident 1.0.27 — https://github.com/dtolnay/unicode-ident
1292
852
 
1293
853
  ```
1294
854
  UNICODE LICENSE V3
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/shinolab/autd3-sdk.git",
6
6
  "directory": "bindings/unity/com.shinolab.autd3-sdk.pattern.holo"
7
7
  },
8
- "version": "0.9.0",
8
+ "version": "0.13.0",
9
9
  "displayName": "AUTD3 Pattern Holo",
10
10
  "description": "AUTD3 multi-focus holographic patterns (Unity binding).",
11
11
  "unity": "6000.0",
@@ -15,6 +15,6 @@
15
15
  "url": "https://github.com/shinolab"
16
16
  },
17
17
  "dependencies": {
18
- "com.shinolab.autd3-sdk.pattern": "0.9.0"
18
+ "com.shinolab.autd3-sdk.pattern": "0.13.0"
19
19
  }
20
20
  }