DOCLIB is a C++ toolkit that provides document/image analysis capabilities through a thoroughly documented, easy to use interface. This library seeks to provide a functional, stable, and robust environment that supports a plethora of image types whereby applications (research or production) can be built on top of.

Although DOCLIB currently assumes a Beta status, it has been successfully used as the underlying library for several government applications. The OO design accounts for image processing functions that are straightforward in  approach, but also allows room for extendable, "research" oriented behavior(s) where there exists several different methods of implementation. Because our main audience are traditional C-devlelopers, many design decisions were made to facilitate its use for users not familiar with OO concepts. DOCLIB supports a standard code base that can be built on both Linux and Windows platforms. The development team is currently working on supporting Solaris 7.1 as well.

Please report any bugs found and/or any additional applicable features to DOCLIB at the Bugtracker site located in the Devlelopers Corner. All DOCLIB related documents can be found in the Development Corner. Alternatively, please contact Summit Sampat (sampat_summit@bah.com) or Stefan Jaeger (jaeger@umiacs.umd.edu) with technical questions and Lynn Golebiowski (golebiowski_lynn@bah.com) or David Doermann (doermann@umiacs.umd.edu) for acquisition related discussions.

 





Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

DLGIFUtilities Class Reference

Gif Utility Class. More...

#include <DLGIFUtilities.h>

List of all members.

Static Public Member Functions

static int image_paste_transparent (struct image_format *image_overlay, struct image_format **image_out, int *origin, unsigned char transparent)
static int image_read_gif (const unsigned char *buffer, int buffSize, struct image_format **image_in)
static int image_paste (struct image_format *image_overlay, struct image_format **image_out, int *origin)
static int image_GIF_realign (struct image_format *fimage, int *error_locs, int num_fragments)
static int image_GIF_deinterlace (struct image_format *fimage)
static int buffer_find_next_clear_code_new (unsigned char *inbuf, int numbytes, int codesize, int *bytepos, int *bitpos)
static int buffer_resync_gif_block (unsigned char *buf, int offset, int bufsize, int key)
static int buffer_find_far_processed (unsigned char *fbuf, int findx, int fmax, int eindx)
static int buffer_LZW_decode_new (unsigned char *inbuf, int byte_offset, int bit_offset, int numbytes, int start_codesize, struct image_format *fimage, int *pixloc, int *eoi_flag, int *retVal)
static int buffer_parse_gif_block_new (unsigned char *buf, int bufindx, int bufsize, unsigned char *obuf, int *numread, int *key)
static unsigned char palette_adjust_transparent (struct image_format *palette, unsigned char transparent_value)
static int initialize_LZW_table (struct LZW_table *table, int size, unsigned char *tbuf, int *tindx)
static int getnextcode (int *buffer, int *indx, int codesize, unsigned char *inbuf, int *bufindx)
static int image_create (struct image_format **image_out, int *size, int numchan, int type)
static int image_copy (struct image_format *image_in, struct image_format **image_out)


Detailed Description

Gif Utility Class.


Member Function Documentation

static int DLGIFUtilities::buffer_find_far_processed unsigned char *  fbuf,
int  findx,
int  fmax,
int  eindx
[static]
 

Buffer find far processed

Parameters:
fbuf 
findx 
fmax 
eindx 
Returns:
int

static int DLGIFUtilities::buffer_find_next_clear_code_new unsigned char *  inbuf,
int  numbytes,
int  codesize,
int *  bytepos,
int *  bitpos
[static]
 

Find the next clear code

Parameters:
inbuf 
numbytes 
codesize 
bytepos 
bitpos 
Returns:
int

static int DLGIFUtilities::buffer_LZW_decode_new unsigned char *  inbuf,
int  byte_offset,
int  bit_offset,
int  numbytes,
int  start_codesize,
struct image_format fimage,
int *  pixloc,
int *  eoi_flag,
int *  retVal
[static]
 

buffer LZW decode

Parameters:
inbuf 
byte_offset 
bit_offset 
numbytes 
start_codesize 
fimage 
pixloc 
eoi_flag 
retVal 
Returns:
int

static int DLGIFUtilities::buffer_parse_gif_block_new unsigned char *  buf,
int  bufindx,
int  bufsize,
unsigned char *  obuf,
int *  numread,
int *  key
[static]
 

buffer parse gif block

Parameters:
buf 
bufindx 
bufsize 
obuf 
numread 
key 
Returns:
int

static int DLGIFUtilities::buffer_resync_gif_block unsigned char *  buf,
int  offset,
int  bufsize,
int  key
[static]
 

buffer resync gif block

Parameters:
buf 
offset 
bufsize 
key 
Returns:
int

static int DLGIFUtilities::getnextcode int *  buffer,
int *  indx,
int  codesize,
unsigned char *  inbuf,
int *  bufindx
[static]
 

get next code

Parameters:
buffer 
indx 
codesize 
inbuf 
bufindx 
Returns:
int

static int DLGIFUtilities::image_copy struct image_format image_in,
struct image_format **  image_out
[static]
 

Copy Image

Parameters:
image_in 
image_out 
Returns:
int

static int DLGIFUtilities::image_create struct image_format **  image_out,
int *  size,
int  numchan,
int  type
[static]
 

Create Image

Parameters:
image_out 
size 
numchan 
type 
Returns:
int

static int DLGIFUtilities::image_GIF_deinterlace struct image_format fimage  )  [static]
 

Deintelace gif image

Parameters:
fimage 
Returns:
int

static int DLGIFUtilities::image_GIF_realign struct image_format fimage,
int *  error_locs,
int  num_fragments
[static]
 

Realign Gif image

Parameters:
fimage 
error_locs 
num_fragments 
Returns:
int

static int DLGIFUtilities::image_paste struct image_format image_overlay,
struct image_format **  image_out,
int *  origin
[static]
 

paste image

Parameters:
image_overlay 
image_out 
origin 
Returns:
int

static int DLGIFUtilities::image_paste_transparent struct image_format image_overlay,
struct image_format **  image_out,
int *  origin,
unsigned char  transparent
[static]
 

Paste Image transparent

Parameters:
image_overlay 
image_out 
origin 
transparent 
Returns:
int

static int DLGIFUtilities::image_read_gif const unsigned char *  buffer,
int  buffSize,
struct image_format **  image_in
[static]
 

read gif image

Parameters:
fname 
image_in 
Returns:
int

static int DLGIFUtilities::initialize_LZW_table struct LZW_table table,
int  size,
unsigned char *  tbuf,
int *  tindx
[static]
 

Initialize LZW table

Parameters:
table 
size 
tbuf 
tindx 
Returns:
int

static unsigned char DLGIFUtilities::palette_adjust_transparent struct image_format palette,
unsigned char  transparent_value
[static]
 

palette adjust transparent

Parameters:
palette 
transparent_value 
Returns:
int


The documentation for this class was generated from the following file: * ************************************************************************ ************************************************************************ *
DocLib is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz Allen Hamilton

All Rights Reserved, 2003
* *************************************************************************************************************************************************