[go: up one dir, main page]

File: GifTools.h

package info (click to toggle)
catools 1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 356 kB
  • ctags: 74
  • sloc: ansic: 650; cpp: 640; makefile: 5
file content (26 lines) | stat: -rwxr-xr-x 1,029 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*===========================================================================*/
/* GifTools - GIF encoder / decoder                                          */
/* Copyright (C) 2005 Jarek Tuszynski                                        */
/* Distributed under GNU General Public License version 3                    */
/*===========================================================================*/

#ifndef GIF_TOOLS_H
#define GIF_TOOLS_H
#include <R.h>
#include <Rinternals.h> 

extern "C" {
  #define print Rprintf
  #define Error error
  typedef unsigned char uchar;

  int imreadGif(const char* filename, int nImage, bool verbose,
              uchar** data, int &nRow, int &nCol, int &nBand,
              int ColorMap[255], int &Transparent, char** Comment);
              
  int imwriteGif(const char* filename, const uchar* data, int nRow, int nCol,
                  int nBand, int nColor, const int *ColorMap,  bool interlace, 
                 int transparent, int DalayTime, char* comment);
}
#endif