hvirtual/quicktime/ffmpeg/libavcodec/msvideo1.c File Reference

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

Include dependency graph for msvideo1.c:

Go to the source code of this file.

Data Structures

struct  Msvideo1Context

Defines

#define PALETTE_COUNT   256
#define CHECK_STREAM_PTR(n)

Functions

static int msvideo1_decode_init (AVCodecContext *avctx)
static void msvideo1_decode_8bit (Msvideo1Context *s)
static void msvideo1_decode_16bit (Msvideo1Context *s)
static int msvideo1_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int msvideo1_decode_end (AVCodecContext *avctx)

Variables

AVCodec msvideo1_decoder


Detailed Description

Microsoft Video-1 Decoder by Mike Melanson (melanson@pcisys.net) For more information about the MS Video-1 format, visit: http://www.pcisys.net/~melanson/codecs/

This decoder outputs either PAL8 or RGB555 data, depending on the whether a RGB palette was passed through palctrl; if it's present, then the data is PAL8; RGB555 otherwise.

Definition in file msvideo1.c.


Define Documentation

#define CHECK_STREAM_PTR (  ) 

Value:

if ((stream_ptr + n) > s->size ) { \
    av_log(s->avctx, AV_LOG_ERROR, " MS Video-1 warning: stream_ptr out of bounds (%d >= %d)\n", \
      stream_ptr + n, s->size); \
    return; \
  }

Definition at line 42 of file msvideo1.c.

#define PALETTE_COUNT   256

Definition at line 41 of file msvideo1.c.


Function Documentation

static void msvideo1_decode_16bit ( Msvideo1Context s  )  [static]

static void msvideo1_decode_8bit ( Msvideo1Context s  )  [static]

static int msvideo1_decode_end ( AVCodecContext avctx  )  [static]

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

static int msvideo1_decode_init ( AVCodecContext avctx  )  [static]


Variable Documentation


Generated on Mon Apr 28 14:05:37 2008 for Cinelerra by  doxygen 1.5.5