cinepak.c File Reference

Cinepak video decoder. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  cvid_codebook
struct  cvid_strip
struct  CinepakContext

Macros

#define MAX_STRIPS   32

Typedefs

typedef struct CinepakContext CinepakContext

Functions

static void cinepak_decode_codebook (cvid_codebook *codebook, int chunk_id, int size, const uint8_t *data)
static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data)
static int cinepak_decode_strip (CinepakContext *s, cvid_strip *strip, const uint8_t *data, int size)
static int cinepak_decode (CinepakContext *s)
static av_cold int cinepak_decode_init (AVCodecContext *avctx)
static int cinepak_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int cinepak_decode_end (AVCodecContext *avctx)

Variables

AVCodec ff_cinepak_decoder

Detailed Description

Cinepak video decoder.

Author
Ewald Snel ewald.nosp@m.@ram.nosp@m.bo.it.nosp@m.s.tu.nosp@m.delft.nosp@m..nl
See Also
For more information on the Cinepak algorithm, visit: http://www.csse.monash.edu.au/~timf/
For more information on the quirky data inside Sega FILM/CPK files, visit: http://wiki.multimedia.cx/index.php?title=Sega_FILM

Definition in file cinepak.c.

Macro Definition Documentation

#define MAX_STRIPS   32

Definition at line 46 of file cinepak.c.

Referenced by cinepak_decode().

Typedef Documentation

Function Documentation

static int cinepak_decode ( CinepakContext s)
static

Definition at line 318 of file cinepak.c.

Referenced by cinepak_decode_frame().

static void cinepak_decode_codebook ( cvid_codebook codebook,
int  chunk_id,
int  size,
const uint8_t *  data 
)
static

Definition at line 74 of file cinepak.c.

Referenced by cinepak_decode_strip().

static av_cold int cinepak_decode_end ( AVCodecContext avctx)
static

Definition at line 459 of file cinepak.c.

static int cinepak_decode_frame ( AVCodecContext avctx,
void data,
int *  data_size,
AVPacket avpkt 
)
static

Definition at line 420 of file cinepak.c.

static av_cold int cinepak_decode_init ( AVCodecContext avctx)
static

Definition at line 397 of file cinepak.c.

static int cinepak_decode_strip ( CinepakContext s,
cvid_strip strip,
const uint8_t *  data,
int  size 
)
static

Definition at line 266 of file cinepak.c.

Referenced by cinepak_decode().

static int cinepak_decode_vectors ( CinepakContext s,
cvid_strip strip,
int  chunk_id,
int  size,
const uint8_t *  data 
)
static

Definition at line 123 of file cinepak.c.

Referenced by cinepak_decode_strip().

Variable Documentation

AVCodec ff_cinepak_decoder
Initial value:
{
.name = "cinepak",
.priv_data_size = sizeof(CinepakContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Cinepak"),
}

Definition at line 469 of file cinepak.c.