#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 |
Defines | |
#define | DECLARE_DECODEPLANE(suffix, type) |
Decode interleaved plane buffer. | |
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 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.
#define DECLARE_DECODEPLANE | ( | suffix, | |||
type | ) |
Value:
static void decodeplane##suffix(void *dst, const uint8_t *const buf, int buf_size, int bps, int plane) \ { \ GetBitContext gb; \ int i, b; \ init_get_bits(&gb, buf, buf_size * 8); \ for(i = 0; i < (buf_size * 8 + bps - 1) / bps; i++) { \ for (b = 0; b < bps; b++) { \ ((type *)dst)[ i*bps + b ] |= get_bits1(&gb) << plane; \ } \ } \ }
dst | Destination buffer | |
buf | Source buffer | |
buf_size | ||
bps | bits_per_coded_sample | |
plane | plane number to decode as |
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] |
int ff_cmap_read_palette | ( | AVCodecContext * | avctx, | |
uint32_t * | pal | |||
) |
Convert CMAP buffer (stored in extradata) to lavc palette format.
Definition at line 41 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"), }