/* * $Header: /cvs/faces/faces/compface/uncompface.c,v 1.3 2002/02/21 15:42:54 devface Exp $ * * Compface - 48x48x1 image compression and decompression * * Copyright (c) 1990-2002 James Ashton - Sydney University * * 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. */ #define MAIN #include "compface.h" int uncompface(fbuf) char *fbuf; { if (!(status = setjmp(comp_env))) { UnCompAll(fbuf);/* compress otherwise */ UnGenFace(); WriteFace(fbuf); } return status; }