FFmpeg
Macros | Typedefs
aac_defines.h File Reference

Go to the source code of this file.

Macros

#define USE_FIXED   0
 
#define AAC_RENAME(x)   x
 
#define AAC_RENAME_32(x)   x
 
#define AAC_RENAME2(x)   ff_ ## x
 
#define FIXR(x)   ((float)(x))
 
#define FIXR10(x)   ((float)(x))
 
#define Q23(x)   ((float)(x))
 
#define Q30(x)   ((float)(x))
 
#define Q31(x)   ((float)(x))
 
#define TX_SCALE(x)   ((x) / 32768.0f)
 
#define GET_GAIN(x, y)   powf((x), -(y))
 
#define AAC_MUL16(x, y)   ((x) * (y))
 
#define AAC_MUL26(x, y)   ((x) * (y))
 
#define AAC_MUL30(x, y)   ((x) * (y))
 
#define AAC_MUL31(x, y)   ((x) * (y))
 
#define AAC_MADD28(x, y, a, b)   ((x) * (y) + (a) * (b))
 
#define AAC_MADD30(x, y, a, b)   ((x) * (y) + (a) * (b))
 
#define AAC_MADD30_V8(x, y, a, b, c, d, e, f)
 
#define AAC_MSUB30(x, y, a, b)   ((x) * (y) - (a) * (b))
 
#define AAC_MSUB30_V8(x, y, a, b, c, d, e, f)
 
#define AAC_MSUB31_V3(x, y, z)   ((x) - (y)) * (z)
 
#define AAC_HALF_SUM(x, y)   ((x) + (y)) * 0.5f
 
#define AAC_SRA_R(x, y)   (x)
 

Typedefs

typedef float INTFLOAT
 
typedef float UINTFLOAT
 
typedef float INT64FLOAT
 
typedef float SHORTFLOAT
 
typedef float AAC_FLOAT
 
typedef unsigned AAC_SIGNE
 

Macro Definition Documentation

◆ USE_FIXED

#define USE_FIXED   0

Definition at line 25 of file aac_defines.h.

◆ AAC_RENAME

#define AAC_RENAME (   x)    x

Definition at line 79 of file aac_defines.h.

◆ AAC_RENAME_32

#define AAC_RENAME_32 (   x)    x

Definition at line 80 of file aac_defines.h.

◆ AAC_RENAME2

#define AAC_RENAME2 (   x)    ff_ ## x

Definition at line 81 of file aac_defines.h.

◆ FIXR

#define FIXR (   x)    ((float)(x))

Definition at line 88 of file aac_defines.h.

◆ FIXR10

#define FIXR10 (   x)    ((float)(x))

Definition at line 89 of file aac_defines.h.

◆ Q23

#define Q23 (   x)    ((float)(x))

Definition at line 90 of file aac_defines.h.

◆ Q30

#define Q30 (   x)    ((float)(x))

Definition at line 91 of file aac_defines.h.

◆ Q31

#define Q31 (   x)    ((float)(x))

Definition at line 92 of file aac_defines.h.

◆ TX_SCALE

#define TX_SCALE (   x)    ((x) / 32768.0f)

Definition at line 93 of file aac_defines.h.

◆ GET_GAIN

#define GET_GAIN (   x,
 
)    powf((x), -(y))

Definition at line 94 of file aac_defines.h.

◆ AAC_MUL16

#define AAC_MUL16 (   x,
 
)    ((x) * (y))

Definition at line 95 of file aac_defines.h.

◆ AAC_MUL26

#define AAC_MUL26 (   x,
 
)    ((x) * (y))

Definition at line 96 of file aac_defines.h.

◆ AAC_MUL30

#define AAC_MUL30 (   x,
 
)    ((x) * (y))

Definition at line 97 of file aac_defines.h.

◆ AAC_MUL31

#define AAC_MUL31 (   x,
 
)    ((x) * (y))

Definition at line 98 of file aac_defines.h.

◆ AAC_MADD28

#define AAC_MADD28 (   x,
  y,
  a,
  b 
)    ((x) * (y) + (a) * (b))

Definition at line 99 of file aac_defines.h.

◆ AAC_MADD30

#define AAC_MADD30 (   x,
  y,
  a,
  b 
)    ((x) * (y) + (a) * (b))

Definition at line 100 of file aac_defines.h.

◆ AAC_MADD30_V8

#define AAC_MADD30_V8 (   x,
  y,
  a,
  b,
  c,
  d,
  e,
  f 
)
Value:
((x) * (y) + (a) * (b) + \
(c) * (d) + (e) * (f))

Definition at line 101 of file aac_defines.h.

◆ AAC_MSUB30

#define AAC_MSUB30 (   x,
  y,
  a,
  b 
)    ((x) * (y) - (a) * (b))

Definition at line 103 of file aac_defines.h.

◆ AAC_MSUB30_V8

#define AAC_MSUB30_V8 (   x,
  y,
  a,
  b,
  c,
  d,
  e,
  f 
)
Value:
((x) * (y) + (a) * (b) - \
(c) * (d) - (e) * (f))

Definition at line 104 of file aac_defines.h.

◆ AAC_MSUB31_V3

#define AAC_MSUB31_V3 (   x,
  y,
 
)    ((x) - (y)) * (z)

Definition at line 106 of file aac_defines.h.

◆ AAC_HALF_SUM

#define AAC_HALF_SUM (   x,
 
)    ((x) + (y)) * 0.5f

Definition at line 107 of file aac_defines.h.

◆ AAC_SRA_R

#define AAC_SRA_R (   x,
 
)    (x)

Definition at line 108 of file aac_defines.h.

Typedef Documentation

◆ INTFLOAT

typedef float INTFLOAT

Definition at line 82 of file aac_defines.h.

◆ UINTFLOAT

typedef float UINTFLOAT

Definition at line 83 of file aac_defines.h.

◆ INT64FLOAT

typedef float INT64FLOAT

Definition at line 84 of file aac_defines.h.

◆ SHORTFLOAT

typedef float SHORTFLOAT

Definition at line 85 of file aac_defines.h.

◆ AAC_FLOAT

typedef float AAC_FLOAT

Definition at line 86 of file aac_defines.h.

◆ AAC_SIGNE

typedef unsigned AAC_SIGNE

Definition at line 87 of file aac_defines.h.

b
#define b
Definition: input.c:41
c
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
Definition: undefined.txt:32
f
f
Definition: af_crystalizer.c:122
a
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
Definition: undefined.txt:41
d
d
Definition: ffmpeg_filter.c:156