FFmpeg
|
SGI RLE 8-bit decoder. More...
Go to the source code of this file.
Macros | |
#define | RGB332_TO_BGR8(x) (((x << 3) & 0xC0) | ((x << 3) & 0x38) | ((x >> 5) & 7)) |
Convert SGI RGB332 pixel into PIX_FMT_BGR8 SGI RGB332 is packed RGB 3:3:2, 8bpp, (msb)3R 2B 3G(lsb) | |
#define | INC_XY(n) |
Functions | |
static av_cold int | sgirle_decode_init (AVCodecContext *avctx) |
static av_always_inline void | memcpy_rgb332_to_bgr8 (uint8_t *dst, const uint8_t *src, int size) |
static int | decode_sgirle8 (AVCodecContext *avctx, uint8_t *dst, const uint8_t *src, int src_size, int width, int height, int linesize) |
static int | sgirle_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
static av_cold int | sgirle_decode_end (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_sgirle_decoder |
SGI RLE 8-bit decoder.
Definition in file sgirledec.c.
#define RGB332_TO_BGR8 | ( | x | ) | (((x << 3) & 0xC0) | ((x << 3) & 0x38) | ((x >> 5) & 7)) |
Convert SGI RGB332 pixel into PIX_FMT_BGR8 SGI RGB332 is packed RGB 3:3:2, 8bpp, (msb)3R 2B 3G(lsb)
Definition at line 44 of file sgirledec.c.
Referenced by decode_sgirle8(), and memcpy_rgb332_to_bgr8().
#define INC_XY | ( | n | ) |
Referenced by decode_sgirle8().
|
static |
Definition at line 31 of file sgirledec.c.
|
static |
Definition at line 46 of file sgirledec.c.
Referenced by decode_sgirle8().
|
static |
[out] | dst | Destination buffer |
[in] | src | Source buffer |
src_size | Source buffer size (bytes) | |
width | Width of destination buffer (pixels) | |
height | Height of destination buffer (pixels) | |
linesize | Line size of destination buffer (bytes) |
Definition at line 62 of file sgirledec.c.
Referenced by sgirle_decode_frame().
|
static |
Definition at line 105 of file sgirledec.c.
|
static |
Definition at line 131 of file sgirledec.c.
AVCodec ff_sgirle_decoder |
Definition at line 139 of file sgirledec.c.