Asterisk - The Open Source Telephony Project  18.5.0
Macros | Typedefs
arch.h File Reference

Various architecture definitions Speex. More...

#include "speex/speexdsp_types.h"
#include "fixed_generic.h"
Include dependency graph for arch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ABS(x)   ((x) < 0 ? (-(x)) : (x))
 
#define ABS16(x)   ((x) < 0 ? (-(x)) : (x))
 
#define ABS32(x)   ((x) < 0 ? (-(x)) : (x))
 
#define BITS_PER_CHAR   8
 
#define BYTES_PER_CHAR   1
 
#define FIXED_POINT
 
#define GAIN_SCALING   64
 
#define GAIN_SCALING_1   0.015625
 
#define GAIN_SHIFT   6
 
#define GAMMA_SCALING   32768.
 
#define LOG2_BITS_PER_CHAR   3
 
#define LPC_SCALING   8192
 
#define LPC_SHIFT   13
 
#define LSP_SCALING   8192.
 
#define LSP_SHIFT   13
 
#define MAX16(a, b)   ((a) > (b) ? (a) : (b))
 
#define MAX32(a, b)   ((a) > (b) ? (a) : (b))
 
#define MIN16(a, b)   ((a) < (b) ? (a) : (b))
 
#define MIN32(a, b)   ((a) < (b) ? (a) : (b))
 
#define Q15_ONE   ((spx_word16_t)32767)
 
#define Q15ONE   32767
 
#define SIG_SCALING   16384
 
#define SIG_SHIFT   14
 
#define VERY_LARGE16   ((spx_word16_t)32767)
 
#define VERY_LARGE32   ((spx_word32_t)2147483647)
 
#define VERY_SMALL   0
 

Typedefs

typedef spx_word16_t spx_coef_t
 
typedef spx_word16_t spx_lsp_t
 
typedef spx_word32_t spx_mem_t
 
typedef spx_word32_t spx_sig_t
 
typedef spx_int16_t spx_word16_t
 
typedef spx_int32_t spx_word32_t
 

Detailed Description

Various architecture definitions Speex.

Definition in file arch.h.

Macro Definition Documentation

◆ ABS

#define ABS (   x)    ((x) < 0 ? (-(x)) : (x))

Absolute integer value.

Definition at line 75 of file arch.h.

◆ ABS16

#define ABS16 (   x)    ((x) < 0 ? (-(x)) : (x))

Absolute 16-bit value.

Definition at line 76 of file arch.h.

◆ ABS32

#define ABS32 (   x)    ((x) < 0 ? (-(x)) : (x))

Absolute 32-bit value.

Definition at line 79 of file arch.h.

◆ BITS_PER_CHAR

#define BITS_PER_CHAR   8

Definition at line 222 of file arch.h.

◆ BYTES_PER_CHAR

#define BYTES_PER_CHAR   1

Definition at line 221 of file arch.h.

◆ FIXED_POINT

#define FIXED_POINT

Definition at line 38 of file arch.h.

Referenced by speex_resampler_process_float().

◆ GAIN_SCALING

#define GAIN_SCALING   64

Definition at line 98 of file arch.h.

◆ GAIN_SCALING_1

#define GAIN_SCALING_1   0.015625

Definition at line 99 of file arch.h.

◆ GAIN_SHIFT

#define GAIN_SHIFT   6

Definition at line 104 of file arch.h.

◆ GAMMA_SCALING

#define GAMMA_SCALING   32768.

Definition at line 97 of file arch.h.

◆ LOG2_BITS_PER_CHAR

#define LOG2_BITS_PER_CHAR   3

Definition at line 223 of file arch.h.

◆ LPC_SCALING

#define LPC_SCALING   8192

Definition at line 94 of file arch.h.

◆ LPC_SHIFT

#define LPC_SHIFT   13

Definition at line 101 of file arch.h.

◆ LSP_SCALING

#define LSP_SCALING   8192.

Definition at line 96 of file arch.h.

◆ LSP_SHIFT

#define LSP_SHIFT   13

Definition at line 102 of file arch.h.

◆ MAX16

#define MAX16 (   a,
  b 
)    ((a) > (b) ? (a) : (b))

Maximum 16-bit value.

Definition at line 78 of file arch.h.

◆ MAX32

#define MAX32 (   a,
  b 
)    ((a) > (b) ? (a) : (b))

Maximum 32-bit value.

Definition at line 81 of file arch.h.

◆ MIN16

#define MIN16 (   a,
  b 
)    ((a) < (b) ? (a) : (b))

Maximum 16-bit value.

Definition at line 77 of file arch.h.

◆ MIN32

#define MIN32 (   a,
  b 
)    ((a) < (b) ? (a) : (b))

Maximum 32-bit value.

Definition at line 80 of file arch.h.

◆ Q15_ONE

#define Q15_ONE   ((spx_word16_t)32767)

Definition at line 109 of file arch.h.

Referenced by cubic_coef().

◆ Q15ONE

#define Q15ONE   32767

Definition at line 92 of file arch.h.

◆ SIG_SCALING

#define SIG_SCALING   16384

Definition at line 95 of file arch.h.

◆ SIG_SHIFT

#define SIG_SHIFT   14

Definition at line 103 of file arch.h.

◆ VERY_LARGE16

#define VERY_LARGE16   ((spx_word16_t)32767)

Definition at line 108 of file arch.h.

◆ VERY_LARGE32

#define VERY_LARGE32   ((spx_word32_t)2147483647)

Definition at line 107 of file arch.h.

◆ VERY_SMALL

#define VERY_SMALL   0

Definition at line 106 of file arch.h.

Typedef Documentation

◆ spx_coef_t

Definition at line 88 of file arch.h.

◆ spx_lsp_t

Definition at line 89 of file arch.h.

◆ spx_mem_t

Definition at line 87 of file arch.h.

◆ spx_sig_t

Definition at line 90 of file arch.h.

◆ spx_word16_t

typedef spx_int16_t spx_word16_t

Definition at line 85 of file arch.h.

◆ spx_word32_t

typedef spx_int32_t spx_word32_t

Definition at line 86 of file arch.h.