openshot-audio  0.1.7
Macros | Functions
lpc_flac.c File Reference
#include <math.h>
#include "../assert.h"
#include "../format.h"
#include "../compat.h"
#include "include/private/bitmath.h"
#include "include/private/lpc.h"

Macros

#define FLAC__LPC_UNROLLED_FILTER_LOOPS
 

Functions

void FLAC__lpc_window_data (const FLAC__int32 in[], const FLAC__real window[], FLAC__real out[], unsigned data_len)
 
void FLAC__lpc_compute_autocorrelation (const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[])
 
void FLAC__lpc_compute_lp_coefficients (const FLAC__real autoc[], unsigned *max_order, FLAC__real lp_coeff[][FLAC__MAX_LPC_ORDER], FLAC__double error[])
 
int FLAC__lpc_quantize_coefficients (const FLAC__real lp_coeff[], unsigned order, unsigned precision, FLAC__int32 qlp_coeff[], int *shift)
 
void FLAC__lpc_compute_residual_from_qlp_coefficients (const FLAC__int32 *flac_restrict data, unsigned data_len, const FLAC__int32 *flac_restrict qlp_coeff, unsigned order, int lp_quantization, FLAC__int32 *flac_restrict residual)
 
void FLAC__lpc_compute_residual_from_qlp_coefficients_wide (const FLAC__int32 *flac_restrict data, unsigned data_len, const FLAC__int32 *flac_restrict qlp_coeff, unsigned order, int lp_quantization, FLAC__int32 *flac_restrict residual)
 
void FLAC__lpc_restore_signal (const FLAC__int32 *flac_restrict residual, unsigned data_len, const FLAC__int32 *flac_restrict qlp_coeff, unsigned order, int lp_quantization, FLAC__int32 *flac_restrict data)
 
void FLAC__lpc_restore_signal_wide (const FLAC__int32 *flac_restrict residual, unsigned data_len, const FLAC__int32 *flac_restrict qlp_coeff, unsigned order, int lp_quantization, FLAC__int32 *flac_restrict data)
 
FLAC__double FLAC__lpc_compute_expected_bits_per_residual_sample (FLAC__double lpc_error, unsigned total_samples)
 
FLAC__double FLAC__lpc_compute_expected_bits_per_residual_sample_with_error_scale (FLAC__double lpc_error, FLAC__double error_scale)
 
unsigned FLAC__lpc_compute_best_order (const FLAC__double lpc_error[], unsigned max_order, unsigned total_samples, unsigned overhead_bits_per_order)
 

Macro Definition Documentation

#define FLAC__LPC_UNROLLED_FILTER_LOOPS

Function Documentation

void FLAC__lpc_compute_autocorrelation ( const FLAC__real  data[],
unsigned  data_len,
unsigned  lag,
FLAC__real  autoc[] 
)
unsigned FLAC__lpc_compute_best_order ( const FLAC__double  lpc_error[],
unsigned  max_order,
unsigned  total_samples,
unsigned  overhead_bits_per_order 
)
FLAC__double FLAC__lpc_compute_expected_bits_per_residual_sample ( FLAC__double  lpc_error,
unsigned  total_samples 
)
FLAC__double FLAC__lpc_compute_expected_bits_per_residual_sample_with_error_scale ( FLAC__double  lpc_error,
FLAC__double  error_scale 
)
void FLAC__lpc_compute_lp_coefficients ( const FLAC__real  autoc[],
unsigned *  max_order,
FLAC__real  lp_coeff[][FLAC__MAX_LPC_ORDER],
FLAC__double  error[] 
)
void FLAC__lpc_compute_residual_from_qlp_coefficients ( const FLAC__int32 *flac_restrict  data,
unsigned  data_len,
const FLAC__int32 *flac_restrict  qlp_coeff,
unsigned  order,
int  lp_quantization,
FLAC__int32 *flac_restrict  residual 
)
void FLAC__lpc_compute_residual_from_qlp_coefficients_wide ( const FLAC__int32 *flac_restrict  data,
unsigned  data_len,
const FLAC__int32 *flac_restrict  qlp_coeff,
unsigned  order,
int  lp_quantization,
FLAC__int32 *flac_restrict  residual 
)
int FLAC__lpc_quantize_coefficients ( const FLAC__real  lp_coeff[],
unsigned  order,
unsigned  precision,
FLAC__int32  qlp_coeff[],
int shift 
)
void FLAC__lpc_restore_signal ( const FLAC__int32 *flac_restrict  residual,
unsigned  data_len,
const FLAC__int32 *flac_restrict  qlp_coeff,
unsigned  order,
int  lp_quantization,
FLAC__int32 *flac_restrict  data 
)
void FLAC__lpc_restore_signal_wide ( const FLAC__int32 *flac_restrict  residual,
unsigned  data_len,
const FLAC__int32 *flac_restrict  qlp_coeff,
unsigned  order,
int  lp_quantization,
FLAC__int32 *flac_restrict  data 
)
void FLAC__lpc_window_data ( const FLAC__int32  in[],
const FLAC__real  window[],
FLAC__real  out[],
unsigned  data_len 
)