#include <stdio.h>
#include <stdlib.h>
#include <string.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 | msvideo1_decoder |
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 CHECK_STREAM_PTR | ( | n | ) |
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 41 of file msvideo1.c.
#define PALETTE_COUNT 256 |
Definition at line 40 of file msvideo1.c.
static void msvideo1_decode_16bit | ( | Msvideo1Context * | s | ) | [static] |
static void msvideo1_decode_8bit | ( | Msvideo1Context * | s | ) | [static] |
static av_cold int msvideo1_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 324 of file msvideo1.c.
static int msvideo1_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
Definition at line 294 of file msvideo1.c.
static av_cold int msvideo1_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 60 of file msvideo1.c.
Initial value:
{ "msvideo1", AVMEDIA_TYPE_VIDEO, CODEC_ID_MSVIDEO1, sizeof(Msvideo1Context), msvideo1_decode_init, NULL, msvideo1_decode_end, msvideo1_decode_frame, CODEC_CAP_DR1, .long_name= NULL_IF_CONFIG_SMALL("Microsoft Video 1"), }
Definition at line 334 of file msvideo1.c.