libavcodec/cinepak.c File Reference

Cinepak video decoder by Ewald Snel <ewald@rambo.its.tudelft.nl> 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. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "avcodec.h"
#include "dsputil.h"

Go to the source code of this file.

Data Structures

struct  cvid_codebook_t
struct  cvid_strip_t
struct  CinepakContext

Defines

#define MAX_STRIPS   32

Functions

static void cinepak_decode_codebook (cvid_codebook_t *codebook, int chunk_id, int size, const uint8_t *data)
static int cinepak_decode_vectors (CinepakContext *s, cvid_strip_t *strip, int chunk_id, int size, const uint8_t *data)
static int cinepak_decode_strip (CinepakContext *s, cvid_strip_t *strip, const uint8_t *data, int size)
static int cinepak_decode (CinepakContext *s)
static int cinepak_decode_init (AVCodecContext *avctx)
static int cinepak_decode_frame (AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size)
static int cinepak_decode_end (AVCodecContext *avctx)

Variables

AVCodec cinepak_decoder


Detailed Description

Cinepak video decoder by Ewald Snel <ewald@rambo.its.tudelft.nl> 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.


Define Documentation

#define MAX_STRIPS   32

Definition at line 46 of file cinepak.c.

Referenced by cinepak_decode().


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_t 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 int cinepak_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 450 of file cinepak.c.

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

Definition at line 415 of file cinepak.c.

static int cinepak_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 390 of file cinepak.c.

static int cinepak_decode_strip ( CinepakContext s,
cvid_strip_t 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_t 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

Initial value:

Definition at line 460 of file cinepak.c.


Generated on Fri Oct 3 22:46:55 2008 for ffmpeg by  doxygen 1.5.6