#include "speex/speex_types.h"
Go to the source code of this file.
Defines | |
#define | ABS(x) ((x) < 0 ? (-(x)) : (x)) |
#define | ABS16(x) ((x) < 0 ? (-(x)) : (x)) |
#define | MAX16(a, b) ((a) > (b) ? (a) : (b)) |
#define | ABS32(x) ((x) < 0 ? (-(x)) : (x)) |
#define | Q15ONE 1.0f |
#define | LPC_SCALING 1.f |
#define | SIG_SCALING 1.f |
#define | LSP_SCALING 1.f |
#define | GAMMA_SCALING 1.f |
#define | GAIN_SCALING 1.f |
#define | GAIN_SCALING_1 1.f |
#define | LPC_SHIFT 0 |
#define | LSP_SHIFT 0 |
#define | SIG_SHIFT 0 |
#define | VERY_SMALL 1e-15f |
#define | VERY_LARGE32 1e15f |
#define | VERY_LARGE16 1e15f |
#define | QCONST16(x, bits) (x) |
#define | QCONST32(x, bits) (x) |
#define | NEG16(x) (-(x)) |
#define | NEG32(x) (-(x)) |
#define | EXTRACT16(x) (x) |
#define | EXTEND32(x) (x) |
#define | SHR16(a, shift) (a) |
#define | SHL16(a, shift) (a) |
#define | SHR32(a, shift) (a) |
#define | SHL32(a, shift) (a) |
#define | PSHR16(a, shift) (a) |
#define | PSHR32(a, shift) (a) |
#define | SATURATE16(x, a) (x) |
#define | SATURATE32(x, a) (x) |
#define | PSHR(a, shift) (a) |
#define | SHR(a, shift) (a) |
#define | SHL(a, shift) (a) |
#define | SATURATE(x, a) (x) |
#define | ADD16(a, b) ((a)+(b)) |
#define | SUB16(a, b) ((a)-(b)) |
#define | ADD32(a, b) ((a)+(b)) |
#define | SUB32(a, b) ((a)-(b)) |
#define | ADD64(a, b) ((a)+(b)) |
#define | MULT16_16_16(a, b) ((a)*(b)) |
#define | MULT16_16(a, b) ((spx_word32_t)(a)*(spx_word32_t)(b)) |
#define | MAC16_16(c, a, b) ((c)+(spx_word32_t)(a)*(spx_word32_t)(b)) |
#define | MULT16_32_Q11(a, b) ((a)*(b)) |
#define | MULT16_32_Q13(a, b) ((a)*(b)) |
#define | MULT16_32_Q14(a, b) ((a)*(b)) |
#define | MULT16_32_Q15(a, b) ((a)*(b)) |
#define | MAC16_32_Q11(c, a, b) ((c)+(a)*(b)) |
#define | MAC16_32_Q15(c, a, b) ((c)+(a)*(b)) |
#define | MAC16_16_Q11(c, a, b) ((c)+(a)*(b)) |
#define | MAC16_16_Q13(c, a, b) ((c)+(a)*(b)) |
#define | MULT16_16_Q11_32(a, b) ((a)*(b)) |
#define | MULT16_16_Q13(a, b) ((a)*(b)) |
#define | MULT16_16_Q14(a, b) ((a)*(b)) |
#define | MULT16_16_Q15(a, b) ((a)*(b)) |
#define | MULT16_16_P15(a, b) ((a)*(b)) |
#define | DIV32_16(a, b) ((a)/(b)) |
#define | DIV32(a, b) ((a)/(b)) |
#define | BYTES_PER_CHAR 1 |
#define | BITS_PER_CHAR 8 |
#define | LOG2_BITS_PER_CHAR 3 |
Typedefs | |
typedef float | spx_mem_t |
typedef float | spx_coef_t |
typedef float | spx_lsp_t |
typedef float | spx_sig_t |
typedef float | spx_word16_t |
typedef float | spx_word32_t |
typedef float | spx_word64_t |
#define ABS | ( | x | ) | ((x) < 0 ? (-(x)) : (x)) |
Absolute integer value.
Referenced by nb_decode(), and nb_encode().
#define ABS16 | ( | x | ) | ((x) < 0 ? (-(x)) : (x)) |
Absolute 16-bit value.
#define ABS32 | ( | x | ) | ((x) < 0 ? (-(x)) : (x)) |
Absolute 32-bit value.
#define ADD16 | ( | a, | |||
b | ) | ((a)+(b)) |
Referenced by _spx_lpc(), comb_filter(), compute_impulse_response(), lpc_to_lsp(), lsp_unquant_nb(), nb_decode(), nb_encode(), pitch_unquant_3tap(), qmf_decomp(), and sb_encode().
#define ADD32 | ( | a, | |||
b | ) | ((a)+(b)) |
#define ADD64 | ( | a, | |||
b | ) | ((a)+(b)) |
#define BITS_PER_CHAR 8 |
#define BYTES_PER_CHAR 1 |
Referenced by speex_bits_read_whole_bytes(), speex_bits_write(), speex_bits_write_whole_bytes(), and speex_jitter_put().
#define DIV32 | ( | a, | |||
b | ) | ((a)/(b)) |
Referenced by comb_filter(), nb_decode(), and open_loop_nbest_pitch().
#define DIV32_16 | ( | a, | |||
b | ) | ((a)/(b)) |
#define EXTEND32 | ( | x | ) | (x) |
#define EXTRACT16 | ( | x | ) | (x) |
Referenced by compute_impulse_response(), nb_decode(), nb_encode(), and split_cb_search_shape_sign().
#define GAIN_SCALING 1.f |
Referenced by nb_decode().
#define GAIN_SCALING_1 1.f |
Referenced by comb_filter(), forced_pitch_quant(), forced_pitch_unquant(), and nb_encode().
#define GAMMA_SCALING 1.f |
Referenced by nb_decode().
#define LOG2_BITS_PER_CHAR 3 |
#define LPC_SCALING 1.f |
Referenced by compute_impulse_response(), lpc_to_lsp(), nb_decode(), sb_decode(), and sb_encode().
#define LPC_SHIFT 0 |
Referenced by compute_impulse_response().
#define LSP_SCALING 1.f |
Referenced by lsp_enforce_margin(), and nb_encoder_init().
#define LSP_SHIFT 0 |
Referenced by nb_decode().
#define MAC16_16 | ( | c, | |||
a, | |||||
b | ) | ((c)+(spx_word32_t)(a)*(spx_word32_t)(b)) |
Referenced by compute_impulse_response(), split_cb_search_shape_sign(), vq_nbest(), and vq_nbest_sign().
#define MAC16_16_Q11 | ( | c, | |||
a, | |||||
b | ) | ((c)+(a)*(b)) |
#define MAC16_16_Q13 | ( | c, | |||
a, | |||||
b | ) | ((c)+(a)*(b)) |
Referenced by _spx_lpc().
#define MAC16_32_Q11 | ( | c, | |||
a, | |||||
b | ) | ((c)+(a)*(b)) |
#define MAC16_32_Q15 | ( | c, | |||
a, | |||||
b | ) | ((c)+(a)*(b)) |
Referenced by filter_mem2(), fir_mem2(), iir_mem2(), and speex_echo_cancel().
#define MAX16 | ( | a, | |||
b | ) | ((a) > (b) ? (a) : (b)) |
Maximum 16-bit value.
#define MULT16_16 | ( | a, | |||
b | ) | ((spx_word32_t)(a)*(spx_word32_t)(b)) |
#define MULT16_16_16 | ( | a, | |||
b | ) | ((a)*(b)) |
#define MULT16_16_P15 | ( | a, | |||
b | ) | ((a)*(b)) |
Referenced by bw_lpc(), and speex_echo_cancel().
#define MULT16_16_Q11_32 | ( | a, | |||
b | ) | ((a)*(b)) |
#define MULT16_16_Q13 | ( | a, | |||
b | ) | ((a)*(b)) |
Referenced by _spx_lpc().
#define MULT16_16_Q14 | ( | a, | |||
b | ) | ((a)*(b)) |
Referenced by lpc_to_lsp(), nb_encode(), pitch_unquant_3tap(), and sb_encode().
#define MULT16_16_Q15 | ( | a, | |||
b | ) | ((a)*(b)) |
Referenced by comb_filter(), lpc_to_lsp(), nb_encode(), sb_encode(), and speex_echo_cancel().
#define MULT16_32_Q11 | ( | a, | |||
b | ) | ((a)*(b)) |
#define MULT16_32_Q13 | ( | a, | |||
b | ) | ((a)*(b)) |
#define MULT16_32_Q14 | ( | a, | |||
b | ) | ((a)*(b)) |
Referenced by nb_decode().
#define MULT16_32_Q15 | ( | a, | |||
b | ) | ((a)*(b)) |
Referenced by comb_filter(), filter_mem2(), fir_mem2(), iir_mem2(), nb_decode(), pitch_unquant_3tap(), sb_decode(), sb_encode(), and speex_echo_cancel().
#define NEG16 | ( | x | ) | (-(x)) |
Referenced by compute_impulse_response(), and spx_cos().
#define NEG32 | ( | x | ) | (-(x)) |
Referenced by _spx_lpc(), filter_mem2(), iir_mem2(), split_cb_search_shape_sign(), and split_cb_shape_sign_unquant().
#define PSHR | ( | a, | |||
shift | ) | (a) |
Referenced by qmf_decomp(), and sb_encode().
#define PSHR16 | ( | a, | |||
shift | ) | (a) |
Referenced by lpc_to_lsp(), lsp_quant_high(), lsp_quant_lbr(), lsp_quant_nb(), and nb_decode().
#define PSHR32 | ( | a, | |||
shift | ) | (a) |
Referenced by compute_impulse_response(), lpc_to_lsp(), nb_decode(), speex_echo_cancel(), and split_cb_search_shape_sign().
#define Q15ONE 1.0f |
#define QCONST16 | ( | x, | |||
bits | ) | (x) |
Referenced by speex_echo_cancel(), speex_echo_ctl(), and speex_echo_state_init().
#define QCONST32 | ( | x, | |||
bits | ) | (x) |
Referenced by speex_echo_cancel().
#define SATURATE | ( | x, | |||
a | ) | (x) |
Referenced by filter_mem2(), fir_mem2(), iir_mem2(), qmf_decomp(), and sb_encode().
#define SATURATE16 | ( | x, | |||
a | ) | (x) |
#define SATURATE32 | ( | x, | |||
a | ) | (x) |
#define SHL | ( | a, | |||
shift | ) | (a) |
Referenced by filter_mem2(), iir_mem2(), sb_decode(), sb_encode(), and speex_echo_cancel().
#define SHL16 | ( | a, | |||
shift | ) | (a) |
Referenced by comb_filter(), compute_impulse_response(), pitch_unquant_3tap(), speex_echo_cancel(), and speex_echo_state_init().
#define SHL32 | ( | a, | |||
shift | ) | (a) |
#define SHR | ( | a, | |||
shift | ) | (a) |
Referenced by fir_mem_up(), nb_encode(), qmf_decomp(), sb_decode(), sb_encode(), and vq_nbest().
#define SHR16 | ( | a, | |||
shift | ) | (a) |
Referenced by nb_decode(), open_loop_nbest_pitch(), and pitch_unquant_3tap().
#define SHR32 | ( | a, | |||
shift | ) | (a) |
Referenced by _spx_autocorr(), nb_decode(), nb_encode(), open_loop_nbest_pitch(), speex_echo_cancel(), split_cb_search_shape_sign(), vq_nbest(), and vq_nbest_sign().
#define SIG_SCALING 1.f |
Referenced by nb_decode(), nb_encoder_init(), sb_decode(), sb_encode(), sb_encoder_init(), and speex_rand_vec().
#define SIG_SHIFT 0 |
Referenced by fir_mem_up(), nb_decode(), nb_encode(), sb_decode(), sb_encode(), split_cb_search_shape_sign(), and split_cb_shape_sign_unquant().
#define SUB16 | ( | a, | |||
b | ) | ((a)-(b)) |
Referenced by _spx_lpc(), comb_filter(), lpc_to_lsp(), lsp_quant_high(), lsp_quant_lbr(), lsp_quant_nb(), qmf_decomp(), and speex_echo_cancel().
#define SUB32 | ( | a, | |||
b | ) | ((a)-(b)) |
Referenced by _spx_lpc(), filter_mem2(), lpc_to_lsp(), nb_decode(), open_loop_nbest_pitch(), qmf_decomp(), speex_echo_cancel(), split_cb_search_shape_sign(), and vq_nbest().
#define VERY_LARGE16 1e15f |
#define VERY_LARGE32 1e15f |
Referenced by split_cb_search_shape_sign().
#define VERY_SMALL 1e-15f |
Referenced by compute_impulse_response(), nb_decode(), pitch_unquant_3tap(), sb_decode(), and sb_encode().
typedef float spx_coef_t |
typedef float spx_lsp_t |
typedef float spx_mem_t |
typedef float spx_sig_t |
typedef float spx_word16_t |
typedef float spx_word32_t |
typedef float spx_word64_t |