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 | Functions
fitblk.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "zlib.h"

Go to the source code of this file.

Macros

#define local   static
 
#define RAWLEN   4096 /* intermediate uncompressed buffer size */
 
#define EXCESS   256 /* empirically determined stream overage */
 
#define MARGIN   8 /* amount to back off for completion */
 

Functions

local void quit (char *why)
 
local int partcompress (FILE *in, z_streamp def)
 
local int recompress (z_streamp inf, z_streamp def)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ EXCESS

#define EXCESS   256 /* empirically determined stream overage */

Definition at line 123 of file fitblk.c.

Referenced by main().

◆ local

#define local   static

Definition at line 59 of file fitblk.c.

◆ MARGIN

#define MARGIN   8 /* amount to back off for completion */

Definition at line 124 of file fitblk.c.

Referenced by main().

◆ RAWLEN

#define RAWLEN   4096 /* intermediate uncompressed buffer size */

Definition at line 68 of file fitblk.c.

Referenced by partcompress(), and recompress().

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ partcompress()

local int partcompress ( FILE *  in,
z_streamp  def 
)

Definition at line 73 of file fitblk.c.

References deflate(), flush, RAWLEN, Z_ERRNO, Z_FINISH, Z_NO_FLUSH, and Z_STREAM_ERROR.

Referenced by main().

◆ quit()

local void quit ( char *  why)

◆ recompress()

local int recompress ( z_streamp  inf,
z_streamp  def 
)

Definition at line 96 of file fitblk.c.

References deflate(), flush, inflate(), RAWLEN, Z_DATA_ERROR, Z_FINISH, Z_MEM_ERROR, Z_NEED_DICT, Z_NO_FLUSH, Z_STREAM_END, and Z_STREAM_ERROR.

Referenced by main().