FFmpeg
Macros | Variables
mpegaudiodec_float.c File Reference
#include "config.h"
#include "config_components.h"
#include "libavutil/samplefmt.h"
#include "codec_internal.h"
#include "mpegaudio.h"
#include "mpegaudiodec_template.c"

Go to the source code of this file.

Macros

#define USE_FLOATS   1
 
#define SHR(a, b)   ((a)*(1.0f/(1<<(b))))
 
#define FIXR_OLD(a)   ((int)((a) * FRAC_ONE + 0.5))
 
#define FIXR(x)   ((float)(x))
 
#define FIXHR(x)   ((float)(x))
 
#define MULH3(x, y, s)   ((s)*(y)*(x))
 
#define MULLx(x, y, s)   ((y)*(x))
 
#define RENAME(a)   a ## _float
 
#define OUT_FMT   AV_SAMPLE_FMT_FLT
 
#define OUT_FMT_P   AV_SAMPLE_FMT_FLTP
 

Variables

static const float is_table [2][16]
 
static const float csa_table [8][4]
 

Macro Definition Documentation

◆ USE_FLOATS

#define USE_FLOATS   1

Definition at line 26 of file mpegaudiodec_float.c.

◆ SHR

#define SHR (   a,
  b 
)    ((a)*(1.0f/(1<<(b))))

Definition at line 31 of file mpegaudiodec_float.c.

◆ FIXR_OLD

#define FIXR_OLD (   a)    ((int)((a) * FRAC_ONE + 0.5))

Definition at line 32 of file mpegaudiodec_float.c.

◆ FIXR

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

Definition at line 33 of file mpegaudiodec_float.c.

◆ FIXHR

#define FIXHR (   x)    ((float)(x))

Definition at line 34 of file mpegaudiodec_float.c.

◆ MULH3

#define MULH3 (   x,
  y,
  s 
)    ((s)*(y)*(x))

Definition at line 35 of file mpegaudiodec_float.c.

◆ MULLx

#define MULLx (   x,
  y,
  s 
)    ((y)*(x))

Definition at line 36 of file mpegaudiodec_float.c.

◆ RENAME

#define RENAME (   a)    a ## _float

Definition at line 37 of file mpegaudiodec_float.c.

◆ OUT_FMT

#define OUT_FMT   AV_SAMPLE_FMT_FLT

Definition at line 38 of file mpegaudiodec_float.c.

◆ OUT_FMT_P

#define OUT_FMT_P   AV_SAMPLE_FMT_FLTP

Definition at line 39 of file mpegaudiodec_float.c.

Variable Documentation

◆ is_table

const float is_table[2][16]
static
Initial value:
= {
{ 0.000000000000000000e+00, 2.113248705863952637e-01, 3.660253882408142090e-01,
5.000000000000000000e-01, 6.339746117591857910e-01, 7.886751294136047363e-01,
1.000000000000000000e+00 },
{ 1.000000000000000000e+00, 7.886751294136047363e-01, 6.339746117591857910e-01,
5.000000000000000000e-01, 3.660253882408142090e-01, 2.113248705863952637e-01,
0.000000000000000000e+00 }
}

Definition at line 43 of file mpegaudiodec_float.c.

◆ csa_table

const float csa_table[8][4]
static
Initial value:
= {
{ 8.574929237365722656e-01, -5.144957900047302246e-01,
3.429971337318420410e-01, -1.371988654136657715e+00 },
{ 8.817420005798339844e-01, -4.717319905757904053e-01,
4.100100100040435791e-01, -1.353474020957946777e+00 },
{ 9.496286511421203613e-01, -3.133774697780609131e-01,
6.362511515617370605e-01, -1.263006091117858887e+00 },
{ 9.833145737648010254e-01, -1.819131970405578613e-01,
8.014013767242431641e-01, -1.165227770805358887e+00 },
{ 9.955177903175354004e-01, -9.457419067621231079e-02,
9.009436368942260742e-01, -1.090092062950134277e+00 },
{ 9.991605877876281738e-01, -4.096558317542076111e-02,
9.581949710845947266e-01, -1.040126085281372070e+00 },
{ 9.998992085456848145e-01, -1.419856864959001541e-02,
9.857006072998046875e-01, -1.014097809791564941e+00 },
{ 9.999931454658508301e-01, -3.699974622577428818e-03,
9.962931871414184570e-01, -1.003693103790283203e+00 }
}

Definition at line 55 of file mpegaudiodec_float.c.