33 #ifndef FLAC__PRIVATE__LPC_H 34 #define FLAC__PRIVATE__LPC_H 40 #include "../private/cpu.h" 41 #include "../private/float.h" 42 #include "../FLAC/format.h" 44 #ifndef FLAC__INTEGER_ONLY_LIBRARY 73 # ifdef FLAC__CPU_IA32 74 # ifdef FLAC__HAS_NASM 75 void FLAC__lpc_compute_autocorrelation_asm_ia32(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
76 void FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_4_old(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
77 void FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_8_old(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
78 void FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_12_old(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
79 void FLAC__lpc_compute_autocorrelation_asm_ia32_sse_lag_16_old(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
82 # if (defined FLAC__CPU_IA32 || defined FLAC__CPU_X86_64) && FLAC__HAS_X86INTRIN 83 # ifdef FLAC__SSE_SUPPORTED 84 void FLAC__lpc_compute_autocorrelation_intrin_sse_lag_4_old(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
85 void FLAC__lpc_compute_autocorrelation_intrin_sse_lag_8_old(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
86 void FLAC__lpc_compute_autocorrelation_intrin_sse_lag_12_old(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
87 void FLAC__lpc_compute_autocorrelation_intrin_sse_lag_16_old(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
88 void FLAC__lpc_compute_autocorrelation_intrin_sse_lag_4_new(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
89 void FLAC__lpc_compute_autocorrelation_intrin_sse_lag_8_new(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
90 void FLAC__lpc_compute_autocorrelation_intrin_sse_lag_12_new(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
91 void FLAC__lpc_compute_autocorrelation_intrin_sse_lag_16_new(
const FLAC__real data[],
unsigned data_len,
unsigned lag,
FLAC__real autoc[]);
157 # ifdef FLAC__CPU_IA32 158 # ifdef FLAC__HAS_NASM 164 # if (defined FLAC__CPU_IA32 || defined FLAC__CPU_X86_64) && FLAC__HAS_X86INTRIN 165 # ifdef FLAC__SSE2_SUPPORTED 169 # ifdef FLAC__SSE4_1_SUPPORTED 171 void FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_sse41(
const FLAC__int32 *
data,
unsigned data_len,
const FLAC__int32 qlp_coeff[],
unsigned order,
int lp_quantization,
FLAC__int32 residual[]);
173 # ifdef FLAC__AVX2_SUPPORTED 176 void FLAC__lpc_compute_residual_from_qlp_coefficients_wide_intrin_avx2(
const FLAC__int32 *
data,
unsigned data_len,
const FLAC__int32 qlp_coeff[],
unsigned order,
int lp_quantization,
FLAC__int32 residual[]);
201 # ifdef FLAC__CPU_IA32 202 # ifdef FLAC__HAS_NASM 208 # if (defined FLAC__CPU_IA32 || defined FLAC__CPU_X86_64) && FLAC__HAS_X86INTRIN 209 # ifdef FLAC__SSE2_SUPPORTED 212 # ifdef FLAC__SSE4_1_SUPPORTED 218 #ifndef FLAC__INTEGER_ONLY_LIBRARY 246 unsigned FLAC__lpc_compute_best_order(
const double lpc_error[],
unsigned max_order,
unsigned total_samples,
unsigned overhead_bits_per_order);
float FLAC__real
Definition: float.h:55
Configuration options (set of defines)
void FLAC__lpc_window_data(const FLAC__int32 in[], const FLAC__real window[], FLAC__real out[], unsigned data_len)
Definition: lpc.c:66
int FLAC__lpc_quantize_coefficients(const FLAC__real lp_coeff[], unsigned order, unsigned precision, FLAC__int32 qlp_coeff[], int *shift)
Definition: lpc.c:166
void FLAC__lpc_restore_signal_wide(const FLAC__int32 residual[], unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 data[])
struct passwd out
Definition: missing_libc_functions.c:51
GLenum GLint GLint * precision
Definition: glext.h:8206
int32_t FLAC__int32
Definition: ordinals.h:62
void FLAC__lpc_compute_residual_from_qlp_coefficients(const FLAC__int32 *data, unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[])
void FLAC__lpc_restore_signal(const FLAC__int32 residual[], unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 data[])
unsigned FLAC__lpc_compute_best_order(const double lpc_error[], unsigned max_order, unsigned total_samples, unsigned overhead_bits_per_order)
Definition: lpc.c:1333
double FLAC__lpc_compute_expected_bits_per_residual_sample(double lpc_error, unsigned total_samples)
Definition: lpc.c:1305
void FLAC__lpc_compute_autocorrelation(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[])
Definition: lpc.c:73
static l_noret error(LoadState *S, const char *why)
Definition: lundump.c:39
GLuint in
Definition: glext.h:10523
void FLAC__lpc_compute_residual_from_qlp_coefficients_wide(const FLAC__int32 *data, unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 residual[])
GLuint GLdouble GLdouble GLint GLint order
Definition: glext.h:12101
double FLAC__lpc_compute_expected_bits_per_residual_sample_with_error_scale(double lpc_error, double error_scale)
Definition: lpc.c:1316
void FLAC__lpc_compute_lp_coefficients(const FLAC__real autoc[], unsigned *max_order, FLAC__real lp_coeff[][FLAC__MAX_LPC_ORDER], double error[])
Definition: lpc.c:122
#define FLAC__MAX_LPC_ORDER
Definition: format.h:131