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...
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) |
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 BASE_QUANT 0.6 |
#define LATTICE_FACTOR (1 << LATTICE_SHIFT) |
#define LATTICE_SHIFT 10 |
Definition at line 70 of file sonic.c.
Referenced by predictor_calc_error(), and predictor_init_state().
#define MAX_CHANNELS 2 |
#define RATE_VARIATION 3.0 |
#define RIGHT_SIDE 2 |
#define SAMPLE_FACTOR (1 << SAMPLE_SHIFT) |
Definition at line 73 of file sonic.c.
Referenced by predictor_calc_error().
#define SAMPLE_SHIFT 4 |
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 86 of file sonic.c.
Referenced by ac3_lshift_int16_c(), ac3_rshift_int32_c(), adpcm_decode_frame(), adpcm_ima_expand_nibble(), adpcm_sbpro_expand_nibble(), av_read_image_line(), av_write_image_line(), avpicture_layout(), bfi_decode_frame(), bidir_refine(), calc_predictor_params(), check_input_motion(), checksum_plane(), decode_block(), decode_bmv_frame(), decode_frame(), decode_init_static(), direct_search(), dpcm_decode_frame(), dv_audio_12to16(), encode_frame(), encode_residual_ch(), encode_residual_lpc(), encode_residual_lpc_unrolled(), epzs_motion_search2(), epzs_motion_search4(), epzs_motion_search_internal(), exponents_from_scale_factors(), ff_celp_lp_synthesis_filter(), ff_convert_matrix(), ff_estimate_motion_b(), ff_estimate_p_frame_motion(), ff_gmc_c(), ff_ivi_inverse_haar_8x8(), ff_jpegls_decode_picture(), ff_nelly_get_sample_bits(), ff_png_pass_row_size(), ff_pre_estimate_p_frame_motion(), ff_print_debug_info(), get_amv(), get_bucket(), gmc(), gmc_c(), h263_decode_motion(), h263_mv4_search(), init_dequant4_coeff_table(), init_dequant8_coeff_table(), initFilter(), initMMX2HScaler(), l1_unscale(), l2_unscale_group(), lag_get_rac(), linear_scale_factor(), lineNoise_C(), lineNoise_MMX(), lineNoise_MMX2(), long_term_filter(), main(), mpeg_decode_motion(), msmpeg4v2_decode_motion(), noise(), permutate_in_line(), picmemset(), prefetch_motion(), ra144_encode_frame(), radix_sort_pass(), range_decode_culshift(), renorm(), renorm_cabac_decoder_once(), sab_diamond_search(), sign_extend(), signed_shift(), snow_horizontal_compose_lift_lead_out(), softfloat_reciprocal(), sws_getShiftedVec(), ttafilter_init(), vc1_parse_frame_header(), vc1_parse_frame_header_adv(), vc1_put_ver_16b_shift2_mmx(), vp56_rac_renorm(), write_fat_sector(), wv_get_value_float(), xa_decode(), yuv2plane1_10_c_template(), yuv2plane1_16_c_template(), yuv2planeX_10_c_template(), and yuv2planeX_16_c_template().
static int shift_down | ( | int | a, |
int | b | ||
) | [inline, static] |
Definition at line 91 of file sonic.c.
Referenced by predictor_calc_error(), and predictor_init_state().