update libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / lzma-22.01 / Methods.txt
1 7-Zip method IDs for 7z and xz archives\r
2 ---------------------------------------\r
3 \r
4 Version: 18.06\r
5 Date: 2018-06-30\r
6 \r
7 Each compression or crypto method in 7z is associated with unique binary value (ID).\r
8 The length of ID in bytes is arbitrary but it can not exceed 63 bits (8 bytes).\r
9 \r
10 xz and 7z formats use same ID map.\r
11 \r
12 If you want to add some new ID, you have two ways:\r
13   1) Write request for allocating IDs to 7-Zip developers.\r
14   2) Generate 8-bytes ID:\r
15 \r
16     3F ZZ ZZ ZZ ZZ ZZ MM MM \r
17 \r
18     3F              - Prefix for random IDs (1 byte)\r
19     ZZ ZZ ZZ ZZ ZZ  - Developer ID (5 bytes). Use real random bytes. \r
20                       \r
21     MM MM           - Method ID (2 bytes)\r
22 \r
23     You can notify 7-Zip developers about your Developer ID / Method ID.\r
24 \r
25     Note: Use new ID, if old codec can not decode data encoded with new version.\r
26 \r
27 \r
28 List of defined IDs\r
29 -------------------\r
30       \r
31 00 - Copy\r
32 \r
33 03 - Delta\r
34 04 - BCJ (x86)\r
35 05 - PPC (big-endian)\r
36 06 - IA64\r
37 07 - ARM (little-endian)\r
38 08 - ARMT (little-endian)\r
39 09 - SPARC\r
40 \r
41 21 - LZMA2\r
42           \r
43 02.. - Common\r
44    03 [Swap]\r
45       - 2 Swap2\r
46       - 4 Swap4\r
47 \r
48 03.. - 7z\r
49    01 - \r
50       01 - LZMA\r
51   \r
52    03 - [Branch Codecs]\r
53       01 - [x86 Codecs]\r
54          03  - BCJ\r
55          1B  - BCJ2 (4 packed streams)\r
56       02 - \r
57          05 - PPC (big-endian)\r
58       03 - \r
59          01 - Alpha\r
60       04 - \r
61          01 - IA64\r
62       05 - \r
63          01 - ARM (little-endian)\r
64       06 - \r
65          05 - M68 (big-endian)\r
66       07 - \r
67          01 - ARMT (little-endian)\r
68       08 - \r
69          05 - SPARC\r
70 \r
71    04 - \r
72       01 - PPMD\r
73 \r
74    7F -\r
75       01 - experimental method.\r
76 \r
77 \r
78 04.. - Misc codecs\r
79 \r
80    00 - Reserved\r
81 \r
82    01 - [Zip]\r
83       00 - Copy (not used. Use {00} instead)\r
84       01 - Shrink\r
85       06 - Implode\r
86       08 - Deflate\r
87       09 - Deflate64\r
88       0A - Imploding\r
89       0C - BZip2 (not used. Use {040202} instead)\r
90       0E - LZMA (LZMA-zip)\r
91       5F - xz\r
92       60 - Jpeg\r
93       61 - WavPack\r
94       62 - PPMd (PPMd-zip)\r
95       63 - wzAES\r
96 \r
97    02 - \r
98       02 - BZip2\r
99 \r
100    03 - [Rar]\r
101       01 - Rar1\r
102       02 - Rar2\r
103       03 - Rar3\r
104       05 - Rar5\r
105 \r
106    04 - [Arj]\r
107       01 - Arj(1,2,3)\r
108       02 - Arj4\r
109 \r
110    05 - [Z]\r
111 \r
112    06 - [Lzh]\r
113 \r
114    07 - Reserved for 7z\r
115 \r
116    08 - [Cab]\r
117 \r
118    09 - [NSIS]\r
119       01 - DeflateNSIS\r
120       02 - BZip2NSIS\r
121 \r
122    F7 - External codecs (that are not included to 7-Zip)\r
123 \r
124       0x xx - reserved\r
125 \r
126       10 xx - reserved (LZHAM)\r
127          01 - LZHAM\r
128 \r
129       11 xx - reserved (Tino Reichardt)\r
130          01 - ZSTD\r
131          02 - BROTLI\r
132          04 - LZ4\r
133          05 - LZ5\r
134          06 - LIZARD\r
135 \r
136       12 xx - reserverd (Denis Anisimov)\r
137         \r
138          01 - WavPack2\r
139          FE - eSplitter \r
140          FF - RawSplitter\r
141  \r
142 \r
143 06.. - Crypto \r
144 \r
145    F0 - Ciphers without hashing algo\r
146 \r
147       01 - [AES]\r
148          0x - AES-128\r
149          4x - AES-192\r
150          8x - AES-256\r
151          Cx - AES\r
152 \r
153          x0 - ECB\r
154          x1 - CBC\r
155          x2 - CFB\r
156          x3 - OFB\r
157          x4 - CTR\r
158 \r
159    F1 - Combine Ciphers\r
160 \r
161       01 - [Zip]\r
162          01 - ZipCrypto (Main Zip crypto algo)\r
163 \r
164       03 - [RAR]\r
165          02 - \r
166          03 - Rar29AES (AES-128 + modified SHA-1)\r
167 \r
168       07 - [7z]\r
169          01 - 7zAES (AES-256 + SHA-256)\r
170 \r
171 \r
172 ---\r
173 End of document\r