libavcodec/msrledec.c File Reference

MS RLE decoder based on decoder by Mike Melanson and my own for TSCC For more information about the MS RLE format, visit: http://www.multimedia.cx/msrle.txt. More...

#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "msrledec.h"

Go to the source code of this file.

Defines

#define FETCH_NEXT_STREAM_BYTE()

Functions

static int msrle_decode_pal4 (AVCodecContext *avctx, AVPicture *pic, const uint8_t *data, int data_size)
static int msrle_decode_8_16_24_32 (AVCodecContext *avctx, AVPicture *pic, int depth, const uint8_t *data, int srcsize)
int ff_msrle_decode (AVCodecContext *avctx, AVPicture *pic, int depth, const uint8_t *data, int data_size)
 Decode stream in MS RLE format into frame.


Detailed Description

MS RLE decoder based on decoder by Mike Melanson and my own for TSCC For more information about the MS RLE format, visit: http://www.multimedia.cx/msrle.txt.

Definition in file msrledec.c.


Define Documentation

 
#define FETCH_NEXT_STREAM_BYTE (  ) 

Value:

if (stream_ptr >= data_size) \
    { \
      av_log(avctx, AV_LOG_ERROR, " MS RLE: stream ptr just went out of bounds (1)\n"); \
      return -1; \
    } \
    stream_byte = data[stream_ptr++];

Definition at line 33 of file msrledec.c.


Function Documentation

int ff_msrle_decode ( AVCodecContext avctx,
AVPicture pic,
int  depth,
const uint8_t *  data,
int  data_size 
)

Decode stream in MS RLE format into frame.

Parameters:
avctx codec context
pic destination frame
depth bit depth
data input stream
data_size input size

Definition at line 243 of file msrledec.c.

Referenced by aasc_decode_frame(), bmp_decode_frame(), decode_frame(), and msrle_decode_frame().

static int msrle_decode_8_16_24_32 ( AVCodecContext avctx,
AVPicture pic,
int  depth,
const uint8_t *  data,
int  srcsize 
) [static]

Definition at line 131 of file msrledec.c.

Referenced by ff_msrle_decode().

static int msrle_decode_pal4 ( AVCodecContext avctx,
AVPicture pic,
const uint8_t *  data,
int  data_size 
) [static]

Definition at line 41 of file msrledec.c.

Referenced by ff_msrle_decode().


Generated on Fri Oct 26 02:39:45 2012 for FFmpeg by  doxygen 1.5.8