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

Go to the source code of this file.

Macros

#define MAXCODE(n_bits)   ((1 << (n_bits)) - 1)
 
#define CHAR_OUT(dinfo, c)
 

Typedefs

typedef gif_dest_struct * gif_dest_ptr
 

Functions

 flush_packet (gif_dest_ptr dinfo)
 
 output (gif_dest_ptr dinfo, int code)
 
 compress_init (gif_dest_ptr dinfo, int i_bits)
 
 compress_pixel (gif_dest_ptr dinfo, int c)
 
 compress_term (gif_dest_ptr dinfo)
 
 put_word (gif_dest_ptr dinfo, unsigned int w)
 
 put_3bytes (gif_dest_ptr dinfo, int val)
 
 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap)
 
 start_output_gif (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
 
 put_pixel_rows (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, JDIMENSION rows_supplied)
 
 finish_output_gif (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
 
 jinit_write_gif (j_decompress_ptr cinfo)
 

Macro Definition Documentation

◆ CHAR_OUT

#define CHAR_OUT (   dinfo,
  c 
)
Value:
{ (dinfo)->packetbuf[++(dinfo)->bytesinpkt] = (char) (c); \
if ((dinfo)->bytesinpkt >= 255) \
flush_packet(dinfo); \
}
const GLubyte * c

Definition at line 95 of file wrgif.c.

Referenced by compress_term(), and output().

◆ MAXCODE

#define MAXCODE (   n_bits)    ((1 << (n_bits)) - 1)

Definition at line 72 of file wrgif.c.

Referenced by compress_init().

Typedef Documentation

◆ gif_dest_ptr

typedef gif_dest_struct* gif_dest_ptr

Definition at line 69 of file wrgif.c.

Function Documentation

◆ compress_init()

compress_init ( gif_dest_ptr  dinfo,
int  i_bits 
)

Definition at line 143 of file wrgif.c.

References LOCAL, MAXCODE, and output().

◆ compress_pixel()

compress_pixel ( gif_dest_ptr  dinfo,
int  c 
)

Definition at line 162 of file wrgif.c.

References LOCAL, and output().

Referenced by put_pixel_rows().

◆ compress_term()

compress_term ( gif_dest_ptr  dinfo)

Definition at line 182 of file wrgif.c.

References CHAR_OUT, flush_packet(), LOCAL, and output().

Referenced by finish_output_gif().

◆ emit_header()

emit_header ( gif_dest_ptr  dinfo,
int  num_colors,
JSAMPARRAY  colormap 
)

Definition at line 219 of file wrgif.c.

Referenced by start_output_gif().

◆ finish_output_gif()

finish_output_gif ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo 
)

Definition at line 338 of file wrgif.c.

References compress_term(), ERREXIT, and GLOBAL.

Referenced by jinit_write_gif().

◆ flush_packet()

flush_packet ( gif_dest_ptr  dinfo)

Definition at line 81 of file wrgif.c.

References ERREXIT, if(), and JFWRITE.

Referenced by compress_term().

◆ jinit_write_gif()

jinit_write_gif ( j_decompress_ptr  cinfo)

◆ output()

output ( gif_dest_ptr  dinfo,
int  code 
)

Definition at line 105 of file wrgif.c.

References CHAR_OUT, and LOCAL.

Referenced by compress_init(), compress_pixel(), compress_term(), and main().

◆ put_3bytes()

put_3bytes ( gif_dest_ptr  dinfo,
int  val 
)

Definition at line 209 of file wrgif.c.

References LOCAL.

◆ put_pixel_rows()

put_pixel_rows ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo,
JDIMENSION  rows_supplied 
)

Definition at line 319 of file wrgif.c.

References compress_pixel(), GETJSAMPLE, METHODDEF, and ptr.

Referenced by jinit_write_bmp(), and jinit_write_gif().

◆ put_word()

put_word ( gif_dest_ptr  dinfo,
unsigned int  w 
)

Definition at line 200 of file wrgif.c.

References LOCAL.

◆ start_output_gif()

start_output_gif ( j_decompress_ptr  cinfo,
djpeg_dest_ptr  dinfo 
)

Definition at line 302 of file wrgif.c.

References emit_header(), METHODDEF, and NULL.

Referenced by jinit_write_gif().