libavcodec/pictordec.c File Reference

Pictor/PC Paint decoder. More...

#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "bytestream.h"
#include "cga_data.h"

Go to the source code of this file.

Data Structures

struct  PicContext

Functions

static void picmemset_8bpp (PicContext *s, int value, int run, int *x, int *y)
static void picmemset (PicContext *s, int value, int run, int *x, int *y, int *plane, int bits_per_plane)
static av_cold int decode_init (AVCodecContext *avctx)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int decode_end (AVCodecContext *avctx)

Variables

static const uint8_t cga_mode45_index [6][4]
AVCodec ff_pictor_decoder


Detailed Description

Pictor/PC Paint decoder.

Definition in file pictordec.c.


Function Documentation

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 256 of file pictordec.c.

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

Definition at line 107 of file pictordec.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 99 of file pictordec.c.

static void picmemset ( PicContext s,
int  value,
int  run,
int *  x,
int *  y,
int *  plane,
int  bits_per_plane 
) [static]

Definition at line 59 of file pictordec.c.

Referenced by decode_frame().

static void picmemset_8bpp ( PicContext s,
int  value,
int  run,
int *  x,
int *  y 
) [static]

Definition at line 39 of file pictordec.c.

Referenced by decode_frame().


Variable Documentation

const uint8_t cga_mode45_index[6][4] [static]

Initial value:

 {
    [0] = { 0, 3,  5,   7 }, 
    [1] = { 0, 2,  4,   6 }, 
    [2] = { 0, 3,  4,   7 }, 
    [3] = { 0, 11, 13, 15 }, 
    [4] = { 0, 10, 12, 14 }, 
    [5] = { 0, 11, 12, 15 }, 
}

Definition at line 90 of file pictordec.c.

Referenced by decode_frame().

Initial value:

 {
    .name           = "pictor",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_PICTOR,
    .priv_data_size = sizeof(PicContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name = NULL_IF_CONFIG_SMALL("Pictor/PC Paint"),
}

Definition at line 264 of file pictordec.c.


Generated on Fri Oct 26 02:46:09 2012 for FFmpeg by  doxygen 1.5.8