libavcodec/bintext.c File Reference

Binary text decoder eXtended BINary text (XBIN) decoder iCEDraw File decoder. More...

#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "cga_data.h"
#include "bintext.h"

Go to the source code of this file.

Data Structures

struct  XbinContext

Defines

#define DEFAULT_BG_COLOR   0
#define FONT_WIDTH   8

Functions

static av_cold int decode_init (AVCodecContext *avctx)
static void hscroll (AVCodecContext *avctx)
static void draw_char (AVCodecContext *avctx, int c, int a)
 Draw character to screen.
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int decode_end (AVCodecContext *avctx)

Variables

AVCodec ff_bintext_decoder
AVCodec ff_xbin_decoder
AVCodec ff_idf_decoder


Detailed Description

Binary text decoder eXtended BINary text (XBIN) decoder iCEDraw File decoder.

Definition in file bintext.c.


Define Documentation

#define DEFAULT_BG_COLOR   0

Definition at line 91 of file bintext.c.

#define FONT_WIDTH   8

Definition at line 105 of file bintext.c.


Function Documentation

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 203 of file bintext.c.

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

Definition at line 125 of file bintext.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 45 of file bintext.c.

static void draw_char ( AVCodecContext avctx,
int  c,
int  a 
) [static]

Draw character to screen.

Definition at line 110 of file bintext.c.

static void hscroll ( AVCodecContext avctx  )  [static]

Definition at line 92 of file bintext.c.


Variable Documentation

Initial value:

 {
    .name           = "bintext",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_BINTEXT,
    .priv_data_size = sizeof(XbinContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name = NULL_IF_CONFIG_SMALL("Binary text"),
}

Definition at line 213 of file bintext.c.

Initial value:

 {
    .name           = "idf",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_IDF,
    .priv_data_size = sizeof(XbinContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name = NULL_IF_CONFIG_SMALL("iCEDraw text"),
}

Definition at line 237 of file bintext.c.

Initial value:

 {
    .name           = "xbin",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_XBIN,
    .priv_data_size = sizeof(XbinContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name = NULL_IF_CONFIG_SMALL("eXtended BINary text"),
}

Definition at line 225 of file bintext.c.


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