wmv2dec.c File Reference
#include "avcodec.h"
#include "mpegvideo.h"
#include "h263.h"
#include "mathops.h"
#include "msmpeg4.h"
#include "msmpeg4data.h"
#include "intrax8.h"
#include "wmv2.h"
Include dependency graph for wmv2dec.c:

Go to the source code of this file.

Functions

static void parse_mb_skip (Wmv2Context *w)
 
static int decode_ext_header (Wmv2Context *w)
 
int ff_wmv2_decode_picture_header (MpegEncContext *s)
 
int ff_wmv2_decode_secondary_picture_header (MpegEncContext *s)
 
static int wmv2_decode_motion (Wmv2Context *w, int *mx_ptr, int *my_ptr)
 
static int16_t * wmv2_pred_motion (Wmv2Context *w, int *px, int *py)
 
static int wmv2_decode_inter_block (Wmv2Context *w, int16_t *block, int n, int cbp)
 
int ff_wmv2_decode_mb (MpegEncContext *s, int16_t block[6][64])
 
static av_cold int wmv2_decode_init (AVCodecContext *avctx)
 
static av_cold int wmv2_decode_end (AVCodecContext *avctx)
 

Variables

AVCodec ff_wmv2_decoder
 

Function Documentation

static int decode_ext_header ( Wmv2Context w)
static

Definition at line 81 of file wmv2dec.c.

Referenced by ff_wmv2_decode_picture_header().

int ff_wmv2_decode_mb ( MpegEncContext s,
int16_t  block[6][64] 
)

Definition at line 333 of file wmv2dec.c.

Referenced by ff_msmpeg4_decode_init().

int ff_wmv2_decode_picture_header ( MpegEncContext s)

Definition at line 113 of file wmv2dec.c.

Referenced by ff_h263_decode_frame(), and ff_h263_round_chroma().

int ff_wmv2_decode_secondary_picture_header ( MpegEncContext s)

Definition at line 133 of file wmv2dec.c.

Referenced by ff_h263_decode_frame(), and ff_h263_round_chroma().

static void parse_mb_skip ( Wmv2Context w)
static

Definition at line 31 of file wmv2dec.c.

Referenced by ff_wmv2_decode_secondary_picture_header().

static av_cold int wmv2_decode_end ( AVCodecContext avctx)
static

Definition at line 461 of file wmv2dec.c.

static av_cold int wmv2_decode_init ( AVCodecContext avctx)
static

Definition at line 446 of file wmv2dec.c.

static int wmv2_decode_inter_block ( Wmv2Context w,
int16_t *  block,
int  n,
int  cbp 
)
inlinestatic

Definition at line 293 of file wmv2dec.c.

Referenced by ff_wmv2_decode_mb().

static int wmv2_decode_motion ( Wmv2Context w,
int *  mx_ptr,
int *  my_ptr 
)
inlinestatic

Definition at line 233 of file wmv2dec.c.

Referenced by ff_wmv2_decode_mb().

static int16_t* wmv2_pred_motion ( Wmv2Context w,
int *  px,
int *  py 
)
static

Definition at line 249 of file wmv2dec.c.

Referenced by ff_wmv2_decode_mb().

Variable Documentation

AVCodec ff_wmv2_decoder
Initial value:
= {
.name = "wmv2",
.priv_data_size = sizeof(Wmv2Context),
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"),
.pix_fmts = ff_pixfmt_list_420,
}
static av_cold int wmv2_decode_init(AVCodecContext *avctx)
Definition: wmv2dec.c:446
static av_cold int wmv2_decode_end(AVCodecContext *avctx)
Definition: wmv2dec.c:461
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
enum AVPixelFormat ff_pixfmt_list_420[]
Definition: mpegvideo.c:127
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
#define CODEC_CAP_DRAW_HORIZ_BAND
Decoder can use draw_horiz_band callback.
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:375
struct Wmv2Context Wmv2Context
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 469 of file wmv2dec.c.