|
| 1 | +namespace OodleDotNet; |
| 2 | + |
| 3 | +public enum OodleVerbosity |
| 4 | +{ |
| 5 | + None = 0, |
| 6 | + Minimal = 1, |
| 7 | + Some = 2, |
| 8 | + Lots = 3, |
| 9 | + Force32 = 0x40000000 |
| 10 | +} |
| 11 | + |
| 12 | +public enum OodleFuzzSafe |
| 13 | +{ |
| 14 | + No = 0, |
| 15 | + Yes = 1 |
| 16 | +} |
| 17 | + |
| 18 | +public enum OodleCheckCRC |
| 19 | +{ |
| 20 | + No = 0, |
| 21 | + Yes = 1, |
| 22 | + Force32 = 0x40000000 |
| 23 | +} |
| 24 | + |
| 25 | +public enum OodleDecodeThreadPhase |
| 26 | +{ |
| 27 | + Phase1 = 1, |
| 28 | + Phase2 = 2, |
| 29 | + All = 3, |
| 30 | + Unthreaded = All |
| 31 | +} |
| 32 | + |
| 33 | +public enum OodleCompressionLevel |
| 34 | +{ |
| 35 | + /// <summary> |
| 36 | + /// don't compress, just copy raw bytes |
| 37 | + /// </summary> |
| 38 | + None=0, |
| 39 | + /// <summary> |
| 40 | + /// super fast mode, lower compression ratio |
| 41 | + /// </summary> |
| 42 | + SuperFast=1, |
| 43 | + /// <summary> |
| 44 | + /// fastest LZ mode with still decent compression ratio |
| 45 | + /// </summary> |
| 46 | + VeryFast=2, |
| 47 | + /// <summary> |
| 48 | + /// fast - good for daily use |
| 49 | + /// </summary> |
| 50 | + Fast=3, |
| 51 | + /// <summary> |
| 52 | + /// standard medium speed LZ mode |
| 53 | + /// </summary> |
| 54 | + Normal=4, |
| 55 | + |
| 56 | + /// <summary> |
| 57 | + /// optimal parse level 1 (faster optimal encoder) |
| 58 | + /// </summary> |
| 59 | + Optimal1=5, |
| 60 | + /// <summary> |
| 61 | + /// optimal parse level 2 (recommended baseline optimal encoder) |
| 62 | + /// </summary> |
| 63 | + Optimal2=6, |
| 64 | + /// <summary> |
| 65 | + /// optimal parse level 3 (slower optimal encoder) |
| 66 | + /// </summary> |
| 67 | + Optimal3=7, |
| 68 | + /// <summary> |
| 69 | + /// optimal parse level 4 (very slow optimal encoder) |
| 70 | + /// </summary> |
| 71 | + Optimal4=8, |
| 72 | + /// <summary> |
| 73 | + /// optimal parse level 5 (don't care about encode speed, maximum compression) |
| 74 | + /// </summary> |
| 75 | + Optimal5=9, |
| 76 | + |
| 77 | + /// <summary> |
| 78 | + /// faster than SuperFast, less compression |
| 79 | + /// </summary> |
| 80 | + HyperFast1=-1, |
| 81 | + /// <summary> |
| 82 | + /// faster than HyperFast1, less compression |
| 83 | + /// </summary> |
| 84 | + HyperFast2=-2, |
| 85 | + /// <summary> |
| 86 | + /// faster than HyperFast2, less compression |
| 87 | + /// </summary> |
| 88 | + HyperFast3=-3, |
| 89 | + /// <summary> |
| 90 | + /// fastest, less compression |
| 91 | + /// </summary> |
| 92 | + HyperFast4=-4, |
| 93 | + |
| 94 | + /// <summary> |
| 95 | + /// alias hyperfast base level |
| 96 | + /// </summary> |
| 97 | + HyperFast=HyperFast1, |
| 98 | + /// <summary> |
| 99 | + /// alias optimal standard level |
| 100 | + /// </summary> |
| 101 | + Optimal = Optimal2, |
| 102 | + /// <summary> |
| 103 | + /// maximum compression level |
| 104 | + /// </summary> |
| 105 | + Max = Optimal5, |
| 106 | + /// <summary> |
| 107 | + /// fastest compression level |
| 108 | + /// </summary> |
| 109 | + Min = HyperFast4, |
| 110 | + |
| 111 | + Force32 = 0x40000000, |
| 112 | + Invalid = Force32 |
| 113 | +} |
| 114 | + |
| 115 | +public enum OodleCompressor |
| 116 | +{ |
| 117 | + Invalid = -1, |
| 118 | + /// <summary> |
| 119 | + /// None = memcpy, pass through uncompressed bytes |
| 120 | + /// </summary> |
| 121 | + None = 3, |
| 122 | + |
| 123 | + /// <summary> |
| 124 | + /// Fast decompression and high compression ratios, amazing! |
| 125 | + /// </summary> |
| 126 | + Kraken = 8, |
| 127 | + /// <summary> |
| 128 | + /// Leviathan = Kraken's big brother with higher compression, slightly slower decompression. |
| 129 | + /// </summary> |
| 130 | + Leviathan = 13, |
| 131 | + /// <summary> |
| 132 | + /// Mermaid is between Kraken |
| 133 | + /// </summary>& Selkie - crazy fast, still decent compression. |
| 134 | + Mermaid = 9, |
| 135 | + /// <summary> |
| 136 | + /// Selkie is a super-fast relative of Mermaid. For maximum decode speed. |
| 137 | + /// </summary> |
| 138 | + Selkie = 11, |
| 139 | + /// <summary> |
| 140 | + /// Hydra, the many-headed beast = Leviathan, Kraken, Mermaid, or Selkie (see $OodleLZ_About_Hydra) |
| 141 | + /// </summary> |
| 142 | + Hydra = 12, |
| 143 | + |
| 144 | + /// <summary> |
| 145 | + /// no longer supported as of Oodle 2.9.0 |
| 146 | + /// </summary> |
| 147 | + BitKnit = 10, |
| 148 | + /// <summary> |
| 149 | + /// no longer supported as of Oodle 2.9.0 |
| 150 | + /// </summary> |
| 151 | + LZB16 = 4, |
| 152 | + /// <summary> |
| 153 | + /// no longer supported as of Oodle 2.9.0 |
| 154 | + /// </summary> |
| 155 | + LZNA = 7, |
| 156 | + /// <summary> |
| 157 | + /// no longer supported as of Oodle 2.9.0 |
| 158 | + /// </summary> |
| 159 | + LZH = 0, |
| 160 | + /// <summary> |
| 161 | + /// no longer supported as of Oodle 2.9.0 |
| 162 | + /// </summary> |
| 163 | + LZHLW = 1, |
| 164 | + /// <summary> |
| 165 | + /// no longer supported as of Oodle 2.9.0 |
| 166 | + /// </summary> |
| 167 | + LZNIB = 2, |
| 168 | + /// <summary> |
| 169 | + /// no longer supported as of Oodle 2.9.0 |
| 170 | + /// </summary> |
| 171 | + LZBLW = 5, |
| 172 | + /// <summary> |
| 173 | + /// no longer supported as of Oodle 2.9.0 |
| 174 | + /// </summary> |
| 175 | + LZA = 6, |
| 176 | + |
| 177 | + Count = 14, |
| 178 | + Force32 = 0x40000000 |
| 179 | +} |
0 commit comments