Visualization Library 2.0.0-b5
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
Go to the source code of this file.
Macros | |
#define | local static |
#define | SPAN 1048576L /* desired distance between access points */ |
#define | WINSIZE 32768U /* sliding window size */ |
#define | CHUNK 16384 /* file input buffer size */ |
Functions | |
local void | free_index (struct access *index) |
local struct access * | addpoint (struct access *index, int bits, off_t in, off_t out, unsigned left, unsigned char *window) |
local int | build_index (FILE *in, off_t span, struct access **built) |
local int | extract (FILE *in, struct access *index, off_t offset, unsigned char *buf, int len) |
int | main (int argc, char **argv) |
Definition at line 64 of file zran.c.
Referenced by build_index(), extract(), and main().
#define SPAN 1048576L /* desired distance between access points */ |
#define WINSIZE 32768U /* sliding window size */ |
Definition at line 249 of file zran.c.
References z_stream_s::avail_in, z_stream_s::avail_out, CHUNK, inflate(), inflateEnd(), inflateInit2, inflatePrime(), inflateSetDictionary(), z_stream_s::next_in, z_stream_s::next_out, z_stream_s::opaque, out(), SEEK_SET, skip(), void(), WINSIZE, Z_DATA_ERROR, Z_ERRNO, Z_MEM_ERROR, Z_NEED_DICT, Z_NO_FLUSH, Z_NULL, Z_OK, Z_STREAM_END, z_stream_s::zalloc, and z_stream_s::zfree.
Referenced by main(), and vl::LoadWriterDae::LoadOptions::setExtractSkins().
Definition at line 354 of file zran.c.
References build_index(), CHUNK, extract(), free_index(), NULL, SPAN, Z_DATA_ERROR, Z_ERRNO, and Z_MEM_ERROR.
Visualization Library 2.0.0-b5 Reference Documentation
Updated on Mon Feb 10 2020 02:44:58.
© Copyright Michele Bosi. All rights reserved.