libavutil/lzo.c File Reference
#include "avutil.h"
#include "common.h"
#include <string.h>
#include "lzo.h"
Go to the source code of this file.
Data Structures
Defines
Avoid
e.g. MPlayers fast_memcpy, it slows things down here.
Define if we may read up to 8 bytes beyond the input buffer.
#define
COPY2(d, s) memcpy(d, s, 2);
#define
COPY4(d, s) memcpy(d, s, 4);
Functions
Reads one byte from the input buffer, avoiding an overrun.
Decodes a length value in the coding used by lzo.
Copies bytes from input to output buffer with checking.
Copies previously decoded bytes to current position.
deliberately overlapping memcpy implementation
Decodes LZO 1x compressed data.
Define Documentation
Definition at line 72 of file lzo.c.
#define COPY2
(
d,
s
)
memcpy(d, s, 2);
#define COPY4
(
d,
s
)
memcpy(d, s, 4);
#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.
Avoid e.g. MPlayers fast_memcpy, it slows things down here.
Define if we may write up to 12 bytes beyond the output buffer.
Definition at line 30 of file lzo.c.
Function Documentation
int
cnt
)
[inline, static]
int
back,
int
cnt
)
[inline, static]
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 121 of file lzo.c.
Referenced by av_lzo1x_decode().
static int get_byte
(
LZOContext *
c
)
[inline, static]
Reads one byte from the input buffer, avoiding an overrun.
- Returns:
- byte read
Definition at line 43 of file lzo.c.
int
x,
int
mask
)
[inline, static]
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 62 of file lzo.c.
Referenced by av_lzo1x_decode().
static void memcpy_backptr
(
uint8_t *
dst,
int
back,
int
cnt
)
[inline, static]
Generated on Fri Oct 26 02:43:53 2012 for FFmpeg by
doxygen 1.5.8