asvdec.c File Reference

ASUS V1/V2 decoder. More...

#include "libavutil/attributes.h"
#include "libavutil/mem.h"
#include "asv.h"
#include "avcodec.h"
#include "put_bits.h"
#include "internal.h"
#include "mathops.h"
#include "mpeg12data.h"
Include dependency graph for asvdec.c:

Go to the source code of this file.

Macros

#define VLC_BITS   6
 
#define ASV2_LEVEL_VLC_BITS   10
 

Functions

static av_cold void init_vlcs (ASV1Context *a)
 
static int asv2_get_bits (GetBitContext *gb, int n)
 
static int asv1_get_level (GetBitContext *gb)
 
static int asv2_get_level (GetBitContext *gb)
 
static int asv1_decode_block (ASV1Context *a, int16_t block[64])
 
static int asv2_decode_block (ASV1Context *a, int16_t block[64])
 
static int decode_mb (ASV1Context *a, int16_t block[6][64])
 
static void idct_put (ASV1Context *a, AVFrame *frame, int mb_x, int mb_y)
 
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
 
static av_cold int decode_init (AVCodecContext *avctx)
 
static av_cold int decode_end (AVCodecContext *avctx)
 

Variables

static VLC ccp_vlc
 
static VLC level_vlc
 
static VLC dc_ccp_vlc
 
static VLC ac_ccp_vlc
 
static VLC asv2_level_vlc
 

Detailed Description

ASUS V1/V2 decoder.

Definition in file asvdec.c.

Macro Definition Documentation

#define ASV2_LEVEL_VLC_BITS   10

Definition at line 37 of file asvdec.c.

Referenced by asv2_get_level(), and init_vlcs().

Function Documentation

static int asv1_decode_block ( ASV1Context a,
int16_t  block[64] 
)
inlinestatic

Definition at line 96 of file asvdec.c.

Referenced by decode_mb().

static int asv1_get_level ( GetBitContext gb)
inlinestatic

Definition at line 76 of file asvdec.c.

Referenced by asv1_decode_block().

static int asv2_decode_block ( ASV1Context a,
int16_t  block[64] 
)
inlinestatic

Definition at line 127 of file asvdec.c.

Referenced by decode_mb().

static int asv2_get_bits ( GetBitContext gb,
int  n 
)
inlinestatic

Definition at line 71 of file asvdec.c.

Referenced by asv2_decode_block(), and asv2_get_level().

static int asv2_get_level ( GetBitContext gb)
inlinestatic

Definition at line 86 of file asvdec.c.

Referenced by asv2_decode_block().

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 297 of file asvdec.c.

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

Definition at line 203 of file asvdec.c.

Referenced by decode_end().

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 269 of file asvdec.c.

Referenced by decode_end().

static int decode_mb ( ASV1Context a,
int16_t  block[6][64] 
)
inlinestatic

Definition at line 163 of file asvdec.c.

Referenced by decode_frame().

static void idct_put ( ASV1Context a,
AVFrame frame,
int  mb_x,
int  mb_y 
)
inlinestatic

Definition at line 183 of file asvdec.c.

Referenced by decode_frame().

static av_cold void init_vlcs ( ASV1Context a)
static

Definition at line 45 of file asvdec.c.

Referenced by decode_init().

Variable Documentation

VLC ac_ccp_vlc
static

Definition at line 42 of file asvdec.c.

VLC asv2_level_vlc
static

Definition at line 43 of file asvdec.c.

VLC ccp_vlc
static

Definition at line 39 of file asvdec.c.

VLC dc_ccp_vlc
static

Definition at line 41 of file asvdec.c.

VLC level_vlc
static

Definition at line 40 of file asvdec.c.