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. More...
#include "avcodec.h"#include "bitstream.h"#include "golomb.h"Go to the source code of this file.
Data Structures | |
| struct | SonicContext |
Defines | |
| #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 |
Typedefs | |
| typedef struct SonicContext | SonicContext |
Functions | |
| static int | divide (int a, int b) |
| static int | shift (int a, int b) |
| static int | shift_down (int a, int b) |
| static int | intlist_write (PutBitContext *pb, int *buf, int entries, int base_2_part) |
| static int | intlist_read (GetBitContext *gb, 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) |
Variables | |
| static const int | samplerate_table [] |
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_SHIFT 10 |
Definition at line 69 of file sonic.c.
Referenced by predictor_calc_error(), and predictor_init_state().
| #define SAMPLE_FACTOR (1 << SAMPLE_SHIFT) |
Definition at line 72 of file sonic.c.
Referenced by predictor_calc_error().
| typedef struct SonicContext SonicContext |
| static int intlist_read | ( | GetBitContext * | gb, | |
| int * | buf, | |||
| int | entries, | |||
| int | base_2_part | |||
| ) | [inline, static] |
| static int intlist_write | ( | PutBitContext * | pb, | |
| int * | buf, | |||
| int | entries, | |||
| int | base_2_part | |||
| ) | [inline, static] |
| static int predictor_calc_error | ( | int * | k, | |
| int * | state, | |||
| int | order, | |||
| int | error | |||
| ) | [static] |
| static void predictor_init_state | ( | int * | k, | |
| int * | state, | |||
| int | order | |||
| ) | [static] |
| static int shift | ( | int | a, | |
| int | b | |||
| ) | [inline, static] |
Definition at line 85 of file sonic.c.
Referenced by adpcm_decode_frame(), bfi_decode_frame(), bidir_refine(), calc_predictor_params(), check_input_motion(), direct_search(), dpcm_decode_frame(), encode_frame(), encode_q_branch(), encode_residual(), epzs_motion_search2(), epzs_motion_search4(), epzs_motion_search_internal(), ff_convert_matrix(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), ff_pre_estimate_p_frame_motion(), ff_print_debug_info(), init_dequant4_coeff_table(), init_dequant8_coeff_table(), initFilter(), main(), prefetch_motion(), read_line(), renorm_cabac_decoder_once(), sab_diamond_search(), and vc1_mspel_mc().
| static int shift_down | ( | int | a, | |
| int | b | |||
| ) | [inline, static] |
Definition at line 90 of file sonic.c.
Referenced by predictor_calc_error(), and predictor_init_state().
const int samplerate_table[] [static] |
1.7.1