FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
mss1.c File Reference

Microsoft Screen 1 (aka Windows Media Video V7 Screen) decoder. More...

#include "avcodec.h"
#include "internal.h"
#include "mss12.h"

Go to the source code of this file.

Data Structures

struct  MSS1Context
 

Functions

static void arith_normalise (ArithCoder *c)
 
static int arith_get_bits (ArithCoder *c, int bits)
 
static int arith_get_number (ArithCoder *c, int mod_val)
 
static int arith_get_prob (ArithCoder *c, int16_t *probs)
 
static void arith_init (ArithCoder *c, GetBitContext *gb)
 
static int decode_pal (MSS12Context *ctx, ArithCoder *acoder)
 
static int mss1_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int mss1_decode_init (AVCodecContext *avctx)
 
static av_cold int mss1_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_mss1_decoder
 

Detailed Description

Microsoft Screen 1 (aka Windows Media Video V7 Screen) decoder.

Definition in file mss1.c.

Function Documentation

static void arith_normalise ( ArithCoder c)
static

Definition at line 37 of file mss1.c.

Referenced by arith_get_bits(), and arith_get_number().

static int arith_get_bits ( ArithCoder c,
int  bits 
)
static

Definition at line 65 of file mss1.c.

Referenced by decode_pal().

static int arith_get_number ( ArithCoder c,
int  mod_val 
)
static

Definition at line 79 of file mss1.c.

Referenced by arith_init(), and decode_pal().

static int arith_get_prob ( ArithCoder c,
int16_t *  probs 
)
static

Definition at line 93 of file mss1.c.

static void arith_init ( ArithCoder c,
GetBitContext gb 
)
static

Definition at line 110 of file mss1.c.

Referenced by mss1_decode_frame().

static int decode_pal ( MSS12Context ctx,
ArithCoder acoder 
)
static

Definition at line 120 of file mss1.c.

Referenced by mss1_decode_frame().

static int mss1_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 139 of file mss1.c.

static av_cold int mss1_decode_init ( AVCodecContext avctx)
static

Definition at line 188 of file mss1.c.

static av_cold int mss1_decode_end ( AVCodecContext avctx)
static

Definition at line 208 of file mss1.c.

Variable Documentation

AVCodec ff_mss1_decoder
Initial value:
= {
.name = "mss1",
.long_name = NULL_IF_CONFIG_SMALL("MS Screen 1"),
.priv_data_size = sizeof(MSS1Context),
.close = mss1_decode_end,
.capabilities = AV_CODEC_CAP_DR1,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static av_cold int mss1_decode_end(AVCodecContext *avctx)
Definition: mss1.c:208
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:42
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int mss1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: mss1.c:139
static av_cold int mss1_decode_init(AVCodecContext *avctx)
Definition: mss1.c:188
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:968

Definition at line 218 of file mss1.c.