1 /*----------------------------------------------------------------------------
2 * jacu - Just Another Compression Utility
3 *----------------------------------------------------------------------------
4 * This file is part of jacu.
6 * jacu is free software; you can redistribute it and/or modify it under the
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation; either version 2 of the License, or (at your option) any later
11 * jacu is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
16 * You should have received a copy of the GNU General Public License along
17 * with jacu; if not, write to the Free Software Foundation, Inc., 59 Temple
18 * Place, Suite 330, Boston, MA 02111-1307 USA
19 *----------------------------------------------------------------------------
27 #define BUFFER_SIZE 2000000
29 int main(int argc, char *argv[] )
31 char buff[BUFFER_SIZE];
37 len = fread(buff, 1, BUFFER_SIZE, stdin);
39 pos = jacu_mtf(buff, len, &z, &z_len);
41 printf("Z len = %d\n",z_len);
44 printf("%d ",pos[i]);/*putchar(pos[i]);*/
46 printf("\n-----Inversa del MTF-----\n");
47 z = jacu_buscar_z(buff, len, &size);
49 printf("Z_INV len = %d\n",size);
50 dato = jacu_mtf_inv(z, pos, len);