Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Typedefs | Functions
rdbmp.c File Reference
#include "cdjpeg.h"

Go to the source code of this file.

Macros

#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_struct * bmp_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)
 

Macro Definition Documentation

◆ GET_2B

#define GET_2B (   array,
  offset 
)
Value:
((unsigned int) UCH(array[offset]) + \
(((unsigned int) UCH(array[offset+1])) << 8))
#define UCH(x)
Definition: rdbmp.c:33
GLintptr offset
typedef int
Definition: png.h:978

Referenced by start_input_bmp().

◆ GET_4B

#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 UCH(x)
Definition: rdbmp.c:33
long INT32
Definition: jmorecfg.h:164
GLintptr offset

Referenced by start_input_bmp().

◆ ReadOK

#define ReadOK (   file,
  buffer,
  len 
)    (JFREAD(file,buffer,len) == ((size_t) (len)))

◆ UCH

#define UCH (   x)    ((int) (x))

Definition at line 33 of file rdbmp.c.

Typedef Documentation

◆ bmp_source_ptr

typedef struct _bmp_source_struct* bmp_source_ptr

Definition at line 50 of file rdbmp.c.

◆ bmp_source_struct

typedef struct _bmp_source_struct bmp_source_struct

◆ U_CHAR

typedef unsigned char U_CHAR

Definition at line 32 of file rdbmp.c.

Function Documentation

◆ finish_input_bmp()

finish_input_bmp ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 412 of file rdbmp.c.

References GLOBAL.

Referenced by jinit_read_bmp().

◆ get_24bit_row()

get_24bit_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 150 of file rdbmp.c.

References FALSE, and METHODDEF.

Referenced by preload_image().

◆ get_8bit_row()

get_8bit_row ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

Definition at line 119 of file rdbmp.c.

Referenced by preload_image().

◆ jinit_read_bmp()

jinit_read_bmp ( j_compress_ptr  cinfo)

Definition at line 423 of file rdbmp.c.

References finish_input_bmp(), JPOOL_IMAGE, SIZEOF, and start_input_bmp().

◆ preload_image()

preload_image ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)

◆ read_byte()

read_byte ( bmp_source_ptr  sinfo)

Definition at line 68 of file rdbmp.c.

References EOF, ERREXIT, infile, and LOCAL.

Referenced by read_colormap(), and start_input_bmp().

◆ read_colormap()

read_colormap ( bmp_source_ptr  sinfo,
int  cmaplen,
int  mapentrysize 
)

Definition at line 81 of file rdbmp.c.

References ERREXIT, i, METHODDEF, read_byte(), and void().

Referenced by start_input_bmp().

◆ start_input_bmp()

start_input_bmp ( j_compress_ptr  cinfo,
cjpeg_source_ptr  sinfo 
)