Data Structures | Functions | Variables

libavcodec/iff.c File Reference

IFF PBM/ILBM bitmap decoder. More...

#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

Detailed Description

IFF PBM/ILBM bitmap decoder.

Definition in file iff.c.


Function Documentation

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 257 of file iff.c.

static int decode_frame_byterun1 ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 168 of file iff.c.

static int decode_frame_ilbm ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 128 of file iff.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 62 of file iff.c.

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.

Parameters:
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.

Parameters:
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().


Variable Documentation

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"),
}

Definition at line 279 of file iff.c.

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"),
}

Definition at line 266 of file iff.c.