FFmpeg
Macros | Functions | Variables
vc1dec.c File Reference
#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.

Macros

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

Functions

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...
 

Variables

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

◆ transpose

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

Function Documentation

◆ ff_vc1_decode_init_alloc_tables()

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().

◆ ff_vc1_init_transposed_scantables()

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().

◆ vc1_decode_init()

static av_cold int vc1_decode_init ( AVCodecContext avctx)
static

Initialize a VC1/WMV3 decoder.

Todo:

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

TODO: Decipher remaining bits in extra_data

Definition at line 422 of file vc1dec.c.

◆ ff_vc1_decode_end()

av_cold int ff_vc1_decode_end ( AVCodecContext avctx)

Close a VC1/WMV3 decoder.

Warning
Initial try at using MpegEncContext stuff

Definition at line 599 of file vc1dec.c.

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

◆ vc1_decode_frame()

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

Decode a VC1/WMV3 frame.

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

Definition at line 634 of file vc1dec.c.

Variable Documentation

◆ vc1_hwaccel_pixfmt_list_420

enum AVPixelFormat vc1_hwaccel_pixfmt_list_420[]
static
Initial value:

Definition at line 1191 of file vc1dec.c.

◆ ff_vc1_decoder

AVCodec ff_vc1_decoder

Definition at line 1212 of file vc1dec.c.

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_PIX_FMT_NONE
@ AV_PIX_FMT_NONE
Definition: pixfmt.h:65