Go to the source code of this file.
Expand an RLE row into a channel.
- Parameters
-
s | the current image state |
out_buf | Points to one line after the output buffer. |
out_end | end of line in output buffer |
pixelstride | pixel stride of input buffer |
- Returns
- size of output in bytes, -1 if buffer overflows
Definition at line 47 of file sgidec.c.
Referenced by read_rle_sgi().
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 87 of file sgidec.c.
Referenced by decode_frame().
static int read_uncompressed_sgi |
( |
unsigned char * |
out_buf, |
|
|
SgiState * |
s |
|
) |
| |
|
static |
Read an uncompressed SGI image.
- Parameters
-
out_buf | output buffer |
s | the current image state |
- Returns
- 0 if read success, otherwise return -1.
Definition at line 121 of file sgidec.c.
Referenced by decode_frame().
Initial value:
Definition at line 263 of file sgidec.c.