Woolz Image Processing  Version 1.7.5
WlzExtFFGif.c File Reference

Functions for reading Woolz objects from Graphics Interchange Format (GIF) images. More...

Data Structures

struct  _WlzEffGifScreen
 
struct  _WlzEffGif89
 
struct  _WlzEffGifLWZWSp
 

Macros

#define WLZEFF_GIF_MAXCMAPSZ   256
 
#define WLZEFF_GIF_BUFSZ   256
 
#define WLZEFF_GIF_CM_RED   0
 
#define WLZEFF_GIF_CM_GREEN   1
 
#define WLZEFF_GIF_CM_BLUE   2
 
#define WLZEFF_GIF_MAXLWZBITS   12
 
#define WLZEFF_GIF_INTERLACE   0x40
 
#define WLZEFF_GIF_LOCALCMAP   0x80
 
#define BitSet(byte, bit)   (((byte) & (bit)) == (bit))
 
#define LM_to_uint(a, b)   (((b)<<8)|(a))
 

Typedefs

typedef struct _WlzEffGifScreen WlzEffGifScreen
 
typedef struct _WlzEffGif89 WlzEffGif89
 
typedef struct _WlzEffGifLWZWSp WlzEffGifLWZWSp
 

Functions

WlzObjectWlzEffReadObjGif (FILE *fP, WlzErrorNum *dstErr)
 Reads a Woolz object from the file pointer using the '.gif' file format. This function currently has the following limitations: More...
 

Detailed Description

Functions for reading Woolz objects from Graphics Interchange Format (GIF) images.

Author
Bill Hill
Date
June 2006
Version
Id
6e85089c899f4463ec5ddf1be182884d317175a6
Address: MRC Human Genetics Unit, MRC Institute of Genetics and Molecular Medicine, University of Edinburgh, Western General Hospital, Edinburgh, EH4 2XU, UK.
The GIF decoding software in this file is derived from the pbmplus utilities GIF decoding, which in turn is based on GIFDECOD by David Koblas. The most significant differences between the pbmplus software and the software below are the inclusion of Woolz and a significant rewrite of the code to make it re-enterant. See the notice below:
  +-------------------------------------------------------------------+
  | Copyright 1990, David Koblas.                                     |
  |   Permission to use, copy, modify, and distribute this software   |
  |   and its documentation for any purpose and without fee is hereby |
  |   granted, provided that the above copyright notice appear in all |
  |   copies and that both that copyright notice and this permission  |
  |   notice appear in supporting documentation.  This software is    |
  |   provided "as is" without express or implied warranty.           |
  +-------------------------------------------------------------------+
* 
Copyright (C), [2012], The University Court of the University of Edinburgh, Old College, Edinburgh, UK.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Macro Definition Documentation

#define WLZEFF_GIF_MAXCMAPSZ   256

Referenced by WlzEffReadObjGif().

#define WLZEFF_GIF_BUFSZ   256

Referenced by WlzEffReadObjGif().

#define WLZEFF_GIF_CM_RED   0

Referenced by WlzEffReadObjGif().

#define WLZEFF_GIF_CM_GREEN   1

Referenced by WlzEffReadObjGif().

#define WLZEFF_GIF_CM_BLUE   2

Referenced by WlzEffReadObjGif().

#define WLZEFF_GIF_MAXLWZBITS   12

Referenced by WlzEffReadObjGif().

#define WLZEFF_GIF_INTERLACE   0x40

Referenced by WlzEffReadObjGif().

#define WLZEFF_GIF_LOCALCMAP   0x80

Referenced by WlzEffReadObjGif().

#define BitSet (   byte,
  bit 
)    (((byte) & (bit)) == (bit))

Referenced by WlzEffReadObjGif().

#define LM_to_uint (   a,
 
)    (((b)<<8)|(a))

Referenced by WlzEffReadObjGif().

Typedef Documentation

typedef struct _WlzEffGif89 WlzEffGif89