#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
|
#define | _CRT_SECURE_NO_WARNINGS |
|
#define | stb_out(v) do { if (stb__out) *stb__out++ = (stb_uchar) (v); else stb__write((stb_uchar) (v)); } while (0) |
|
#define | stb__hc(q, h, c) (((h) << 7) + ((h) >> 25) + q[c]) |
|
#define | stb__hc2(q, h, c, d) (((h) << 14) + ((h) >> 18) + (q[c] << 7) + q[d]) |
|
#define | stb__hc3(q, c, d, e) ((q[c] << 14) + (q[d] << 7) + q[e]) |
|
#define | STB__SCRAMBLE(h) (((h) + ((h) >> 16)) & mask) |
|
#define | stb__nc(b, d) ((d) <= window && ((b) > 9 || stb_not_crap(b,d))) |
|
#define | STB__TRY(t, p) |
|
◆ _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS |
◆ stb__hc
#define stb__hc |
( |
|
q, |
|
|
|
h, |
|
|
|
c |
|
) |
| (((h) << 7) + ((h) >> 25) + q[c]) |
◆ stb__hc2
#define stb__hc2 |
( |
|
q, |
|
|
|
h, |
|
|
|
c, |
|
|
|
d |
|
) |
| (((h) << 14) + ((h) >> 18) + (q[c] << 7) + q[d]) |
◆ stb__hc3
#define stb__hc3 |
( |
|
q, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e |
|
) |
| ((q[c] << 14) + (q[d] << 7) + q[e]) |
◆ stb__nc
#define stb__nc |
( |
|
b, |
|
|
|
d |
|
) |
| ((d) <= window && ((b) > 9 || stb_not_crap(b,d))) |
◆ STB__SCRAMBLE
#define STB__SCRAMBLE |
( |
|
h | ) |
(((h) + ((h) >> 16)) & mask) |
◆ STB__TRY
#define STB__TRY |
( |
|
t, |
|
|
|
p |
|
) |
| |
Value: \
if (p ? dist != q-t : 1) \
if ((m = stb_matchlen(t, q, match_max)) > best) \
best = m, dist = q - (t)
◆ stb_out
#define stb_out |
( |
|
v | ) |
do { if (stb__out) *stb__out++ = (stb_uchar) (v); else stb__write((stb_uchar) (v)); } while (0) |
◆ stb_uchar
◆ stb_uint
◆ Encode85Byte()
char Encode85Byte |
( |
unsigned int |
x | ) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ stb_compress()