#include "avcodec.h"
#include "get_bits.h"
#include "dsputil.h"
#include "dct.h"
#include "rdft.h"
#include "fmtconvert.h"
#include "libavutil/intfloat_readwrite.h"
Go to the source code of this file.
Data Structures | |
struct | BinkAudioContext |
Defines | |
#define | ALT_BITSTREAM_READER_LE |
#define | MAX_CHANNELS 2 |
#define | BINK_BLOCK_MAX_SIZE (MAX_CHANNELS << 11) |
#define | GET_BITS_SAFE(out, nbits) |
Functions | |
static av_cold int | decode_init (AVCodecContext *avctx) |
static float | get_float (GetBitContext *gb) |
static int | decode_block (BinkAudioContext *s, short *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 *data_size, AVPacket *avpkt) |
Variables | |
const uint16_t | ff_wma_critical_freqs [25] |
static const uint8_t | rle_length_tab [16] |
AVCodec | ff_binkaudio_rdft_decoder |
AVCodec | ff_binkaudio_dct_decoder |
Technical details here: http://wiki.multimedia.cx/index.php?title=Bink_Audio
Definition in file binkaudio.c.
#define ALT_BITSTREAM_READER_LE |
Definition at line 32 of file binkaudio.c.
#define BINK_BLOCK_MAX_SIZE (MAX_CHANNELS << 11) |
Definition at line 43 of file binkaudio.c.
#define GET_BITS_SAFE | ( | out, | |||
nbits | ) |
Value:
do { \ if (get_bits_left(gb) < nbits) \ return AVERROR_INVALIDDATA; \ out = get_bits(gb, nbits); \ } while (0)
Definition at line 156 of file binkaudio.c.
Referenced by decode_block().
#define MAX_CHANNELS 2 |
Definition at line 42 of file binkaudio.c.
static int decode_block | ( | BinkAudioContext * | s, | |
short * | out, | |||
int | use_dct | |||
) | [static] |
Decode Bink Audio block.
[out] | out | Output buffer (must contain s->block_size elements) |
Definition at line 167 of file binkaudio.c.
static av_cold int decode_end | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 274 of file binkaudio.c.
static int decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
Definition at line 291 of file binkaudio.c.
static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 68 of file binkaudio.c.
static void get_bits_align32 | ( | GetBitContext * | s | ) | [static] |
static float get_float | ( | GetBitContext * | gb | ) | [static] |
Initial value:
{ "binkaudio_dct", AVMEDIA_TYPE_AUDIO, CODEC_ID_BINKAUDIO_DCT, sizeof(BinkAudioContext), decode_init, NULL, decode_end, decode_frame, .long_name = NULL_IF_CONFIG_SMALL("Bink Audio (DCT)") }
Definition at line 334 of file binkaudio.c.
Initial value:
{ "binkaudio_rdft", AVMEDIA_TYPE_AUDIO, CODEC_ID_BINKAUDIO_RDFT, sizeof(BinkAudioContext), decode_init, NULL, decode_end, decode_frame, .long_name = NULL_IF_CONFIG_SMALL("Bink Audio (RDFT)") }
Definition at line 322 of file binkaudio.c.
const uint16_t ff_wma_critical_freqs[25] |
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 152 of file binkaudio.c.
Referenced by decode_block().