openshot-audio  0.1.6
Macros | Functions
inflate.c File Reference
#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
#include "inffast.h"
#include "inffixed.h"

Macros

#define UPDATE(check, buf, len)   (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
 
#define CRC2(check, word)
 
#define CRC4(check, word)
 
#define LOAD()
 
#define RESTORE()
 
#define INITBITS()
 
#define PULLBYTE()
 
#define NEEDBITS(n)
 
#define BITS(n)   ((unsigned)hold & ((1U << (n)) - 1))
 
#define DROPBITS(n)
 
#define BYTEBITS()
 
#define REVERSE(q)
 
#define UPDATE(check, buf, len)   (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
 
#define CRC2(check, word)
 
#define CRC4(check, word)
 
#define LOAD()
 
#define RESTORE()
 
#define INITBITS()
 
#define PULLBYTE()
 
#define NEEDBITS(n)
 
#define BITS(n)   ((unsigned)hold & ((1U << (n)) - 1))
 
#define DROPBITS(n)
 
#define BYTEBITS()
 
#define REVERSE(q)
 

Functions

local void fixedtables OF ((struct inflate_state FAR *state))
 
local int updatewindow OF ((z_streamp strm, unsigned out))
 
local unsigned syncsearch OF ((unsigned FAR *have, unsigned char FAR *buf, unsigned len))
 
int ZEXPORT inflateReset (z_streamp strm)
 
int ZEXPORT inflatePrime (z_streamp strm, int bits, int value)
 
int ZEXPORT inflateInit2_ (z_streamp strm, int windowBits, const char *version, int stream_size)
 
int ZEXPORT inflateInit_ (z_streamp strm, const char *version, int stream_size)
 
local void fixedtables (struct inflate_state FAR *state)
 
local int updatewindow (z_streamp strm, unsigned out)
 
int ZEXPORT inflate (z_streamp strm, int flush)
 
int ZEXPORT inflateEnd (z_streamp strm)
 
int ZEXPORT inflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength)
 
int ZEXPORT inflateGetHeader (z_streamp strm, gz_headerp head)
 
local unsigned syncsearch (unsigned FAR *have, unsigned char FAR *buf, unsigned len)
 
int ZEXPORT inflateSync (z_streamp strm)
 
int ZEXPORT inflateSyncPoint (z_streamp strm)
 
int ZEXPORT inflateCopy (z_streamp dest, z_streamp source)
 

Macro Definition Documentation

◆ BITS [1/2]

#define BITS (   n)    ((unsigned)hold & ((1U << (n)) - 1))

◆ BITS [2/2]

#define BITS (   n)    ((unsigned)hold & ((1U << (n)) - 1))

◆ BYTEBITS [1/2]

#define BYTEBITS ( )
Value:
do { \
hold >>= bits & 7; \
bits -= bits & 7; \
} while (0)

◆ BYTEBITS [2/2]

#define BYTEBITS ( )
Value:
do { \
hold >>= bits & 7; \
bits -= bits & 7; \
} while (0)

◆ CRC2 [1/2]

#define CRC2 (   check,
  word 
)
Value:
do { \
hbuf[0] = (unsigned char)(word); \
hbuf[1] = (unsigned char)((word) >> 8); \
check = crc32(check, hbuf, 2); \
} while (0)
bool check(HRESULT hr)
Definition: juce_win32_WASAPI.cpp:89
#define crc32

◆ CRC2 [2/2]

#define CRC2 (   check,
  word 
)
Value:
do { \
hbuf[0] = (unsigned char)(word); \
hbuf[1] = (unsigned char)((word) >> 8); \
check = crc32(check, hbuf, 2); \
} while (0)
bool check(HRESULT hr)
Definition: juce_win32_WASAPI.cpp:89
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, unsigned len)
Definition: crc32.c:219

◆ CRC4 [1/2]

#define CRC4 (   check,
  word 
)
Value:
do { \
hbuf[0] = (unsigned char)(word); \
hbuf[1] = (unsigned char)((word) >> 8); \
hbuf[2] = (unsigned char)((word) >> 16); \
hbuf[3] = (unsigned char)((word) >> 24); \
check = crc32(check, hbuf, 4); \
} while (0)
bool check(HRESULT hr)
Definition: juce_win32_WASAPI.cpp:89
#define crc32

◆ CRC4 [2/2]

#define CRC4 (   check,
  word 
)
Value:
do { \
hbuf[0] = (unsigned char)(word); \
hbuf[1] = (unsigned char)((word) >> 8); \
hbuf[2] = (unsigned char)((word) >> 16); \
hbuf[3] = (unsigned char)((word) >> 24); \
check = crc32(check, hbuf, 4); \
} while (0)
bool check(HRESULT hr)
Definition: juce_win32_WASAPI.cpp:89
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, unsigned len)
Definition: crc32.c:219

◆ DROPBITS [1/2]

#define DROPBITS (   n)
Value:
do { \
hold >>= (n); \
bits -= (unsigned)(n); \
} while (0)

◆ DROPBITS [2/2]

#define DROPBITS (   n)
Value:
do { \
hold >>= (n); \
bits -= (unsigned)(n); \
} while (0)

◆ INITBITS [1/2]

#define INITBITS ( )
Value:
do { \
hold = 0; \
bits = 0; \
} while (0)

◆ INITBITS [2/2]

#define INITBITS ( )
Value:
do { \
hold = 0; \
bits = 0; \
} while (0)

◆ LOAD [1/2]

#define LOAD ( )
Value:
do { \
put = strm->next_out; \
left = strm->avail_out; \
next = strm->next_in; \
have = strm->avail_in; \
hold = state->hold; \
bits = state->bits; \
} while (0)

◆ LOAD [2/2]

#define LOAD ( )
Value:
do { \
put = strm->next_out; \
left = strm->avail_out; \
next = strm->next_in; \
have = strm->avail_in; \
hold = state->hold; \
bits = state->bits; \
} while (0)

◆ NEEDBITS [1/2]

#define NEEDBITS (   n)
Value:
do { \
while (bits < (unsigned)(n)) \
PULLBYTE(); \
} while (0)

◆ NEEDBITS [2/2]

#define NEEDBITS (   n)
Value:
do { \
while (bits < (unsigned)(n)) \
PULLBYTE(); \
} while (0)

◆ PULLBYTE [1/2]

#define PULLBYTE ( )
Value:
do { \
if (have == 0) goto inf_leave; \
have--; \
hold += (unsigned long)(*next++) << bits; \
bits += 8; \
} while (0)

◆ PULLBYTE [2/2]

#define PULLBYTE ( )
Value:
do { \
if (have == 0) goto inf_leave; \
have--; \
hold += (unsigned long)(*next++) << bits; \
bits += 8; \
} while (0)

◆ RESTORE [1/2]

#define RESTORE ( )
Value:
do { \
strm->next_out = put; \
strm->avail_out = left; \
strm->next_in = next; \
strm->avail_in = have; \
state->hold = hold; \
state->bits = bits; \
} while (0)

◆ RESTORE [2/2]

#define RESTORE ( )
Value:
do { \
strm->next_out = put; \
strm->avail_out = left; \
strm->next_in = next; \
strm->avail_in = have; \
state->hold = hold; \
state->bits = bits; \
} while (0)

◆ REVERSE [1/2]

#define REVERSE (   q)
Value:
((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
(((q) & 0xff00) << 8) + (((q) & 0xff) << 24))

◆ REVERSE [2/2]

#define REVERSE (   q)
Value:
((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
(((q) & 0xff00) << 8) + (((q) & 0xff) << 24))

◆ UPDATE [1/2]

#define UPDATE (   check,
  buf,
  len 
)    (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))

◆ UPDATE [2/2]

#define UPDATE (   check,
  buf,
  len 
)    (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))

Function Documentation

◆ fixedtables()

local void fixedtables ( struct inflate_state FAR state)

◆ inflate()

int ZEXPORT inflate ( z_streamp  strm,
int  flush 
)

◆ inflateCopy()

int ZEXPORT inflateCopy ( z_streamp  dest,
z_streamp  source 
)

◆ inflateEnd()

int ZEXPORT inflateEnd ( z_streamp  strm)

◆ inflateGetHeader()

int ZEXPORT inflateGetHeader ( z_streamp  strm,
gz_headerp  head 
)

◆ inflateInit2_()

int ZEXPORT inflateInit2_ ( z_streamp  strm,
int  windowBits,
const char *  version,
int  stream_size 
)

◆ inflateInit_()

int ZEXPORT inflateInit_ ( z_streamp  strm,
const char *  version,
int  stream_size 
)

◆ inflatePrime()

int ZEXPORT inflatePrime ( z_streamp  strm,
int  bits,
int  value 
)

◆ inflateReset()

int ZEXPORT inflateReset ( z_streamp  strm)

◆ inflateSetDictionary()

int ZEXPORT inflateSetDictionary ( z_streamp  strm,
const Bytef dictionary,
uInt  dictLength 
)

◆ inflateSync()

int ZEXPORT inflateSync ( z_streamp  strm)

◆ inflateSyncPoint()

int ZEXPORT inflateSyncPoint ( z_streamp  strm)

◆ OF() [1/3]

local void fixedtables OF ( (struct inflate_state FAR *state)  )

◆ OF() [2/3]

local int updatewindow OF ( (z_streamp strm, unsigned out)  )

◆ OF() [3/3]

local unsigned syncsearch OF ( (unsigned FAR *have, unsigned char FAR *buf, unsigned len)  )

◆ syncsearch()

local unsigned syncsearch ( unsigned FAR have,
unsigned char FAR buf,
unsigned  len 
)

◆ updatewindow()

local int updatewindow ( z_streamp  strm,
unsigned  out 
)