FFmpeg
|
#include "config_components.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "encode.h"
#include "get_bits.h"
#include "golomb.h"
#include "put_golomb.h"
#include "rangecoder.h"
Go to the source code of this file.
Data Structures | |
struct | SonicContext |
Macros | |
#define | MAX_CHANNELS 2 |
#define | MID_SIDE 0 |
#define | LEFT_SIDE 1 |
#define | RIGHT_SIDE 2 |
#define | LATTICE_SHIFT 10 |
#define | SAMPLE_SHIFT 4 |
#define | LATTICE_FACTOR (1 << LATTICE_SHIFT) |
#define | SAMPLE_FACTOR (1 << SAMPLE_SHIFT) |
#define | BASE_QUANT 0.6 |
#define | RATE_VARIATION 3.0 |
#define | put_rac(C, S, B) |
Functions | |
static int | shift (int a, int b) |
static int | shift_down (int a, int b) |
static av_always_inline av_flatten void | put_symbol (RangeCoder *c, uint8_t *state, int v, int is_signed, uint64_t rc_stat[256][2], uint64_t rc_stat2[32][2]) |
static av_flatten int | get_symbol (RangeCoder *c, uint8_t *state, int is_signed) |
static int | intlist_write (RangeCoder *c, uint8_t *state, int *buf, int entries, int base_2_part) |
static int | intlist_read (RangeCoder *c, uint8_t *state, int *buf, int entries, int base_2_part) |
static void | predictor_init_state (int *k, int *state, int order) |
static int | predictor_calc_error (int *k, int *state, int order, int error) |
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.
#define LATTICE_FACTOR (1 << LATTICE_SHIFT) |
#define SAMPLE_FACTOR (1 << SAMPLE_SHIFT) |
Definition at line 93 of file sonic.c.
Referenced by predictor_calc_error(), and predictor_init_state().
|
static |
Definition at line 98 of file sonic.c.
Referenced by intlist_write().
|
inlinestatic |
Definition at line 145 of file sonic.c.
Referenced by intlist_read().
|
inlinestatic |
|
inlinestatic |