FFmpeg
|
#include <zlib.h>
Go to the source code of this file.
Data Structures | |
struct | FFZStream |
Functions | |
int | ff_inflate_init (FFZStream *zstream, void *logctx) |
Wrapper around inflateInit(). More... | |
void | ff_inflate_end (FFZStream *zstream) |
Wrapper around inflateEnd(). More... | |
int | ff_deflate_init (FFZStream *zstream, int level, void *logctx) |
Wrapper around deflateInit(). More... | |
void | ff_deflate_end (FFZStream *zstream) |
Wrapper around deflateEnd(). More... | |
Wrapper around inflateInit().
It initializes the fields that zlib requires to be initialized before inflateInit(). In case of error it also returns an error message to the provided logctx; in any case, it sets zstream->inited to indicate whether inflateInit() succeeded.
Referenced by decode_init(), decode_zbuf(), flashsv_decode_init(), lscr_decode_init(), png_dec_init(), and zerocodec_decode_init().
void ff_inflate_end | ( | FFZStream * | zstream | ) |
Wrapper around inflateEnd().
It calls inflateEnd() iff zstream->inited is set and resets zstream->inited. It is therefore safe to be called even if ff_inflate_init() has never been called on it (or errored out) provided that the FFZStream (or just FFZStream.inited) has been zeroed.
Referenced by decode_close(), decode_end(), decode_zbuf(), flashsv_decode_end(), lscr_decode_close(), png_dec_end(), and zerocodec_decode_close().
Wrapper around deflateInit().
It works analogously to ff_inflate_init().
Referenced by encode_init(), flashsv2_encode_init(), and png_enc_init().
void ff_deflate_end | ( | FFZStream * | zstream | ) |
Wrapper around deflateEnd().
It works analogously to ff_inflate_end().
Referenced by cleanup(), encode_end(), and png_enc_close().