hvirtual/quicktime/ffmpeg/libavcodec/lcl.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "common.h"
#include "bitstream.h"
#include "avcodec.h"

Include dependency graph for lcl.c:

Go to the source code of this file.

Data Structures

struct  LclContext

Defines

#define BMPTYPE_YUV   1
#define BMPTYPE_RGB   2
#define IMGTYPE_YUV111   0
#define IMGTYPE_YUV422   1
#define IMGTYPE_RGB24   2
#define IMGTYPE_YUV411   3
#define IMGTYPE_YUV211   4
#define IMGTYPE_YUV420   5
#define COMP_MSZH   0
#define COMP_MSZH_NOCOMP   1
#define COMP_ZLIB_HISPEED   1
#define COMP_ZLIB_HICOMP   9
#define COMP_ZLIB_NORMAL   -1
#define FLAG_MULTITHREAD   1
#define FLAG_NULLFRAME   2
#define FLAG_PNGFILTER   4
#define FLAGMASK_UNUSED   0xf8
#define CODEC_MSZH   1
#define CODEC_ZLIB   3
#define FOURCC_MSZH   mmioFOURCC('M','S','Z','H')
#define FOURCC_ZLIB   mmioFOURCC('Z','L','I','B')

Functions

static unsigned char fix (int pix14)
static unsigned char get_b (unsigned char yq, signed char bq)
static unsigned char get_g (unsigned char yq, signed char bq, signed char rq)
static unsigned char get_r (unsigned char yq, signed char rq)
static unsigned int mszh_decomp (unsigned char *srcptr, int srclen, unsigned char *destptr, unsigned int destsize)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
static int decode_init (AVCodecContext *avctx)
static int encode_init (AVCodecContext *avctx)
static int decode_end (AVCodecContext *avctx)
static int encode_end (AVCodecContext *avctx)

Variables

AVCodec mszh_decoder
AVCodec zlib_decoder


Detailed Description

LCL (LossLess Codec Library) Video Codec Decoder for MSZH and ZLIB codecs Experimental encoder for ZLIB RGB24

Fourcc: MSZH, ZLIB

Original Win32 dll: Ver2.23 By Kenji Oshima 2000.09.20 avimszh.dll, avizlib.dll

A description of the decoding algorithm can be found here: http://www.pcisys.net/~melanson/codecs

Supports: BGR24 (RGB 24bpp)

Definition in file lcl.c.


Define Documentation

#define BMPTYPE_RGB   2

Definition at line 53 of file lcl.c.

#define BMPTYPE_YUV   1

Definition at line 52 of file lcl.c.

#define CODEC_MSZH   1

Definition at line 73 of file lcl.c.

Referenced by decode_init().

#define CODEC_ZLIB   3

Definition at line 74 of file lcl.c.

Referenced by decode_init(), and encode_init().

#define COMP_MSZH   0

Definition at line 62 of file lcl.c.

Referenced by decode_frame(), and decode_init().

#define COMP_MSZH_NOCOMP   1

Definition at line 63 of file lcl.c.

Referenced by decode_frame(), and decode_init().

#define COMP_ZLIB_HICOMP   9

Definition at line 65 of file lcl.c.

Referenced by decode_init().

#define COMP_ZLIB_HISPEED   1

Definition at line 64 of file lcl.c.

Referenced by decode_init().

#define COMP_ZLIB_NORMAL   -1

Definition at line 66 of file lcl.c.

Referenced by decode_frame(), and decode_init().

#define FLAG_MULTITHREAD   1

Definition at line 68 of file lcl.c.

Referenced by decode_frame(), and decode_init().

#define FLAG_NULLFRAME   2

Definition at line 69 of file lcl.c.

Referenced by decode_init().

#define FLAG_PNGFILTER   4

Definition at line 70 of file lcl.c.

Referenced by decode_frame(), and decode_init().

#define FLAGMASK_UNUSED   0xf8

Definition at line 71 of file lcl.c.

Referenced by decode_init().

#define FOURCC_MSZH   mmioFOURCC('M','S','Z','H')

Definition at line 76 of file lcl.c.

#define FOURCC_ZLIB   mmioFOURCC('Z','L','I','B')

Definition at line 77 of file lcl.c.

#define IMGTYPE_RGB24   2

Definition at line 57 of file lcl.c.

Referenced by decode_frame(), decode_init(), and encode_init().

#define IMGTYPE_YUV111   0

Definition at line 55 of file lcl.c.

Referenced by decode_frame(), and decode_init().

#define IMGTYPE_YUV211   4

Definition at line 59 of file lcl.c.

Referenced by decode_frame(), and decode_init().

#define IMGTYPE_YUV411   3

Definition at line 58 of file lcl.c.

Referenced by decode_frame(), and decode_init().

#define IMGTYPE_YUV420   5

Definition at line 60 of file lcl.c.

Referenced by decode_frame(), and decode_init().

#define IMGTYPE_YUV422   1

Definition at line 56 of file lcl.c.

Referenced by decode_frame(), and decode_init().


Function Documentation

static int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 852 of file lcl.c.

References c, LclContext::pic, AVCodecContext::priv_data, and AVCodecContext::release_buffer.

static int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

static int decode_init ( AVCodecContext avctx  )  [static]

static int encode_end ( AVCodecContext avctx  )  [static]

Definition at line 872 of file lcl.c.

References av_freep(), c, LclContext::comp_buf, AVCodecContext::extradata, and AVCodecContext::priv_data.

Here is the call graph for this function:

static int encode_frame ( AVCodecContext avctx,
unsigned char *  buf,
int  buf_size,
void *  data 
) [static]

static int encode_init ( AVCodecContext avctx  )  [static]

static unsigned char fix ( int  pix14  )  [inline, static]

Definition at line 113 of file lcl.c.

Referenced by get_b(), get_g(), and get_r().

static unsigned char get_b ( unsigned char  yq,
signed char  bq 
) [inline, static]

Definition at line 127 of file lcl.c.

References fix().

Referenced by decode_frame().

Here is the call graph for this function:

static unsigned char get_g ( unsigned char  yq,
signed char  bq,
signed char  rq 
) [inline, static]

Definition at line 134 of file lcl.c.

References fix().

Referenced by decode_frame().

Here is the call graph for this function:

static unsigned char get_r ( unsigned char  yq,
signed char  rq 
) [inline, static]

Definition at line 141 of file lcl.c.

References fix().

Referenced by decode_frame().

Here is the call graph for this function:

static unsigned int mszh_decomp ( unsigned char *  srcptr,
int  srclen,
unsigned char *  destptr,
unsigned int  destsize 
) [static]

Definition at line 148 of file lcl.c.

Referenced by decode_frame().


Variable Documentation

Initial value:

Definition at line 885 of file lcl.c.

Referenced by avcodec_register_all().

Initial value:

Definition at line 898 of file lcl.c.

Referenced by avcodec_register_all().


Generated on Mon Apr 28 14:04:49 2008 for Cinelerra by  doxygen 1.5.5