#include <string.h>
#include "avutil.h"
#include "common.h"
#include "intreadwrite.h"
#include "lzo.h"
Go to the source code of this file.
#define GETB |
( |
|
c | ) |
(*(c).in++) |
Define if we may read up to 8 bytes beyond the input buffer.
Definition at line 32 of file lzo.c.
Define if we may write up to 12 bytes beyond the output buffer.
Definition at line 30 of file lzo.c.
Copies bytes from input to output buffer with checking.
- Parameters
-
cnt | number of bytes to copy, must be >= 0 |
Definition at line 79 of file lzo.c.
Referenced by av_buffersrc_add_frame_flags(), av_buffersrc_add_frame_internal(), av_lzo1x_decode(), avfilter_init_str(), avfilter_register_all(), avformat_queue_attached_pictures(), decode_tdlt(), frame_thread_init(), intlist_read(), intra_predict(), qpeg_decode_intra(), read_thread(), roq_decode_frame(), and rtmp_write().
Copies previously decoded bytes to current position.
- Parameters
-
back | how many bytes back we start, must be > 0 |
cnt | number of bytes to copy, must be >= 0 |
cnt > back is valid, this will copy the bytes we just copied, thus creating a repeating pattern with a period length of back.
Definition at line 111 of file lzo.c.
Referenced by av_lzo1x_decode().
Reads one byte from the input buffer, avoiding an overrun.
- Returns
- byte read
Definition at line 44 of file lzo.c.
Referenced by get_len().
static int get_len |
( |
LZOContext * |
c, |
|
|
int |
x, |
|
|
int |
mask |
|
) |
| |
|
inlinestatic |
Decodes a length value in the coding used by lzo.
- Parameters
-
x | previous byte value |
mask | bits used from x |
- Returns
- decoded length value
Definition at line 64 of file lzo.c.
Referenced by av_lzo1x_decode().