libavcodec/ralf.c File Reference
This is a decoder for Real Audio Lossless format.
More...
#include "avcodec.h"
#include "get_bits.h"
#include "golomb.h"
#include "unary.h"
#include "libavutil/audioconvert.h"
#include "ralfdata.h"
Go to the source code of this file.
|
Data Structures |
struct | VLCSet |
struct | RALFContext |
Defines |
#define | FILTER_NONE 0 |
#define | FILTER_RAW 642 |
#define | RALF_MAX_PKT_SIZE 8192 |
#define | MAX_ELEMS 644 |
Functions |
static int | init_ralf_vlc (VLC *vlc, const uint8_t *data, int elems) |
static av_cold int | decode_close (AVCodecContext *avctx) |
static av_cold int | decode_init (AVCodecContext *avctx) |
static int | extend_code (GetBitContext *gb, int val, int range, int bits) |
static int | decode_channel (RALFContext *ctx, GetBitContext *gb, int ch, int length, int mode, int bits) |
static void | apply_lpc (RALFContext *ctx, int ch, int length, int bits) |
static int | decode_block (AVCodecContext *avctx, GetBitContext *gb, int16_t *dst) |
static int | decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
static void | decode_flush (AVCodecContext *avctx) |
Variables |
AVCodec | ff_ralf_decoder |
Detailed Description
This is a decoder for Real Audio Lossless format.
Dedicated to the mastermind behind it, Ralph Wiggum.
Definition in file ralf.c.
Define Documentation
#define RALF_MAX_PKT_SIZE 8192 |
Function Documentation
static void apply_lpc |
( |
RALFContext * |
ctx, |
|
|
int |
ch, |
|
|
int |
length, |
|
|
int |
bits | |
|
) |
| | [static] |
static int decode_frame |
( |
AVCodecContext * |
avctx, |
|
|
void * |
data, |
|
|
int * |
got_frame_ptr, |
|
|
AVPacket * |
avpkt | |
|
) |
| | [static] |
static int extend_code |
( |
GetBitContext * |
gb, |
|
|
int |
val, |
|
|
int |
range, |
|
|
int |
bits | |
|
) |
| | [inline, static] |
static int init_ralf_vlc |
( |
VLC * |
vlc, |
|
|
const uint8_t * |
data, |
|
|
int |
elems | |
|
) |
| | [static] |
Variable Documentation
Initial value:
{
.name = "ralf",
.type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_RALF,
.priv_data_size = sizeof(RALFContext),
.init = decode_init,
.close = decode_close,
.decode = decode_frame,
.flush = decode_flush,
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("RealAudio Lossless"),
}
Definition at line 525 of file ralf.c.