FFmpeg
Data Structures | Macros | Functions | Variables
asvdec.c File Reference
#include "libavutil/attributes.h"
#include "libavutil/mem.h"
#include "libavutil/mem_internal.h"
#include "libavutil/thread.h"
#include "asv.h"
#include "avcodec.h"
#include "blockdsp.h"
#include "codec_internal.h"
#include "config_components.h"
#include "decode.h"
#include "get_bits.h"
#include "idctdsp.h"
#include "mpeg12data.h"
#include "vlc.h"

Go to the source code of this file.

Data Structures

struct  ASVDecContext
 

Macros

#define CCP_VLC_BITS   5
 
#define DC_CCP_VLC_BITS   4
 
#define AC_CCP_VLC_BITS   6
 
#define ASV1_LEVEL_VLC_BITS   4
 
#define ASV2_LEVEL_VLC_BITS   10
 

Functions

static av_cold void init_vlcs (void)
 
static int asv1_get_level (GetBitContext *gb)
 
static int asv2_get_vlc2 (GetBitContext *gb, const VLCElem *table, int bits)
 
static int asv2_get_level (GetBitContext *gb)
 
static int asv1_decode_block (ASVDecContext *a, int16_t block[64])
 
static int asv2_decode_block (ASVDecContext *a, int16_t block[64])
 
static int decode_mb (ASVDecContext *a, int16_t block[6][64])
 
static void idct_put (ASVDecContext *a, AVFrame *frame, int mb_x, int mb_y)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *p, 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

◆ CCP_VLC_BITS

#define CCP_VLC_BITS   5

Definition at line 42 of file asvdec.c.

◆ DC_CCP_VLC_BITS

#define DC_CCP_VLC_BITS   4

Definition at line 43 of file asvdec.c.

◆ AC_CCP_VLC_BITS

#define AC_CCP_VLC_BITS   6

Definition at line 44 of file asvdec.c.

◆ ASV1_LEVEL_VLC_BITS

#define ASV1_LEVEL_VLC_BITS   4

Definition at line 45 of file asvdec.c.

◆ ASV2_LEVEL_VLC_BITS

#define ASV2_LEVEL_VLC_BITS   10

Definition at line 46 of file asvdec.c.

Function Documentation

◆ init_vlcs()

static av_cold void init_vlcs ( void  )
static

Definition at line 68 of file asvdec.c.

Referenced by decode_init().

◆ asv1_get_level()

static int asv1_get_level ( GetBitContext gb)
inlinestatic

Definition at line 87 of file asvdec.c.

Referenced by asv1_decode_block().

◆ asv2_get_vlc2()

static int asv2_get_vlc2 ( GetBitContext gb,
const VLCElem table,
int  bits 
)
inlinestatic

Definition at line 98 of file asvdec.c.

Referenced by asv2_decode_block(), and asv2_get_level().

◆ asv2_get_level()

static int asv2_get_level ( GetBitContext gb)
inlinestatic

Definition at line 116 of file asvdec.c.

Referenced by asv2_decode_block().

◆ asv1_decode_block()

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

Definition at line 126 of file asvdec.c.

Referenced by decode_mb().

◆ asv2_decode_block()

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

Definition at line 157 of file asvdec.c.

Referenced by decode_mb().

◆ decode_mb()

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

Definition at line 193 of file asvdec.c.

Referenced by decode_frame().

◆ idct_put()

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

Definition at line 213 of file asvdec.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame p,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 233 of file asvdec.c.

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 299 of file asvdec.c.

◆ decode_end()

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 338 of file asvdec.c.

Variable Documentation

◆ ccp_vlc

VLC ccp_vlc
static

Definition at line 48 of file asvdec.c.

Referenced by asv1_decode_block(), and init_vlcs().

◆ level_vlc

VLC level_vlc
static

Definition at line 49 of file asvdec.c.

Referenced by asv1_get_level(), and init_vlcs().

◆ dc_ccp_vlc

VLC dc_ccp_vlc
static

Definition at line 50 of file asvdec.c.

Referenced by asv2_decode_block(), and init_vlcs().

◆ ac_ccp_vlc

VLC ac_ccp_vlc
static

Definition at line 51 of file asvdec.c.

Referenced by asv2_decode_block(), and init_vlcs().

◆ asv2_level_vlc

VLC asv2_level_vlc
static

Definition at line 52 of file asvdec.c.

Referenced by asv2_get_level(), and init_vlcs().