libavcodec/lcldec.c File Reference

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

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

Go to the source code of this file.

Data Structures

struct  LclDecContext

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, const uint8_t *buf, int buf_size)
static av_cold int decode_init (AVCodecContext *avctx)
static av_cold int decode_end (AVCodecContext *avctx)


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 lcldec.c.


Function Documentation

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 676 of file lcldec.c.

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

Definition at line 164 of file lcldec.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 517 of file lcldec.c.

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

Definition at line 79 of file lcldec.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 93 of file lcldec.c.

Referenced by decode_frame().

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

Definition at line 100 of file lcldec.c.

Referenced by decode_frame().

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

Definition at line 107 of file lcldec.c.

Referenced by decode_frame().

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

Definition at line 114 of file lcldec.c.

Referenced by decode_frame().


Generated on Fri Oct 26 02:35:43 2012 for FFmpeg by  doxygen 1.5.8