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:

Definition at line 279 of file iff.c.

Initial value:

Definition at line 266 of file iff.c.


Generated on Fri Oct 26 02:36:52 2012 for FFmpeg by  doxygen 1.5.8