libavcodec/msvideo1.c File Reference

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/. More...

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

Go to the source code of this file.

Data Structures

struct  Msvideo1Context

Defines

#define PALETTE_COUNT   256
#define CHECK_STREAM_PTR(n)

Functions

static av_cold 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, AVPacket *avpkt)
static av_cold int msvideo1_decode_end (AVCodecContext *avctx)

Variables

AVCodec ff_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/.

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 39 of file msvideo1.c.

Referenced by msvideo1_decode_16bit(), and msvideo1_decode_8bit().

#define PALETTE_COUNT   256

Definition at line 38 of file msvideo1.c.


Function Documentation

static void msvideo1_decode_16bit ( Msvideo1Context s  )  [static]

Definition at line 180 of file msvideo1.c.

Referenced by msvideo1_decode_frame().

static void msvideo1_decode_8bit ( Msvideo1Context s  )  [static]

Definition at line 80 of file msvideo1.c.

Referenced by msvideo1_decode_frame().

static av_cold int msvideo1_decode_end ( AVCodecContext avctx  )  [static]

Definition at line 328 of file msvideo1.c.

static int msvideo1_decode_frame ( AVCodecContext avctx,
void *  data,
int data_size,
AVPacket avpkt 
) [static]

Definition at line 289 of file msvideo1.c.

static av_cold int msvideo1_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 59 of file msvideo1.c.


Variable Documentation

Initial value:

 {
    .name           = "msvideo1",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = AV_CODEC_ID_MSVIDEO1,
    .priv_data_size = sizeof(Msvideo1Context),
    .init           = msvideo1_decode_init,
    .close          = msvideo1_decode_end,
    .decode         = msvideo1_decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("Microsoft Video 1"),
}

Definition at line 338 of file msvideo1.c.


Generated on Fri Oct 26 02:50:07 2012 for FFmpeg by  doxygen 1.5.8