FFmpeg
Data Structures | Functions | Variables
wmv2dec.c File Reference
#include "libavutil/mem_internal.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "h263dec.h"
#include "intrax8.h"
#include "mathops.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "mpegvideodec.h"
#include "msmpeg4.h"
#include "msmpeg4_vc1_data.h"
#include "msmpeg4dec.h"
#include "simple_idct.h"
#include "wmv2.h"
#include "wmv2data.h"
#include "wmv2dec.h"

Go to the source code of this file.

Data Structures

struct  WMV2DecContext
 

Functions

static void wmv2_add_block (WMV2DecContext *w, int16_t *block1, uint8_t *dst, int stride, int n)
 
void ff_wmv2_add_mb (MpegEncContext *s, int16_t block1[6][64], uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr)
 
static int parse_mb_skip (WMV2DecContext *w)
 
static int decode_ext_header (WMV2DecContext *w)
 
int ff_wmv2_decode_picture_header (MpegEncContext *s)
 
int ff_wmv2_decode_secondary_picture_header (MpegEncContext *s)
 
static void wmv2_decode_motion (WMV2DecContext *w, int *mx_ptr, int *my_ptr)
 
static int16_t * wmv2_pred_motion (WMV2DecContext *w, int *px, int *py)
 
static int wmv2_decode_inter_block (WMV2DecContext *w, int16_t *block, int n, int cbp)
 
static int 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

const FFCodec ff_wmv2_decoder
 

Function Documentation

◆ wmv2_add_block()

static void wmv2_add_block ( WMV2DecContext w,
int16_t *  block1,
uint8_t *  dst,
int  stride,
int  n 
)
static

Definition at line 59 of file wmv2dec.c.

Referenced by ff_wmv2_add_mb().

◆ ff_wmv2_add_mb()

void ff_wmv2_add_mb ( MpegEncContext s,
int16_t  block1[6][64],
uint8_t *  dest_y,
uint8_t *  dest_cb,
uint8_t *  dest_cr 
)

Definition at line 85 of file wmv2dec.c.

Referenced by mpv_reconstruct_mb_internal().

◆ parse_mb_skip()

static int parse_mb_skip ( WMV2DecContext w)
static

Definition at line 102 of file wmv2dec.c.

Referenced by ff_wmv2_decode_secondary_picture_header().

◆ decode_ext_header()

static int decode_ext_header ( WMV2DecContext w)
static

Definition at line 167 of file wmv2dec.c.

Referenced by wmv2_decode_init().

◆ ff_wmv2_decode_picture_header()

int ff_wmv2_decode_picture_header ( MpegEncContext s)

Definition at line 205 of file wmv2dec.c.

Referenced by ff_h263_decode_frame().

◆ ff_wmv2_decode_secondary_picture_header()

int ff_wmv2_decode_secondary_picture_header ( MpegEncContext s)

Definition at line 236 of file wmv2dec.c.

Referenced by ff_h263_decode_frame().

◆ wmv2_decode_motion()

static void wmv2_decode_motion ( WMV2DecContext w,
int *  mx_ptr,
int *  my_ptr 
)
inlinestatic

Definition at line 348 of file wmv2dec.c.

Referenced by wmv2_decode_mb().

◆ wmv2_pred_motion()

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

Definition at line 360 of file wmv2dec.c.

Referenced by wmv2_decode_mb().

◆ wmv2_decode_inter_block()

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

Definition at line 405 of file wmv2dec.c.

Referenced by wmv2_decode_mb().

◆ wmv2_decode_mb()

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

Definition at line 443 of file wmv2dec.c.

Referenced by wmv2_decode_init().

◆ wmv2_decode_init()

static av_cold int wmv2_decode_init ( AVCodecContext avctx)
static

Definition at line 561 of file wmv2dec.c.

◆ wmv2_decode_end()

static av_cold int wmv2_decode_end ( AVCodecContext avctx)
static

Definition at line 583 of file wmv2dec.c.

Variable Documentation

◆ ff_wmv2_decoder

const FFCodec ff_wmv2_decoder
Initial value:
= {
.p.name = "wmv2",
CODEC_LONG_NAME("Windows Media Video 8"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(WMV2DecContext),
.close = wmv2_decode_end,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 591 of file wmv2dec.c.

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
wmv2_decode_end
static av_cold int wmv2_decode_end(AVCodecContext *avctx)
Definition: wmv2dec.c:583
WMV2DecContext
Definition: wmv2dec.c:39
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:311
AV_CODEC_ID_WMV2
@ AV_CODEC_ID_WMV2
Definition: codec_id.h:70
CODEC_LONG_NAME
#define CODEC_LONG_NAME(str)
Definition: codec_internal.h:296
ff_h263_decode_frame
int ff_h263_decode_frame(AVCodecContext *avctx, AVFrame *pict, int *got_frame, AVPacket *avpkt)
Definition: h263dec.c:426
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
wmv2_decode_init
static av_cold int wmv2_decode_init(AVCodecContext *avctx)
Definition: wmv2dec.c:561
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AV_CODEC_CAP_DRAW_HORIZ_BAND
#define AV_CODEC_CAP_DRAW_HORIZ_BAND
Decoder can use draw_horiz_band callback.
Definition: codec.h:44