Macros | Functions | Variables
vc1dec.c File Reference

VC-1 and WMV3 decoder. More...

#include "avcodec.h"
#include "blockdsp.h"
#include "get_bits.h"
#include "hwconfig.h"
#include "internal.h"
#include "mpeg_er.h"
#include "mpegvideo.h"
#include "msmpeg4.h"
#include "msmpeg4data.h"
#include "profiles.h"
#include "vc1.h"
#include "vc1data.h"
#include "libavutil/avassert.h"

Go to the source code of this file.


#define transpose(x)   (((x) >> 3) | (((x) & 7) << 3))


av_cold int ff_vc1_decode_init_alloc_tables (VC1Context *v)
av_cold void ff_vc1_init_transposed_scantables (VC1Context *v)
static av_cold int vc1_decode_init (AVCodecContext *avctx)
 Initialize a VC1/WMV3 decoder. More...
av_cold int ff_vc1_decode_end (AVCodecContext *avctx)
 Close a VC1/WMV3 decoder. More...
static int vc1_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 Decode a VC1/WMV3 frame. More...


static enum AVPixelFormat vc1_hwaccel_pixfmt_list_420 []
AVCodec ff_vc1_decoder

Detailed Description

VC-1 and WMV3 decoder.

Definition in file vc1dec.c.

Macro Definition Documentation

#define transpose (   x)    (((x) >> 3) | (((x) & 7) << 3))

Function Documentation

av_cold int ff_vc1_decode_init_alloc_tables ( VC1Context v)

Definition at line 324 of file vc1dec.c.

Referenced by vc1_decode_frame(), vc1_decode_init(), and wmv9_init().

av_cold void ff_vc1_init_transposed_scantables ( VC1Context v)

Definition at line 403 of file vc1dec.c.

Referenced by vc1_decode_init(), and wmv9_init().

static av_cold int vc1_decode_init ( AVCodecContext avctx)

Initialize a VC1/WMV3 decoder.


TODO: Handle VC-1 IDUs (Transport level?)

TODO: Decipher remaining bits in extra_data

Definition at line 422 of file vc1dec.c.

av_cold int ff_vc1_decode_end ( AVCodecContext avctx)

Close a VC1/WMV3 decoder.

Initial try at using MpegEncContext stuff

Definition at line 587 of file vc1dec.c.

Referenced by ff_vc1_decode_init_alloc_tables(), mss2_decode_end(), vc1_decode_frame(), and vc1_decode_init().

static int vc1_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket avpkt 

Decode a VC1/WMV3 frame.

TODO: Handle VC-1 IDUs (Transport level?)

Definition at line 620 of file vc1dec.c.

Variable Documentation

enum AVPixelFormat vc1_hwaccel_pixfmt_list_420[]
Initial value:
= {
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Definition: pixfmt.h:66

Definition at line 1178 of file vc1dec.c.

AVCodec ff_vc1_decoder

Definition at line 1199 of file vc1dec.c.