Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2013-05-05 11:39:47 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2013-05-06 02:56:22 +0400
commit00f8520475b119d50d40b8a4b2298f04afa821b9 (patch)
treee389319284c45b5305bb5156e1d8f8310849902a /src/thirdparty/unrar/compress.hpp
parentb18faab4208d8368d28c7b51afe5a73bbc90b05e (diff)
update unrar to v5.0.2
Diffstat (limited to 'src/thirdparty/unrar/compress.hpp')
-rw-r--r--src/thirdparty/unrar/compress.hpp35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/thirdparty/unrar/compress.hpp b/src/thirdparty/unrar/compress.hpp
index 3157e1a3b..edaed3084 100644
--- a/src/thirdparty/unrar/compress.hpp
+++ b/src/thirdparty/unrar/compress.hpp
@@ -1,23 +1,25 @@
#ifndef _RAR_COMPRESS_
#define _RAR_COMPRESS_
-class ComprDataIO;
-class PackingFileTable;
-
-#define MAX_LZ_MATCH 0x101
-
-#define MAXWINSIZE 0x400000
-#define MAXWINMASK (MAXWINSIZE-1)
+#define MAX_LZ_MATCH 0x1001
+#define MAX3_LZ_MATCH 0x101 // Maximum match length for RAR v3.
#define LOW_DIST_REP_COUNT 16
-#define NC 299 /* alphabet = {0, 1, 2, ..., NC - 1} */
-#define DC 60
-#define LDC 17
-#define RC 28
+#define NC 306 /* alphabet = {0, 1, 2, ..., NC - 1} */
+#define DC 64
+#define LDC 16
+#define RC 44
#define HUFF_TABLE_SIZE (NC+DC+RC+LDC)
#define BC 20
+#define NC30 299 /* alphabet = {0, 1, 2, ..., NC - 1} */
+#define DC30 60
+#define LDC30 17
+#define RC30 28
+#define BC30 20
+#define HUFF_TABLE_SIZE30 (NC30+DC30+RC30+LDC30)
+
#define NC20 298 /* alphabet = {0, 1, 2, ..., NC - 1} */
#define DC20 48
#define RC20 28
@@ -25,16 +27,15 @@ class PackingFileTable;
#define MC20 257
// Largest alphabet size among all values listed above.
-#define LARGEST_TABLE_SIZE 299
+#define LARGEST_TABLE_SIZE 306
-enum {CODE_HUFFMAN,CODE_LZ,CODE_LZ2,CODE_REPEATLZ,CODE_CACHELZ,
- CODE_STARTFILE,CODE_ENDFILE,CODE_VM,CODE_VMDATA};
+enum {CODE_HUFFMAN,CODE_LZ,CODE_REPEATLZ,CODE_CACHELZ,
+ CODE_STARTFILE,CODE_ENDFILE,CODE_FILTER,CODE_FILTERDATA};
enum FilterType {
- FILTER_NONE, FILTER_PPM /*dummy*/, FILTER_E8, FILTER_E8E9,
- FILTER_UPCASETOLOW, FILTER_AUDIO, FILTER_RGB, FILTER_DELTA,
- FILTER_ITANIUM, FILTER_E8E9V2
+ FILTER_DELTA=0, FILTER_E8, FILTER_E8E9, FILTER_ARM,
+ FILTER_AUDIO, FILTER_RGB, FILTER_ITANIUM, FILTER_PPM /*dummy*/, FILTER_NONE
};
#endif