RetroArch
Macros | Functions
lpc.c File Reference
#include <math.h>
#include "include/FLAC/assert.h"
#include "include/FLAC/format.h"
#include "include/share/compat.h"
#include "include/private/bitmath.h"
#include "include/private/lpc.h"
#include "include/private/macros.h"
Include dependency graph for lpc.c:

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], 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)
 
double FLAC__lpc_compute_expected_bits_per_residual_sample (double lpc_error, unsigned total_samples)
 
double FLAC__lpc_compute_expected_bits_per_residual_sample_with_error_scale (double lpc_error, double error_scale)
 
unsigned FLAC__lpc_compute_best_order (const double lpc_error[], unsigned max_order, unsigned total_samples, unsigned overhead_bits_per_order)
 

Macro Definition Documentation

◆ FLAC__LPC_UNROLLED_FILTER_LOOPS

#define FLAC__LPC_UNROLLED_FILTER_LOOPS

Function Documentation

◆ FLAC__lpc_compute_autocorrelation()

void FLAC__lpc_compute_autocorrelation ( const FLAC__real  data[],
unsigned  data_len,
unsigned  lag,
FLAC__real  autoc[] 
)

◆ FLAC__lpc_compute_best_order()

unsigned FLAC__lpc_compute_best_order ( const double  lpc_error[],
unsigned  max_order,
unsigned  total_samples,
unsigned  overhead_bits_per_order 
)
Here is the call graph for this function:

◆ FLAC__lpc_compute_expected_bits_per_residual_sample()

double FLAC__lpc_compute_expected_bits_per_residual_sample ( double  lpc_error,
unsigned  total_samples 
)
Here is the call graph for this function:

◆ FLAC__lpc_compute_expected_bits_per_residual_sample_with_error_scale()

double FLAC__lpc_compute_expected_bits_per_residual_sample_with_error_scale ( double  lpc_error,
double  error_scale 
)
Here is the caller graph for this function:

◆ FLAC__lpc_compute_lp_coefficients()

void FLAC__lpc_compute_lp_coefficients ( const FLAC__real  autoc[],
unsigned *  max_order,
FLAC__real  lp_coeff[][FLAC__MAX_LPC_ORDER],
double  error[] 
)
Here is the call graph for this function:

◆ FLAC__lpc_compute_residual_from_qlp_coefficients()

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 
)

◆ FLAC__lpc_compute_residual_from_qlp_coefficients_wide()

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 
)
Here is the call graph for this function:

◆ FLAC__lpc_quantize_coefficients()

int FLAC__lpc_quantize_coefficients ( const FLAC__real  lp_coeff[],
unsigned  order,
unsigned  precision,
FLAC__int32  qlp_coeff[],
int *  shift 
)
Here is the call graph for this function:

◆ FLAC__lpc_restore_signal()

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 
)

◆ FLAC__lpc_restore_signal_wide()

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 
)
Here is the call graph for this function:

◆ FLAC__lpc_window_data()

void FLAC__lpc_window_data ( const FLAC__int32  in[],
const FLAC__real  window[],
FLAC__real  out[],
unsigned  data_len 
)