FFmpeg
Functions | Variables
wmv2dec.c File Reference
#include "avcodec.h"
#include "h263.h"
#include "internal.h"
#include "intrax8.h"
#include "mathops.h"
#include "mpegutils.h"
#include "mpegvideo.h"
#include "msmpeg4.h"
#include "msmpeg4data.h"
#include "wmv2.h"

Go to the source code of this file.

Functions

static int 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 void 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

const AVCodec ff_wmv2_decoder
 

Function Documentation

◆ parse_mb_skip()

static int parse_mb_skip ( Wmv2Context w)
static

Definition at line 33 of file wmv2dec.c.

Referenced by ff_wmv2_decode_secondary_picture_header().

◆ decode_ext_header()

static int decode_ext_header ( Wmv2Context w)
static

Definition at line 98 of file wmv2dec.c.

Referenced by ff_wmv2_decode_picture_header().

◆ ff_wmv2_decode_picture_header()

int ff_wmv2_decode_picture_header ( MpegEncContext s)

Definition at line 136 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 171 of file wmv2dec.c.

Referenced by ff_h263_decode_frame().

◆ wmv2_decode_motion()

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

Definition at line 281 of file wmv2dec.c.

Referenced by ff_wmv2_decode_mb().

◆ wmv2_pred_motion()

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

Definition at line 293 of file wmv2dec.c.

Referenced by ff_wmv2_decode_mb().

◆ wmv2_decode_inter_block()

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

Definition at line 338 of file wmv2dec.c.

Referenced by ff_wmv2_decode_mb().

◆ ff_wmv2_decode_mb()

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

Definition at line 378 of file wmv2dec.c.

Referenced by ff_msmpeg4_decode_init().

◆ wmv2_decode_init()

static av_cold int wmv2_decode_init ( AVCodecContext avctx)
static

Definition at line 493 of file wmv2dec.c.

◆ wmv2_decode_end()

static av_cold int wmv2_decode_end ( AVCodecContext avctx)
static

Definition at line 508 of file wmv2dec.c.

Variable Documentation

◆ ff_wmv2_decoder

const AVCodec ff_wmv2_decoder
Initial value:
= {
.name = "wmv2",
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"),
.priv_data_size = sizeof(Wmv2Context),
.close = wmv2_decode_end,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
}

Definition at line 516 of file wmv2dec.c.

AVPixelFormat
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
wmv2_decode_end
static av_cold int wmv2_decode_end(AVCodecContext *avctx)
Definition: wmv2dec.c:508
init
static int init
Definition: av_tx.c:47
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
AV_CODEC_ID_WMV2
@ AV_CODEC_ID_WMV2
Definition: codec_id.h:68
pix_fmts
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:296
AV_PIX_FMT_YUV420P
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66
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
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
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: internal.h:50
AV_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65
wmv2_decode_init
static av_cold int wmv2_decode_init(AVCodecContext *avctx)
Definition: wmv2dec.c:493
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
ff_h263_decode_frame
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: h263dec.c:426
Wmv2Context
Definition: wmv2.h:36
AV_CODEC_CAP_DRAW_HORIZ_BAND
#define AV_CODEC_CAP_DRAW_HORIZ_BAND
Decoder can use draw_horiz_band callback.
Definition: codec.h:44