FFmpeg
Data Structures | Functions | Variables
mss1.c File Reference
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.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, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
 
static av_cold int mss1_decode_init (AVCodecContext *avctx)
 
static av_cold int mss1_decode_end (AVCodecContext *avctx)
 

Variables

const FFCodec ff_mss1_decoder
 

Detailed Description

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

Definition in file mss1.c.

Function Documentation

◆ arith_normalise()

static void arith_normalise ( ArithCoder c)
static

Definition at line 38 of file mss1.c.

Referenced by arith_get_bits(), and arith_get_number().

◆ arith_get_bits()

static int arith_get_bits ( ArithCoder c,
int  bits 
)
static

Definition at line 68 of file mss1.c.

Referenced by decode_pal().

◆ arith_get_number()

static int arith_get_number ( ArithCoder c,
int  mod_val 
)
static

Definition at line 82 of file mss1.c.

Referenced by arith_init(), and decode_pal().

◆ arith_get_prob()

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

Definition at line 96 of file mss1.c.

◆ arith_init()

static void arith_init ( ArithCoder c,
GetBitContext gb 
)
static

Definition at line 113 of file mss1.c.

Referenced by mss1_decode_frame().

◆ decode_pal()

static int decode_pal ( MSS12Context ctx,
ArithCoder acoder 
)
static

Definition at line 124 of file mss1.c.

Referenced by mss1_decode_frame().

◆ mss1_decode_frame()

static int mss1_decode_frame ( AVCodecContext avctx,
AVFrame rframe,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 143 of file mss1.c.

◆ mss1_decode_init()

static av_cold int mss1_decode_init ( AVCodecContext avctx)
static

Definition at line 196 of file mss1.c.

◆ mss1_decode_end()

static av_cold int mss1_decode_end ( AVCodecContext avctx)
static

Definition at line 216 of file mss1.c.

Variable Documentation

◆ ff_mss1_decoder

const FFCodec ff_mss1_decoder
Initial value:
= {
.p.name = "mss1",
CODEC_LONG_NAME("MS Screen 1"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(MSS1Context),
.close = mss1_decode_end,
.p.capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 226 of file mss1.c.

MSS1Context
Definition: mss1.c:32
FF_CODEC_CAP_INIT_CLEANUP
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
Definition: codec_internal.h:43
mss1_decode_init
static av_cold int mss1_decode_init(AVCodecContext *avctx)
Definition: mss1.c:196
mss1_decode_frame
static int mss1_decode_frame(AVCodecContext *avctx, AVFrame *rframe, int *got_frame, AVPacket *avpkt)
Definition: mss1.c:143
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
AV_CODEC_ID_MSS1
@ AV_CODEC_ID_MSS1
Definition: codec_id.h:216
mss1_decode_end
static av_cold int mss1_decode_end(AVCodecContext *avctx)
Definition: mss1.c:216
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201