#include "bytestream.h"
#include "avcodec.h"
#include "get_bits.h"
#include "iff.h"
Go to the source code of this file.
Data Structures | |
struct | IffContext |
Functions | |
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 *const buf, int buf_size, int bps, int plane) |
Decode interleaved plane buffer up to 8bpp. | |
static void | decodeplane32 (uint32_t *dst, const uint8_t *const buf, int buf_size, int bps, int plane) |
Decode interleaved plane buffer up to 24bpp. | |
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 | |
AVCodec | iff_ilbm_decoder |
AVCodec | iff_byterun1_decoder |
Definition in file iff.c.
static av_cold int decode_end | ( | AVCodecContext * | avctx | ) | [static] |
static int decode_frame_byterun1 | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
static int decode_frame_ilbm | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static void decodeplane32 | ( | uint32_t * | dst, | |
const uint8_t *const | buf, | |||
int | buf_size, | |||
int | bps, | |||
int | plane | |||
) | [static] |
Decode interleaved plane buffer up to 24bpp.
dst | Destination buffer | |
buf | Source buffer | |
buf_size | ||
bps | bits_per_coded_sample | |
plane | plane number to decode as |
Definition at line 117 of file iff.c.
Referenced by decode_frame_byterun1(), and decode_frame_ilbm().
static void decodeplane8 | ( | uint8_t * | dst, | |
const uint8_t *const | buf, | |||
int | buf_size, | |||
int | bps, | |||
int | plane | |||
) | [static] |
Decode interleaved plane buffer up to 8bpp.
dst | Destination buffer | |
buf | Source buffer | |
buf_size | ||
bps | bits_per_coded_sample (must be <= 8) | |
plane | plane number to decode as |
Definition at line 98 of file iff.c.
Referenced by decode_frame_byterun1(), and decode_frame_ilbm().
int ff_cmap_read_palette | ( | AVCodecContext * | avctx, | |
uint32_t * | pal | |||
) |
Convert CMAP buffer (stored in extradata) to lavc palette format.
Definition at line 42 of file iff.c.
Referenced by decode_init(), and iff_read_packet().
Initial value:
{ "iff_byterun1", AVMEDIA_TYPE_VIDEO, CODEC_ID_IFF_BYTERUN1, sizeof(IffContext), decode_init, NULL, decode_end, decode_frame_byterun1, CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("IFF ByteRun1"), }
Initial value:
{ "iff_ilbm", AVMEDIA_TYPE_VIDEO, CODEC_ID_IFF_ILBM, sizeof(IffContext), decode_init, NULL, decode_end, decode_frame_ilbm, CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("IFF ILBM"), }