Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

bit-ops.h

Go to the documentation of this file.
00001 /*
00002  * "$Id: bit-ops.h,v 1.1 2004/09/17 18:38:01 rleigh Exp $"
00003  *
00004  *   Softweave calculator for gimp-print.
00005  *
00006  *   Copyright 2000 Charles Briscoe-Smith <cpbs@debian.org>
00007  *
00008  *   This program is free software; you can redistribute it and/or modify it
00009  *   under the terms of the GNU General Public License as published by the Free
00010  *   Software Foundation; either version 2 of the License, or (at your option)
00011  *   any later version.
00012  *
00013  *   This program is distributed in the hope that it will be useful, but
00014  *   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00015  *   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00016  *   for more details.
00017  *
00018  *   You should have received a copy of the GNU General Public License
00019  *   along with this program; if not, write to the Free Software
00020  *   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00021  */
00022 
00028 #ifndef GUTENPRINT_BIT_OPS_H
00029 #define GUTENPRINT_BIT_OPS_H
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 extern void     stp_fold(const unsigned char *line, int single_height,
00036                          unsigned char *outbuf);
00037 
00038 extern void     stp_split_2(int height, int bits, const unsigned char *in,
00039                             unsigned char *outhi, unsigned char *outlo);
00040 
00041 extern void     stp_split_4(int height, int bits, const unsigned char *in,
00042                             unsigned char *out0, unsigned char *out1,
00043                             unsigned char *out2, unsigned char *out3);
00044 
00045 extern void     stp_unpack_2(int height, int bits, const unsigned char *in,
00046                              unsigned char *outlo, unsigned char *outhi);
00047 
00048 extern void     stp_unpack_4(int height, int bits, const unsigned char *in,
00049                              unsigned char *out0, unsigned char *out1,
00050                              unsigned char *out2, unsigned char *out3);
00051 
00052 extern void     stp_unpack_8(int height, int bits, const unsigned char *in,
00053                              unsigned char *out0, unsigned char *out1,
00054                              unsigned char *out2, unsigned char *out3,
00055                              unsigned char *out4, unsigned char *out5,
00056                              unsigned char *out6, unsigned char *out7);
00057 
00058 #ifdef __cplusplus
00059   }
00060 #endif
00061 
00062 #endif /* GUTENPRINT_BIT_OPS_H */

Generated on Thu Feb 10 19:29:29 2005 for libgutenprint API Reference by  doxygen 1.4.1