Go to the source code of this file.
|
static int | expand_rle_row8 (SgiState *s, uint8_t *out_buf, int len, int pixelstride) |
| Expand an RLE row into a channel.
|
|
static int | expand_rle_row16 (SgiState *s, uint16_t *out_buf, int len, int pixelstride) |
|
static int | read_rle_sgi (uint8_t *out_buf, SgiState *s) |
| Read a run length encoded SGI image.
|
|
static int | read_uncompressed_sgi (unsigned char *out_buf, SgiState *s) |
| Read an uncompressed SGI image.
|
|
static int | decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
|
static av_cold int | sgi_decode_init (AVCodecContext *avctx) |
|
static int expand_rle_row8 |
( |
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, else return error code.
Definition at line 47 of file sgidec.c.
Referenced by read_rle_sgi().
static int expand_rle_row16 |
( |
SgiState * |
s, |
|
|
uint16_t * |
out_buf, |
|
|
int |
len, |
|
|
int |
pixelstride |
|
) |
| |
|
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 code.
Definition at line 131 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, else return error code.
Definition at line 169 of file sgidec.c.
Referenced by decode_frame().
Initial value:
Definition at line 291 of file sgidec.c.