summaryrefslogtreecommitdiff
path: root/lzss.h
diff options
context:
space:
mode:
authorPixel <Pixel>2002-05-27 20:05:33 +0000
committerPixel <Pixel>2002-05-27 20:05:33 +0000
commite2fa0166aa8cb791e2e7d8b47adb6e07cbfcc549 (patch)
tree56ae179b0cd9d9abe7be9018d186bd1250cd934f /lzss.h
parentaaa76739c3d6dbeb33b1f1027ec93c260fe55b35 (diff)
Fixing LZSS name.
Diffstat (limited to 'lzss.h')
-rw-r--r--lzss.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/lzss.h b/lzss.h
new file mode 100644
index 0000000..e26cfc6
--- /dev/null
+++ b/lzss.h
@@ -0,0 +1,62 @@
+/*
+ * PSX-Tools Bundle Pack
+ * Copyright (C) 2002 Nicolas "Pixel" Noble
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __LZ77_H__
+#define __lZ77_H__
+
+#include <stdio.h>
+#include <generic.h>
+
+#define LZ77_VERSION "3.0.0-pre1"
+#define LZ77_NAME "LZ77"
+
+typedef struct {
+ char * name;
+ int one_is_compressed, bitmap_inversed, one_jump, overlap_trick, negative_trick, sixteen_bits, ptrb, filling;
+ int window_start;
+ int l_mask_1, l_shft_1, l_mask_2, l_shft_2;
+ int j_mask_1, j_shft_1, j_mask_2, j_shft_2;
+ int f_mask_1, f_shft_1, f_mask_2, f_shft_2;
+ int v_mask_1, v_shft_1, v_mask_2, v_shft_2;
+} scheme_t;
+
+enum {
+ XENO = 0,
+ DBZ,
+ FF7,
+ LM,
+ MM,
+ OB,
+ LODOSS,
+ FF6,
+ VP_1,
+ VP_2,
+ END
+};
+
+extern scheme_t scheme, schemes[];
+
+extern int tolerate;
+
+unsigned long lzss_decomp(FILE * f_source, FILE * f_cible, long true_length = -1);
+void lzss_comp(FILE * f_source, FILE * f_cible, long * delta = NULL);
+
+char swap_bits(char);
+
+#endif