Logo Search packages:      
Sourcecode: blender version File versions

sonic.c File Reference


Detailed Description

Simple free lossless/lossy audio codec Based on Paul Francis Harrison's Bonk (http://www.logarithmic.net/pfh/bonk) Written and designed by Alex Beregszaszi

TODO:

Definition in file sonic.c.

#include "avcodec.h"
#include "bitstream.h"
#include "golomb.h"

Go to the source code of this file.

Classes

struct  SonicContext

Defines

#define BASE_QUANT   0.6
#define LATTICE_FACTOR   (1 << LATTICE_SHIFT)
#define LATTICE_SHIFT   10
#define LEFT_SIDE   1
#define MAX_CHANNELS   2
#define MID_SIDE   0
#define RATE_VARIATION   3.0
#define RIGHT_SIDE   2
#define SAMPLE_FACTOR   (1 << SAMPLE_SHIFT)
#define SAMPLE_SHIFT   4

Functions

static int divide (int a, int b)
static int intlist_read (GetBitContext *gb, int *buf, int entries, int base_2_part)
static int intlist_write (PutBitContext *pb, int *buf, int entries, int base_2_part)
static void modified_levinson_durbin (int *window, int window_entries, int *out, int out_entries, int channels, int *tap_quant)
static int predictor_calc_error (int *k, int *state, int order, int error)
static void predictor_init_state (int *k, int *state, int order)
static int shift (int a, int b)
static int shift_down (int a, int b)
static int sonic_decode_close (AVCodecContext *avctx)
static int sonic_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
static int sonic_decode_init (AVCodecContext *avctx)

Variables

static int samplerate_table []


Generated by  Doxygen 1.6.0   Back to index