Libav
Macros | Functions | Variables
asvdec.c File Reference

ASUS V1/V2 decoder. More...

#include "libavutil/attributes.h"
#include "libavutil/mem.h"
#include "asv.h"
#include "avcodec.h"
#include "blockdsp.h"
#include "put_bits.h"
#include "idctdsp.h"
#include "internal.h"
#include "mathops.h"
#include "mpeg12data.h"

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
 
AVCodec ff_asv1_decoder
 
AVCodec ff_asv2_decoder
 

Detailed Description

ASUS V1/V2 decoder.

Definition in file asvdec.c.

Macro Definition Documentation

§ VLC_BITS

#define VLC_BITS   6

§ ASV2_LEVEL_VLC_BITS

#define ASV2_LEVEL_VLC_BITS   10

Definition at line 39 of file asvdec.c.

Referenced by asv2_get_level(), and init_vlcs().

Function Documentation

§ init_vlcs()

static av_cold void init_vlcs ( ASV1Context a)
static

Definition at line 47 of file asvdec.c.

Referenced by decode_init().

§ asv2_get_bits()

static int asv2_get_bits ( GetBitContext gb,
int  n 
)
inlinestatic

Definition at line 73 of file asvdec.c.

Referenced by asv2_decode_block(), and asv2_get_level().

§ asv1_get_level()

static int asv1_get_level ( GetBitContext gb)
inlinestatic

Definition at line 78 of file asvdec.c.

Referenced by asv1_decode_block().

§ asv2_get_level()

static int asv2_get_level ( GetBitContext gb)
inlinestatic

Definition at line 88 of file asvdec.c.

Referenced by asv2_decode_block().

§ asv1_decode_block()

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

Definition at line 98 of file asvdec.c.

Referenced by decode_mb().

§ asv2_decode_block()

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

Definition at line 129 of file asvdec.c.

Referenced by decode_mb().

§ decode_mb()

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

Definition at line 165 of file asvdec.c.

Referenced by decode_frame().

§ idct_put()

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

Definition at line 185 of file asvdec.c.

Referenced by decode_frame().

§ decode_frame()

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

Definition at line 205 of file asvdec.c.

§ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 274 of file asvdec.c.

§ decode_end()

static av_cold int decode_end ( AVCodecContext avctx)
static

Definition at line 310 of file asvdec.c.

Variable Documentation

§ ccp_vlc

VLC ccp_vlc
static

Definition at line 41 of file asvdec.c.

§ level_vlc

VLC level_vlc
static

Definition at line 42 of file asvdec.c.

§ dc_ccp_vlc

VLC dc_ccp_vlc
static

Definition at line 43 of file asvdec.c.

§ ac_ccp_vlc

VLC ac_ccp_vlc
static

Definition at line 44 of file asvdec.c.

§ asv2_level_vlc

VLC asv2_level_vlc
static

Definition at line 45 of file asvdec.c.

§ ff_asv1_decoder

AVCodec ff_asv1_decoder
Initial value:
= {
.name = "asv1",
.long_name = NULL_IF_CONFIG_SMALL("ASUS V1"),
.priv_data_size = sizeof(ASV1Context),
.capabilities = CODEC_CAP_DR1,
}
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: asvdec.c:205
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:275
static av_cold int decode_init(AVCodecContext *avctx)
Definition: asvdec.c:274
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:684
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:490
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499
static av_cold int decode_end(AVCodecContext *avctx)
Definition: asvdec.c:310

Definition at line 320 of file asvdec.c.

§ ff_asv2_decoder

AVCodec ff_asv2_decoder
Initial value:
= {
.name = "asv2",
.long_name = NULL_IF_CONFIG_SMALL("ASUS V2"),
.priv_data_size = sizeof(ASV1Context),
.capabilities = CODEC_CAP_DR1,
}
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: asvdec.c:205
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:275
static av_cold int decode_init(AVCodecContext *avctx)
Definition: asvdec.c:274
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:684
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
static void close(AVCodecParserContext *s)
Definition: h264_parser.c:490
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499
static av_cold int decode_end(AVCodecContext *avctx)
Definition: asvdec.c:310

Definition at line 332 of file asvdec.c.