#include "libavutil/imgutils.h"#include "avcodec.h"#include "bytestream.h"#include "sgi.h"Go to the source code of this file.
Data Structures | |
| struct | SgiState |
Functions | |
| static int | expand_rle_row (const uint8_t *in_buf, const uint8_t *in_end, unsigned char *out_buf, uint8_t *out_end, int pixelstride) |
| Expand an RLE row into a channel. | |
| static int | read_rle_sgi (unsigned char *out_buf, const uint8_t *in_buf, const uint8_t *in_end, SgiState *s) |
| Read a run length encoded SGI image. | |
| static int | read_uncompressed_sgi (unsigned char *out_buf, uint8_t *out_end, const uint8_t *in_buf, const uint8_t *in_end, SgiState *s) |
| Read an uncompressed SGI image. | |
| static int | decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
| static av_cold int | sgi_init (AVCodecContext *avctx) |
| static av_cold int | sgi_end (AVCodecContext *avctx) |
Variables | |
| AVCodec | ff_sgi_decoder |
| static int decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| AVPacket * | avpkt | |||
| ) | [static] |
| static int expand_rle_row | ( | const uint8_t * | in_buf, | |
| const uint8_t * | in_end, | |||
| unsigned char * | out_buf, | |||
| uint8_t * | out_end, | |||
| int | pixelstride | |||
| ) | [static] |
Expand an RLE row into a channel.
| in_buf | input buffer | |
| in_end | end of input buffer | |
| out_buf | Points to one line after the output buffer. | |
| out_end | end of line in output buffer | |
| pixelstride | pixel stride of input buffer |
Definition at line 45 of file sgidec.c.
Referenced by read_rle_sgi().
| static int read_rle_sgi | ( | unsigned char * | out_buf, | |
| const uint8_t * | in_buf, | |||
| const uint8_t * | in_end, | |||
| SgiState * | s | |||
| ) | [static] |
Read a run length encoded SGI image.
| out_buf | output buffer | |
| in_buf | input buffer | |
| in_end | end of input buffer | |
| s | the current image state |
Definition at line 85 of file sgidec.c.
Referenced by decode_frame().
| static int read_uncompressed_sgi | ( | unsigned char * | out_buf, | |
| uint8_t * | out_end, | |||
| const uint8_t * | in_buf, | |||
| const uint8_t * | in_end, | |||
| SgiState * | s | |||
| ) | [static] |
Read an uncompressed SGI image.
| out_buf | output buffer | |
| out_end | end ofoutput buffer | |
| in_buf | input buffer | |
| in_end | end of input buffer | |
| s | the current image state |
Definition at line 125 of file sgidec.c.
Referenced by decode_frame().
| static av_cold int sgi_end | ( | AVCodecContext * | avctx | ) | [static] |
| static av_cold int sgi_init | ( | AVCodecContext * | avctx | ) | [static] |
Initial value:
{
"sgi",
AVMEDIA_TYPE_VIDEO,
CODEC_ID_SGI,
sizeof(SgiState),
sgi_init,
NULL,
sgi_end,
decode_frame,
.long_name = NULL_IF_CONFIG_SMALL("SGI image"),
}
1.5.8