lclenc.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 "lcl.h"
#include <zlib.h>

Go to the source code of this file.

Data Structures

struct  LclEncContext
 

Typedefs

typedef struct LclEncContext LclEncContext
 

Functions

static int encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
 
static av_cold int encode_init (AVCodecContext *avctx)
 
static av_cold int encode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_zlib_encoder
 

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

Typedef Documentation

typedef struct LclEncContext LclEncContext

Function Documentation

static av_cold int encode_end ( AVCodecContext avctx)
static

Definition at line 163 of file lclenc.c.

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

Definition at line 71 of file lclenc.c.

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 118 of file lclenc.c.

Variable Documentation

AVCodec ff_zlib_encoder
Initial value:
= {
.name = "zlib",
.priv_data_size = sizeof(LclEncContext),
.encode = encode_frame,
.pix_fmts = (const enum PixelFormat[]) { PIX_FMT_BGR24, PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"),
}
static av_cold int encode_end(AVCodecContext *avctx)
Definition: lclenc.c:163
static av_cold int encode_init(AVCodecContext *avctx)
Definition: lclenc.c:118
static int init(AVCodecParserContext *s)
Definition: h264_parser.c:336
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:327
struct LclEncContext LclEncContext
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:67
PixelFormat
Pixel format.
Definition: pixfmt.h:62
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
Definition: lclenc.c:71

Definition at line 173 of file lclenc.c.