/
CoreTypes.cs
927 lines (783 loc) · 25 KB
/
CoreTypes.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
using OpenCV.Net.Native;
using System;
namespace OpenCV.Net
{
/// <summary>
/// Specifies the available pixel bit depth formats for <see cref="IplImage"/> instances.
/// </summary>
public enum IplDepth : int
{
/// <summary>
/// Specifies an unsigned 8-bit pixel depth.
/// </summary>
U8 = 8,
/// <summary>
/// Specifies an unsigned 16-bit pixel depth.
/// </summary>
U16 = 16,
/// <summary>
/// Specifies a floating point 32-bit pixel depth.
/// </summary>
F32 = 32,
/// <summary>
/// Specifies a floating point 64-bit pixel depth.
/// </summary>
F64 = 64,
/// <summary>
/// Specifies a signed 8-bit pixel depth.
/// </summary>
S8 = unchecked((int)(0x80000000 | 8)),
/// <summary>
/// Specifies a signed 16-bit pixel depth.
/// </summary>
S16 = unchecked((int)(0x80000000 | 16)),
/// <summary>
/// Specifies a signed 32-bit pixel depth.
/// </summary>
S32 = unchecked((int)(0x80000000 | 32))
}
/// <summary>
/// Specifies the available data origin for <see cref="IplImage"/> instances.
/// </summary>
public enum IplOrigin : int
{
/// <summary>
/// Specifies a top-left reference coordinate system (Y increases downwards).
/// </summary>
TopLeft = 0,
/// <summary>
/// Specifies a bottom-right reference coordinate system (Y increases upwards).
/// </summary>
BottomLeft = 1
}
/// <summary>
/// Specifies the type of border to create around a copied image.
/// </summary>
public enum IplBorder : int
{
/// <summary>
/// Specifies that the border is filled with a fixed value.
/// </summary>
Constant,
/// <summary>
/// Specifies that the pixels from the top and bottom rows, the left-most and right-most
/// columns are replicated to fill the border.
/// </summary>
Replicate,
/// <summary>
/// This border type is currently unsupported.
/// </summary>
Reflect,
/// <summary>
/// This border type is currently unsupported.
/// </summary>
Wrap
}
/// <summary>
/// Specifies the available element bit depth formats for <see cref="Mat"/> and <see cref="Seq"/> instances.
/// </summary>
public enum Depth : int
{
/// <summary>
/// Specifies an unsigned 8-bit element depth.
/// </summary>
U8 = 0,
/// <summary>
/// Specifies a signed 8-bit element depth.
/// </summary>
S8 = 1,
/// <summary>
/// Specifies an unsigned 16-bit element depth.
/// </summary>
U16 = 2,
/// <summary>
/// Specifies a signed 16-bit element depth.
/// </summary>
S16 = 3,
/// <summary>
/// Specifies a signed 32-bit element depth.
/// </summary>
S32 = 4,
/// <summary>
/// Specifies a floating point 32-bit element depth.
/// </summary>
F32 = 5,
/// <summary>
/// Specifies a floating point 64-bit element depth.
/// </summary>
F64 = 6,
/// <summary>
/// Specifies a user defined element pointer type.
/// </summary>
UserType = 7
}
/// <summary>
/// Specifies the available termination criteria modes for iterative algorithms.
/// </summary>
[Flags]
public enum TermCriteriaType : int
{
/// <summary>
/// Specifies that no termination criteria should be used.
/// </summary>
None = 0,
/// <summary>
/// Specifies that a maximum number of iterations criteria should be used.
/// </summary>
MaxIter = 1,
/// <summary>
/// Specifies that a minimum required accuracy criteria should be used.
/// </summary>
Epsilon = 2
}
/// <summary>
/// Specifies the comparison operation used to test the relation between individual array elements
/// in <see cref="CV.Cmp"/> and <see cref="CV.CmpS"/>.
/// </summary>
public enum ComparisonOperation : int
{
/// <summary>
/// Specifies that the comparison should check whether the two elements are equal.
/// </summary>
Equal = 0,
/// <summary>
/// Specifies that the comparison should check whether the first element is
/// greater than the second element.
/// </summary>
GreaterThan = 1,
/// <summary>
/// Specifies that the comparison should check whether the first element is
/// greater than or equal to the second element.
/// </summary>
GreaterOrEqual = 2,
/// <summary>
/// Specifies that the comparison should check whether the first element is
/// less than the second element.
/// </summary>
LessThan = 3,
/// <summary>
/// Specifies that the comparison should check whether the first element is
/// less than or equal to the second element.
/// </summary>
LessOrEqual = 4,
/// <summary>
/// Specifies that the comparison should check whether the two elements are not equal.
/// </summary>
NotEqual = 5
}
/// <summary>
/// Specifies operation flags for <see cref="Arr.CheckRange"/>.
/// </summary>
[Flags]
public enum CheckArrayFlags : int
{
/// <summary>
/// Specifies that the method should check that every element is neither NaN nor Infinity.
/// </summary>
CheckNanInfinity = 0,
/// <summary>
/// Specifies that the method should check that every element is within a specified range.
/// </summary>
CheckRange = 1,
/// <summary>
/// Specifies whether the method should raise an error if an element is invalid or out of range.
/// </summary>
CheckQuiet = 2
}
/// <summary>
/// Specifies the random distribution to use for <see cref="CV.RandArr"/>.
/// </summary>
public enum RandDistribution : int
{
/// <summary>
/// Specifies that a uniform distribution should be used.
/// </summary>
Uniform = 0,
/// <summary>
/// Specifies that a normal (gaussian) distribution should be used.
/// </summary>
Normal = 1
}
/// <summary>
/// Specifies operation flags for the <see cref="CV.Sort"/> method.
/// </summary>
[Flags]
public enum SortFlags : int
{
/// <summary>
/// Specifies that the method should sort every row.
/// </summary>
EveryRow = 0,
/// <summary>
/// Specifies that the method should sort every column.
/// </summary>
EveryColumn = 1,
/// <summary>
/// Specifies that the method should sort in ascending order.
/// </summary>
Ascending = 0,
/// <summary>
/// Specifies that the method should sort in descending order.
/// </summary>
Descending = 16
}
/// <summary>
/// Specifies operation flags for <see cref="CV.GEMM"/>.
/// </summary>
[Flags]
public enum GemmFlags : int
{
/// <summary>
/// Specifies that no operation flags are active.
/// </summary>
None = 0,
/// <summary>
/// Specifies that matrix A should be transposed.
/// </summary>
TransposeA = 1,
/// <summary>
/// Specifies that matrix B should be transposed.
/// </summary>
TransposeB = 2,
/// <summary>
/// Specifies that matrix C should be transposed.
/// </summary>
TransposeC = 4
}
/// <summary>
/// Specifies the mirror mode used in <see cref="CV.Flip"/>.
/// </summary>
public enum FlipMode : int
{
/// <summary>
/// Specifies that the array should be flipped vertically.
/// </summary>
Vertical = 0,
/// <summary>
/// Specifies that the array should be flipped horizontally.
/// </summary>
Horizontal = 1,
/// <summary>
/// Specifies that the array should be flipped both vertically and horizontally.
/// </summary>
Both = -1
}
/// <summary>
/// Specifies operation flags for <see cref="CV.SVD"/>.
/// </summary>
[Flags]
public enum SvdFlags : int
{
/// <summary>
/// Specifies that no operation flags are active.
/// </summary>
None = 0,
/// <summary>
/// Specifies that matrix A can be modified in order to speed up the processing.
/// </summary>
ModifyA = 1,
/// <summary>
/// Specifies that the output matrix U is transposed to speed up the processing.
/// </summary>
TransposeU = 2,
/// <summary>
/// Specifies that the output matrix V is transposed to speed up the processing.
/// </summary>
TransposeV = 4
}
/// <summary>
/// Specifies the inversion method for solving linear systems.
/// </summary>
public enum InversionMethod : int
{
/// <summary>
/// Gaussian elimination with optimal pivot element chosen.
/// </summary>
LU = 0,
/// <summary>
/// Singular value decomposition (SVD) method.
/// </summary>
Svd = 1,
/// <summary>
/// SVD method for a symmetric positively-defined matrix.
/// </summary>
SvdSym = 2,
/// <summary>
/// Cholesky decomposition. The matrix must be symmetrical
/// and positively defined.
/// </summary>
Cholesky = 3,
/// <summary>
/// QR decomposition. The system can be over-defined and/or the
/// input matrix can be singular.
/// </summary>
QR = 4,
/// <summary>
/// A non-exclusive flag meaning that the normal equations are
/// solved instead of the original system.
/// </summary>
Normal = 16
}
/// <summary>
/// Specifies operation flags for <see cref="CV.CalcCovarMatrix"/>.
/// </summary>
[Flags]
public enum CovarianceFlags : int
{
/// <summary>
/// Specifies that the scrambled covariance matrix for fast PCA
/// of a set of very large vectors should be computed.
/// </summary>
Scrambled = 0,
/// <summary>
/// Specifies that a normal covariance matrix with the same linear
/// size as the total number of elements in each input vector should
/// be computed.
/// </summary>
Normal = 1,
/// <summary>
/// Specifies that the method should use the provided average of
/// the input vectors.
/// </summary>
UseAvg = 2,
/// <summary>
/// Specifies that the covariance matrix will be scaled. Scaling will
/// depend on whether <see cref="Scrambled"/> or <see cref="Normal"/>
/// flags are set.
/// </summary>
Scale = 4,
/// <summary>
/// Specifies that all the input vectors are stored as rows of a single matrix.
/// </summary>
Rows = 8,
/// <summary>
/// Specifies that all the input vectors are stored as columns of a single matrix.
/// </summary>
Cols = 16
}
/// <summary>
/// Specifies operation flags for <see cref="CV.CalcPCA"/>.
/// </summary>
[Flags]
public enum PcaFlags : int
{
/// <summary>
/// Specifies whether input vectors are stored as rows of the input matrix.
/// </summary>
DataAsRow = 0,
/// <summary>
/// Specifies whether input vectors are stored as columns of the input matrix.
/// </summary>
DataAsCol = 1,
/// <summary>
/// Specifies whether the precomputed average is passed as a parameter.
/// </summary>
UseAvg = 2
}
/// <summary>
/// Specifies flags for <see cref="CV.Norm"/> and <see cref="CV.Normalize"/>.
/// </summary>
[Flags]
public enum NormTypes : int
{
/// <summary>
/// Specifies the elementwise max norm.
/// </summary>
C = 1,
/// <summary>
/// Specifies the L1 or Manhattan norm.
/// </summary>
L1 = 2,
/// <summary>
/// Specifies the L2 or Euclidean norm.
/// </summary>
L2 = 4,
/// <summary>
/// Specifies a squared L2 norm.
/// </summary>
L2Sqr = 5,
/// <summary>
/// Specifies a Hamming distance norm.
/// </summary>
Hamming = 6,
/// <summary>
/// Specifies a Hamming2 norm.
/// </summary>
Hamming2 = 7,
/// <summary>
/// The bitmask used to extract the norm type.
/// </summary>
NormMask = 7,
/// <summary>
/// Specifies that a relative difference norm should be computed.
/// </summary>
Relative = 8,
/// <summary>
/// Specifies that a difference norm should be computed.
/// </summary>
Diff = 16,
/// <summary>
/// Specifies that a range normalization should be computed.
/// </summary>
MinMax = 32,
/// <summary>
/// Specifies a difference elementwise max norm.
/// </summary>
DiffC = (Diff | C),
/// <summary>
/// Specifies a difference L1 norm.
/// </summary>
DiffL1 = (Diff | L1),
/// <summary>
/// Specifies a difference L2 norm.
/// </summary>
DiffL2 = (Diff | L2),
/// <summary>
/// Specifies a relative difference elementwise max norm.
/// </summary>
RelativeC = (Relative | C),
/// <summary>
/// Specifies a relative difference L1 norm.
/// </summary>
RelativeL1 = (Relative | L1),
/// <summary>
/// Specifies a relative difference L2 norm.
/// </summary>
RelativeL2 = (Relative | L2)
}
/// <summary>
/// Specifies the matrix reduction operation.
/// </summary>
public enum ReduceOperation : int
{
/// <summary>
/// Specifies that the output is the sum of all the matrix rows/columns.
/// </summary>
Sum,
/// <summary>
/// Specifies that the output is the mean vector of all of the matrix rows/columns.
/// </summary>
Avg,
/// <summary>
/// Specifies that the output is the maximum (column/row-wise) of all of the matrix rows/columns.
/// </summary>
Max,
/// <summary>
/// Specifies that the output is the minimum (column/row-wise) of all of the matrix rows/columns.
/// </summary>
Min
}
/// <summary>
/// Specifies the operation of discrete linear transforms and related functions.
/// </summary>
[Flags]
public enum DiscreteTransformFlags : int
{
/// <summary>
/// Specifies that a forward 1D or 2D transform should be performed.
/// </summary>
Forward = 0,
/// <summary>
/// Specifies that an inverse 1D or 2D transform should be performed.
/// </summary>
Inverse = 1,
/// <summary>
/// Specifies that the result should be scaled by dividing it by the number of array elements.
/// </summary>
Scale = 2,
/// <summary>
/// A combination of <see cref="Inverse"/> and <see cref="Scale"/>.
/// </summary>
InverseScale = (Inverse + Scale),
/// <summary>
/// Specifies that each row of the array should be processed individually.
/// </summary>
Rows = 4,
/// <summary>
/// Specifies that the second array should be conjugated before the multiplication.
/// </summary>
MultiplyConjugate = 8
}
/// <summary>
/// Specifies the most common sequence element types.
/// </summary>
public enum SequenceElementType : int
{
/// <summary>
/// Specifies a point in 2D space.
/// </summary>
Point = 12,
/// <summary>
/// Specifies a freeman code element.
/// </summary>
Code = Depth.U8,
/// <summary>
/// Specifies an undefined type of sequence element.
/// </summary>
Generic = 0,
/// <summary>
/// Specifies a pointer type of sequence element.
/// </summary>
Pointer = Depth.UserType,
/// <summary>
/// Specifies a pointer to an element of another sequence.
/// </summary>
PointPointer = Pointer,
/// <summary>
/// Specifies an index of an element of some other sequence.
/// </summary>
Index = Depth.S32,
/// <summary>
/// Specifies an edge of a graph.
/// </summary>
GraphEdge = 0,
/// <summary>
/// Specifies a vertex of a graph.
/// </summary>
GraphVertex = 0,
/// <summary>
/// Specifies a vertex of a binary tree.
/// </summary>
TreeVertex = 0,
/// <summary>
/// Specifies a connected component.
/// </summary>
ConnectedComponent = 0,
/// <summary>
/// Specifies a point in 3D space.
/// </summary>
Point3D = 13,
}
/// <summary>
/// Specifies the kind of <see cref="Seq"/> instances.
/// </summary>
public enum SequenceKind : int
{
/// <summary>
/// Specifies a generic array of elements.
/// </summary>
Generic = (0 << SeqHelper.ElementTypeBits),
/// <summary>
/// Specifies a sequence of elements that represents a geometrical curve.
/// </summary>
Curve = (1 << SeqHelper.ElementTypeBits),
/// <summary>
/// Specifies a binary tree of elements.
/// </summary>
BinaryTree = (2 << SeqHelper.ElementTypeBits),
/// <summary>
/// Specifies a graph of elements.
/// </summary>
Graph = (1 << SeqHelper.ElementTypeBits),
/// <summary>
/// Specifies a set of planar subdivisions.
/// </summary>
Subdiv2D = (2 << SeqHelper.ElementTypeBits)
}
/// <summary>
/// Specifies a set of operational flags for <see cref="Seq"/> instances.
/// </summary>
[Flags]
public enum SequenceFlags : int
{
/// <summary>
/// Specifies that the geometrical curve is closed.
/// </summary>
Closed = (1 << SeqHelper.FlagShift),
/// <summary>
/// Specifies a simple sequence of elements.
/// </summary>
Simple = (0 << SeqHelper.FlagShift),
/// <summary>
/// Specifies that the geometrical curve is convex.
/// </summary>
Convex = (0 << SeqHelper.FlagShift),
/// <summary>
/// Specifies that the geometrical curve represents a hole.
/// </summary>
Hole = (2 << SeqHelper.FlagShift),
/// <summary>
/// Specifies that a graph type sequence is oriented.
/// </summary>
Oriented = (1 << SeqHelper.FlagShift)
}
/// <summary>
/// Specifies the type of connectivity used for line rasterizing.
/// </summary>
public enum LineType : int
{
/// <summary>
/// Specifies the 8-connected Bresenham algorithm.
/// </summary>
Connected8 = 8,
/// <summary>
/// Specifies the 4-connected Bresenham algorithm.
/// </summary>
Connected4 = 4,
}
/// <summary>
/// Specifies flags for the line drawing algorithm used for rasterizing.
/// </summary>
[Flags]
public enum LineFlags : int
{
/// <summary>
/// Specifies the 8-connected Bresenham algorithm.
/// </summary>
Connected8 = 8,
/// <summary>
/// Specifies the 4-connected Bresenham algorithm.
/// </summary>
Connected4 = 4,
/// <summary>
/// Specifies anti-aliased lines drawn using gaussian filtering.
/// </summary>
AntiAliased = 16
}
/// <summary>
/// Specifies font face flags for instances of <see cref="Font"/>.
/// </summary>
[Flags]
public enum FontFace : int
{
/// <summary>
/// Specifies a normal size sans-serif font.
/// </summary>
HersheySimplex = 0,
/// <summary>
/// Specifies a small size sans-serif font.
/// </summary>
HersheyPlain = 1,
/// <summary>
/// Specifies a normal size sans-serif font more complex than <see cref="HersheySimplex"/>.
/// </summary>
HersheyDuplex = 2,
/// <summary>
/// Specifies a normal size serif font.
/// </summary>
HersheyComplex = 3,
/// <summary>
/// Specifies a normal size serif font more complex than <see cref="HersheyComplex"/>.
/// </summary>
HersheyTriplex = 4,
/// <summary>
/// Specifies a smaller version of <see cref="HersheyComplex"/>.
/// </summary>
HersheyComplexSmall = 5,
/// <summary>
/// Specifies a hand-writing style font.
/// </summary>
HersheyScriptSimplex = 6,
/// <summary>
/// Specifies a more complex variant of <see cref="HersheyScriptSimplex"/>.
/// </summary>
HersheyScriptComplex = 7,
/// <summary>
/// Specifies that the font should be rendered in italic or oblique font.
/// </summary>
Italic = 16
}
/// <summary>
/// Specifies operation flags for the k-means algorithm.
/// </summary>
[Flags]
public enum KMeansFlags : int
{
/// <summary>
/// Specifies that no operation flags are active.
/// </summary>
None = 0,
/// <summary>
/// Specifies that during the first attempt the user-supplied labels should be used
/// instead of computing them from the initial centers. For the second and further
/// attempts, use the random or semi-random centers.
/// </summary>
UseInitialLabels = 1
}
/// <summary>
/// Specifies available flags for creating <see cref="FileStorage"/> instances.
/// </summary>
[Flags]
public enum StorageFlags : int
{
/// <summary>
/// Specifies that the file should be open for reading.
/// </summary>
Read = 0,
/// <summary>
/// Specifies that the file should be open for writing.
/// </summary>
Write = 1,
/// <summary>
/// Specifies that the file should be open for appending.
/// </summary>
Append = 2,
/// <summary>
/// Specifies that all data in the file should be read or that write operations should
/// target internal memory buffers.
/// </summary>
Memory = 4,
/// <summary>
/// Specifies that the file format should be automatically determined.
/// </summary>
FormatAuto = 0,
/// <summary>
/// Specifies that the XML file format should be used.
/// </summary>
FormatXml = 8,
/// <summary>
/// Specifies that the YAML file format should be used.
/// </summary>
FormatYaml = 16,
}
/// <summary>
/// Specifies the available types of file storage node values.
/// </summary>
public enum FileNodeType : int
{
/// <summary>
/// Specifies an integer type value.
/// </summary>
Integer = 1,
/// <summary>
/// Specifies a floating-point type value.
/// </summary>
Real = 2,
/// <summary>
/// Specifies a text string type value.
/// </summary>
String = 3,
/// <summary>
/// Specifies a reference type value.
/// </summary>
Ref = 4,
/// <summary>
/// Specifies a sequence node value.
/// </summary>
Seq = 5,
/// <summary>
/// Specifies a map node value.
/// </summary>
Map = 6,
}
/// <summary>
/// Specifies type flags for writing compound structures to a <see cref="FileStorage"/> instance.
/// </summary>
[Flags]
public enum StructStorageFlags : int
{
/// <summary>
/// Specifies that the written structure is a sequence, that is, its elements do not have a name.
/// </summary>
Seq = 5,
/// <summary>
/// Specifies that the written structure is a map, that is, all its elements have names.
/// </summary>
Map = 6,
/// <summary>
/// Specifies that the structure is written as a flow (not as a block), which is more compact.
/// This is an optional flag that is used only for YAML streams.
/// </summary>
Flow = 8
}
}