All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
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 "libavutil/avassert.h"
#include "avcodec.h"
#include "internal.h"
#include "lcl.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include <zlib.h>

Go to the source code of this file.

Data Structures

struct  LclEncContext


static int encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
static av_cold int encode_init (AVCodecContext *avctx)
static av_cold int encode_end (AVCodecContext *avctx)


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.

Function Documentation

static int encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame p,
int *  got_packet 

Definition at line 65 of file lclenc.c.

static av_cold int encode_init ( AVCodecContext avctx)

Definition at line 111 of file lclenc.c.

static av_cold int encode_end ( AVCodecContext avctx)

Definition at line 160 of file lclenc.c.

Variable Documentation

AVCodec ff_zlib_encoder
Initial value:
= {
.name = "zlib",
.long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"),
.priv_data_size = sizeof(LclEncContext),
.encode2 = encode_frame,
.close = encode_end,
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: internal.h:48
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int encode_end(AVCodecContext *avctx)
Definition: lclenc.c:160
static av_cold int encode_init(AVCodecContext *avctx)
Definition: lclenc.c:111
Codec is intra only.
Definition: avcodec.h:1036
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *p, int *got_packet)
Definition: lclenc.c:65
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: internal.h:40
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
Codec supports frame-level multithreading.
Definition: avcodec.h:1016
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:65
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:262
Pixel format.
Definition: pixfmt.h:60

Definition at line 170 of file lclenc.c.