Classes | Defines | Typedefs | Functions

rdbmp.c File Reference

#include "cdjpeg.h"
Include dependency graph for rdbmp.c:

Classes

struct  _bmp_source_struct

Defines

#define UCH(x)   ((int) (x))
#define ReadOK(file, buffer, len)   (JFREAD(file,buffer,len) == ((size_t) (len)))
#define GET_2B(array, offset)
#define GET_4B(array, offset)

Typedefs

typedef unsigned char U_CHAR
typedef struct _bmp_source_structbmp_source_ptr
typedef struct _bmp_source_struct bmp_source_struct

Functions

 read_byte (bmp_source_ptr sinfo)
 read_colormap (bmp_source_ptr sinfo, int cmaplen, int mapentrysize)
 get_8bit_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 get_24bit_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 preload_image (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 start_input_bmp (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 finish_input_bmp (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
 jinit_read_bmp (j_compress_ptr cinfo)

Define Documentation

#define GET_2B (   array,
  offset 
)
Value:
((unsigned int) UCH(array[offset]) + \
                               (((unsigned int) UCH(array[offset+1])) << 8))
#define GET_4B (   array,
  offset 
)
Value:
((INT32) UCH(array[offset]) + \
                               (((INT32) UCH(array[offset+1])) << 8) + \
                               (((INT32) UCH(array[offset+2])) << 16) + \
                               (((INT32) UCH(array[offset+3])) << 24))
#define ReadOK (   file,
  buffer,
  len 
)    (JFREAD(file,buffer,len) == ((size_t) (len)))
#define UCH (   x  )     ((int) (x))

Typedef Documentation

typedef unsigned char U_CHAR

Function Documentation

finish_input_bmp ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)
get_24bit_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)
get_8bit_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Here is the call graph for this function:

jinit_read_bmp ( j_compress_ptr  cinfo  ) 

Here is the caller graph for this function:

preload_image ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)
read_byte ( bmp_source_ptr  sinfo  ) 

Here is the caller graph for this function:

read_colormap ( bmp_source_ptr  sinfo,
int  cmaplen,
int  mapentrysize 
)

Here is the call graph for this function:

Here is the caller graph for this function:

start_input_bmp ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Here is the call graph for this function: