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
wrbmp.c File Reference
#include "cdjpeg.h"

Go to the source code of this file.

Macros

#define PUT_2B(array, offset, value)
 
#define PUT_4B(array, offset, value)
 

Typedefs

typedef bmp_dest_struct * bmp_dest_ptr
 

Functions

 LOCAL (void)
 
 put_gray_rows (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, JDIMENSION rows_supplied)
 
 start_output_bmp (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
 
 write_bmp_header (j_decompress_ptr cinfo, bmp_dest_ptr dest)
 
 write_os2_header (j_decompress_ptr cinfo, bmp_dest_ptr dest)
 
 write_colormap (j_decompress_ptr cinfo, bmp_dest_ptr dest, int map_colors, int map_entry_size)
 
 finish_output_bmp (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
 
 jinit_write_bmp (j_decompress_ptr cinfo, boolean is_os2)
 

Macro Definition Documentation

◆ PUT_2B

#define PUT_2B (   array,
  offset,
  value 
)
Value:
(array[offset] = (char) ((value) & 0xFF), \
array[offset+1] = (char) (((value) >> 8) & 0xFF))
GLintptr offset
GLsizei const GLfloat * value

Referenced by write_bmp_header(), and write_os2_header().

◆ PUT_4B

#define PUT_4B (   array,
  offset,
  value 
)
Value:
(array[offset] = (char) ((value) & 0xFF), \
array[offset+1] = (char) (((value) >> 8) & 0xFF), \
array[offset+2] = (char) (((value) >> 16) & 0xFF), \
array[offset+3] = (char) (((value) >> 24) & 0xFF))
GLintptr offset
GLsizei const GLfloat * value

Referenced by write_bmp_header(), and write_os2_header().

Typedef Documentation

◆ bmp_dest_ptr

typedef bmp_dest_struct* bmp_dest_ptr

Definition at line 56 of file wrbmp.c.

Function Documentation

◆ finish_output_bmp()

finish_output_bmp ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo 
)

◆ jinit_write_bmp()

jinit_write_bmp ( j_decompress_ptr  cinfo,
boolean  is_os2 
)

◆ LOCAL()

LOCAL ( void  )

Definition at line 60 of file wrbmp.c.

Referenced by start_output_bmp(), write_bmp_header(), and write_os2_header().

◆ put_gray_rows()

put_gray_rows ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo,
JDIMENSION  rows_supplied 
)

Definition at line 106 of file wrbmp.c.

References METHODDEF, and TRUE.

Referenced by jinit_write_bmp().

◆ start_output_bmp()

start_output_bmp ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo 
)

Definition at line 142 of file wrbmp.c.

References LOCAL().

Referenced by jinit_write_bmp().

◆ write_bmp_header()

write_bmp_header ( j_decompress_ptr  cinfo,
bmp_dest_ptr  dest 
)

Definition at line 157 of file wrbmp.c.

References ERREXIT, JCS_RGB, JFWRITE, LOCAL(), MEMZERO, PUT_2B, PUT_4B, SIZEOF, and write_colormap().

Referenced by finish_output_bmp().

◆ write_colormap()

write_colormap ( j_decompress_ptr  cinfo,
bmp_dest_ptr  dest,
int  map_colors,
int  map_entry_size 
)

Definition at line 292 of file wrbmp.c.

Referenced by write_bmp_header(), and write_os2_header().

◆ write_os2_header()

write_os2_header ( j_decompress_ptr  cinfo,
bmp_dest_ptr  dest 
)

Definition at line 230 of file wrbmp.c.

References ERREXIT, JCS_RGB, JFWRITE, LOCAL(), MEMZERO, PUT_2B, PUT_4B, SIZEOF, and write_colormap().

Referenced by finish_output_bmp().