aboutsummaryrefslogtreecommitdiff
path: root/uncompface.c
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-16 22:54:11 +0200
committerDeposite Pirate2018-09-16 22:54:11 +0200
commit1c7d481d0104add72933c560d957a422e8636d84 (patch)
tree2ef71132559dd018c453f4617d92ce69394e42f0 /uncompface.c
Initial commit.
Diffstat (limited to 'uncompface.c')
-rw-r--r--uncompface.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/uncompface.c b/uncompface.c
new file mode 100644
index 0000000..1a61eb5
--- /dev/null
+++ b/uncompface.c
@@ -0,0 +1,36 @@
+/*
+ * Compface - 48x48x1 image compression and decompression
+ *
+ * Copyright (c) James Ashton - Sydney University - June 1990.
+ *
+ * Written 11th November 1989.
+ *
+ * Permission is given to distribute these sources, as long as the
+ * copyright messages are not removed, and no monies are exchanged.
+ *
+ * No responsibility is taken for any errors on inaccuracies inherent
+ * either to the comments or the code of this program, but if reported
+ * to me, then an attempt will be made to fix them.
+ */
+
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define MAIN
+
+#include "compface_private.h"
+
+int
+uncompface(fbuf)
+char *fbuf;
+{
+ if (!(status = setjmp(comp_env)))
+ {
+ UnCompAll(fbuf);/* compress otherwise */
+ UnGenFace();
+ WriteFace(fbuf);
+ }
+ return status;
+}