#include "libavutil/imgutils.h"
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "sgi.h"
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, else return error code.
Definition at line 46 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 code.
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, else return error code.
Definition at line 121 of file sgidec.c.
Referenced by decode_frame().
Initial value:= {
.name = "sgi",
}
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition at line 234 of file sgidec.c.