#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "sgi.h"
Go to the source code of this file.
Typedef Documentation
Function Documentation
static int expand_rle_row |
( |
SgiState * |
s, |
|
|
uint8_t * |
out_buf, |
|
|
int |
len, |
|
|
int |
pixelstride |
|
) |
| |
|
static |
Expand an RLE row into a channel.
- Parameters
-
s | the current image state |
out_buf | Points to one line after the output buffer. |
len | length of out_buf in bytes |
pixelstride | pixel stride of input buffer |
- Returns
- size of output in bytes, -1 if buffer overflows
Definition at line 46 of file sgidec.c.
Referenced by read_rle_sgi().
static int read_rle_sgi |
( |
uint8_t * |
out_buf, |
|
|
SgiState * |
s |
|
) |
| |
|
static |
Read a run length encoded SGI image.
- Parameters
-
out_buf | output buffer |
s | the current image state |
- Returns
- 0 if no error, else return error number.
Definition at line 88 of file sgidec.c.
Referenced by decode_frame().
static int read_uncompressed_sgi |
( |
unsigned char * |
out_buf, |
|
|
uint8_t * |
out_end, |
|
|
SgiState * |
s |
|
) |
| |
|
static |
Read an uncompressed SGI image.
- Parameters
-
out_buf | output buffer |
out_end | end ofoutput buffer |
s | the current image state |
- Returns
- 0 if read success, otherwise return -1.
Definition at line 123 of file sgidec.c.
Referenced by decode_frame().
Variable Documentation
Initial value:
Definition at line 267 of file sgidec.c.