fraps.c File Reference


Detailed Description

Lossless Fraps 'FPS1' decoder.

Author:
Roine Gustafsson <roine at="" users="" sf="" net>="">

Konstantin Shishkov

Codec algorithm for version 0 is taken from Transcode <www.transcoding.org>

Version 2 files support by Konstantin Shishkov

Definition in file fraps.c.

Go to the source code of this file.

Classes

struct  FrapsContext
 local variable storage More...

Functions

static int decode_init (AVCodecContext *avctx)
 initializes decoder
static int huff_cmp (const void *va, const void *vb)
 Comparator - our nodes should ascend by count but with preserved symbol order.
static int fraps2_decode_plane (FrapsContext *s, uint8_t *dst, int stride, int w, int h, uint8_t *src, int size, int Uoff)
 decode Fraps v2 packed plane
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
 decode a frame
static int decode_end (AVCodecContext *avctx)
 closes decoder

Variables

AVCodec fraps_decoder


Function Documentation

static int decode_init ( AVCodecContext avctx  )  [static]

initializes decoder

Parameters:
avctx codec context
Returns:
0 on success or negative if fails

Definition at line 58 of file fraps.c.

static int huff_cmp ( const void *  va,
const void *  vb 
) [static]

Comparator - our nodes should ascend by count but with preserved symbol order.

Definition at line 78 of file fraps.c.

Referenced by fraps2_decode_plane().

static int fraps2_decode_plane ( FrapsContext s,
uint8_t *  dst,
int  stride,
int  w,
int  h,
uint8_t *  src,
int  size,
int  Uoff 
) [static]

decode Fraps v2 packed plane

Definition at line 86 of file fraps.c.

Referenced by decode_frame().

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

decode a frame

Parameters:
avctx codec context
data output AVFrame
data_size size of output data or 0 if no picture is returned
buf input data frame
buf_size size of input data frame
Returns:
number of consumed bytes on success or negative if decode fails

Definition at line 129 of file fraps.c.

static int decode_end ( AVCodecContext avctx  )  [static]

closes decoder

Parameters:
avctx codec context
Returns:
0 on success or negative if fails

Definition at line 303 of file fraps.c.


Variable Documentation

Initial value:

 {
    "fraps",
    CODEC_TYPE_VIDEO,
    CODEC_ID_FRAPS,
    sizeof(FrapsContext),
    decode_init,
    NULL,
    decode_end,
    decode_frame,
    CODEC_CAP_DR1,
}

Definition at line 315 of file fraps.c.


Generated on Sat Dec 18 05:15:52 2010 for MythTV by  doxygen 1.5.5