IFF PBM/ILBM bitmap decoder. More...
#include "libavutil/imgutils.h"#include "bytestream.h"#include "avcodec.h"#include "internal.h"#include "get_bits.h"Go to the source code of this file.
Data Structures | |
| struct | IffContext |
Macros | |
| #define | LUT8_PART(plane, v) |
| #define | LUT8(plane) |
| #define | LUT32(plane) |
Functions | |
| static av_always_inline uint32_t | gray2rgb (const uint32_t x) |
| static int | ff_cmap_read_palette (AVCodecContext *avctx, uint32_t *pal) |
| Convert CMAP buffer (stored in extradata) to lavc palette format. | |
| static av_cold int | decode_init (AVCodecContext *avctx) |
| static void | decodeplane8 (uint8_t *dst, const uint8_t *buf, int buf_size, int plane) |
| Decode interleaved plane buffer up to 8bpp. | |
| static void | decodeplane32 (uint32_t *dst, const uint8_t *buf, int buf_size, int plane) |
| Decode interleaved plane buffer up to 24bpp. | |
| static int | decode_byterun (uint8_t *dst, int dst_size, const uint8_t *buf, const uint8_t *const buf_end) |
| Decode one complete byterun1 encoded line. | |
| static int | decode_frame_ilbm (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
| static int | decode_frame_byterun1 (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
| static av_cold int | decode_end (AVCodecContext *avctx) |
Variables | |
| static const uint64_t | plane8_lut [8][256] |
| static const uint32_t | plane32_lut [32][16 *4] |
| AVCodec | ff_iff_ilbm_decoder |
| AVCodec | ff_iff_byterun1_decoder |
IFF PBM/ILBM bitmap decoder.
Definition in file iff.c.
| #define LUT32 | ( | plane | ) |
| #define LUT8 | ( | plane | ) |
| #define LUT8_PART | ( | plane, | |
| v | |||
| ) |
|
static |
Decode one complete byterun1 encoded line.
| dst | the destination buffer where to store decompressed bitstream |
| dst_size | the destination plane size in bytes |
| buf | the source byterun1 compressed bitstream |
| buf_end | the EOF of source byterun1 compressed bitstream |
Definition at line 227 of file iff.c.
Referenced by decode_frame_byterun1().
|
static |
|
static |
|
static |
|
static |
|
static |
Decode interleaved plane buffer up to 24bpp.
| dst | Destination buffer |
| buf | Source buffer |
| buf_size | |
| plane | plane number to decode as |
Definition at line 200 of file iff.c.
Referenced by decode_frame_byterun1(), and decode_frame_ilbm().
|
static |
Decode interleaved plane buffer up to 8bpp.
| dst | Destination buffer |
| buf | Source buffer |
| buf_size | |
| plane | plane number to decode as |
Definition at line 183 of file iff.c.
Referenced by decode_frame_byterun1(), and decode_frame_ilbm().
|
static |
Convert CMAP buffer (stored in extradata) to lavc palette format.
Definition at line 123 of file iff.c.
Referenced by decode_frame_byterun1(), and decode_frame_ilbm().
|
static |
Definition at line 116 of file iff.c.
Referenced by ff_cmap_read_palette().
| AVCodec ff_iff_byterun1_decoder |
| AVCodec ff_iff_ilbm_decoder |
|
static |