FFmpeg
|
LZW decoding routines. More...
#include "libavutil/attributes.h"
#include "bytestream.h"
#include "lzw.h"
#include "libavutil/mem.h"
Go to the source code of this file.
Data Structures | |
struct | LZWState |
Macros | |
#define | LZW_MAXBITS 12 |
#define | LZW_SIZTABLE (1<<LZW_MAXBITS) |
Functions | |
static int | lzw_get_code (struct LZWState *s) |
int | ff_lzw_decode_tail (LZWState *p) |
av_cold void | ff_lzw_decode_open (LZWState **p) |
av_cold void | ff_lzw_decode_close (LZWState **p) |
int | ff_lzw_decode_init (LZWState *p, int csize, const uint8_t *buf, int buf_size, int mode) |
Initialize LZW decoder. More... | |
int | ff_lzw_decode (LZWState *p, uint8_t *buf, int len) |
Decode given number of bytes NOTE: the algorithm here is inspired from the LZW GIF decoder written by Steven A. More... | |
Variables | |
static const uint16_t | mask [17] |
LZW decoding routines.
Definition in file lzw.c.
#define LZW_SIZTABLE (1<<LZW_MAXBITS) |
|
static |
Definition at line 70 of file lzw.c.
Referenced by ff_lzw_decode().
int ff_lzw_decode_tail | ( | LZWState * | p | ) |
Definition at line 99 of file lzw.c.
Referenced by gif_read_image().
Definition at line 113 of file lzw.c.
Referenced by gif_decode_init(), and tiff_init().
Definition at line 118 of file lzw.c.
Referenced by gif_decode_close(), and tiff_end().
int ff_lzw_decode_init | ( | LZWState * | p, |
int | csize, | ||
const uint8_t * | buf, | ||
int | buf_size, | ||
int | mode | ||
) |
Initialize LZW decoder.
p | LZW context |
csize | initial code size in bits |
buf | input data |
buf_size | input data size |
mode | decoder working mode - either GIF or TIFF |
Definition at line 131 of file lzw.c.
Referenced by gif_read_image(), and tiff_unpack_strip().
int ff_lzw_decode | ( | LZWState * | p, |
uint8_t * | buf, | ||
int | len | ||
) |
Decode given number of bytes NOTE: the algorithm here is inspired from the LZW GIF decoder written by Steven A.
Bennett in 1987.
p | LZW context |
buf | output buffer |
len | number of bytes to decode |
Definition at line 169 of file lzw.c.
Referenced by gif_read_image(), and tiff_unpack_strip().
|
static |
Definition at line 38 of file lzw.c.
Referenced by ff_lzw_decode(), and ff_lzw_decode_init().