libavcodec/binkaudio.c File Reference

Bink Audio decoder. More...

#include "avcodec.h"
#include "get_bits.h"
#include "dsputil.h"
#include "dct.h"
#include "rdft.h"
#include "fmtconvert.h"
#include "libavutil/intfloat.h"

Go to the source code of this file.

Data Structures

struct  BinkAudioContext

Defines

#define BITSTREAM_READER_LE
#define MAX_CHANNELS   2
#define BINK_BLOCK_MAX_SIZE   (MAX_CHANNELS << 11)

Functions

static av_cold int decode_init (AVCodecContext *avctx)
static float get_float (GetBitContext *gb)
static int decode_block (BinkAudioContext *s, float **out, int use_dct)
 Decode Bink Audio block.
static av_cold int decode_end (AVCodecContext *avctx)
static void get_bits_align32 (GetBitContext *s)
static int decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)

Variables

const uint16_t ff_wma_critical_freqs [25]
static float quant_table [96]
static const uint8_t rle_length_tab [16]
AVCodec ff_binkaudio_rdft_decoder
AVCodec ff_binkaudio_dct_decoder


Detailed Description

Bink Audio decoder.

Technical details here: http://wiki.multimedia.cx/index.php?title=Bink_Audio

Definition in file binkaudio.c.


Define Documentation

#define BINK_BLOCK_MAX_SIZE   (MAX_CHANNELS << 11)

Definition at line 45 of file binkaudio.c.

#define BITSTREAM_READER_LE

Definition at line 32 of file binkaudio.c.

#define MAX_CHANNELS   2

Definition at line 44 of file binkaudio.c.


Function Documentation

static int decode_block ( BinkAudioContext s,
float **  out,
int  use_dct 
) [static]

Decode Bink Audio block.

Parameters:
[out] out Output buffer (must contain s->block_size elements)
Returns:
0 on success, negative error code on failure

Definition at line 166 of file binkaudio.c.

static av_cold int decode_end ( AVCodecContext avctx  )  [static]

Definition at line 270 of file binkaudio.c.

static int decode_frame ( AVCodecContext avctx,
void *  data,
int got_frame_ptr,
AVPacket avpkt 
) [static]

Definition at line 289 of file binkaudio.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 69 of file binkaudio.c.

static void get_bits_align32 ( GetBitContext s  )  [static]

Definition at line 283 of file binkaudio.c.

Referenced by decode_frame().

static float get_float ( GetBitContext gb  )  [static]

Definition at line 148 of file binkaudio.c.

Referenced by decode_block().


Variable Documentation

Initial value:

 {
    .name           = "binkaudio_dct",
    .type           = AVMEDIA_TYPE_AUDIO,
    .id             = AV_CODEC_ID_BINKAUDIO_DCT,
    .priv_data_size = sizeof(BinkAudioContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DELAY | CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("Bink Audio (DCT)")
}

Definition at line 352 of file binkaudio.c.

Initial value:

 {
    .name           = "binkaudio_rdft",
    .type           = AVMEDIA_TYPE_AUDIO,
    .id             = AV_CODEC_ID_BINKAUDIO_RDFT,
    .priv_data_size = sizeof(BinkAudioContext),
    .init           = decode_init,
    .close          = decode_end,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DELAY | CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("Bink Audio (RDFT)")
}

Definition at line 340 of file binkaudio.c.

const uint16_t ff_wma_critical_freqs[25]

Definition at line 33 of file wmadata.h.

Referenced by decode_init(), and ff_wma_init().

float quant_table[96] [static]

Definition at line 42 of file binkaudio.c.

Referenced by decode_block(), decode_init(), and x8_decode_intra_mb().

const uint8_t rle_length_tab[16] [static]

Initial value:

 {
    2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 32, 64
}

Definition at line 157 of file binkaudio.c.

Referenced by decode_block().


Generated on Fri Oct 26 02:50:04 2012 for FFmpeg by  doxygen 1.5.8