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

Go to the source code of this file.

Macros

#define USE_FLOATS   0
 
#define SHR(a, b)   (((int)(a))>>(b))
 
#define FIXR_OLD(a)   ((int)((a) * FRAC_ONE + 0.5))
 
#define FIXR(a)   ((int)((a) * FRAC_ONE + 0.5))
 
#define FIXHR(a)   ((int)((a) * (1LL<<32) + 0.5))
 
#define MULH3(x, y, s)   MULH((s)*(x), y)
 
#define MULLx(x, y, s)   MULL((int)(x),(y),s)
 
#define RENAME(a)   a ## _fixed
 
#define OUT_FMT   AV_SAMPLE_FMT_S16
 
#define OUT_FMT_P   AV_SAMPLE_FMT_S16P
 

Variables

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

Macro Definition Documentation

◆ USE_FLOATS

#define USE_FLOATS   0

Definition at line 24 of file mpegaudiodec_fixed.c.

◆ SHR

#define SHR (   a,
  b 
)    (((int)(a))>>(b))

Definition at line 28 of file mpegaudiodec_fixed.c.

◆ FIXR_OLD

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

Definition at line 30 of file mpegaudiodec_fixed.c.

◆ FIXR

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

Definition at line 31 of file mpegaudiodec_fixed.c.

◆ FIXHR

#define FIXHR (   a)    ((int)((a) * (1LL<<32) + 0.5))

Definition at line 32 of file mpegaudiodec_fixed.c.

◆ MULH3

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

Definition at line 33 of file mpegaudiodec_fixed.c.

◆ MULLx

#define MULLx (   x,
  y,
  s 
)    MULL((int)(x),(y),s)

Definition at line 34 of file mpegaudiodec_fixed.c.

◆ RENAME

#define RENAME (   a)    a ## _fixed

Definition at line 35 of file mpegaudiodec_fixed.c.

◆ OUT_FMT

#define OUT_FMT   AV_SAMPLE_FMT_S16

Definition at line 36 of file mpegaudiodec_fixed.c.

◆ OUT_FMT_P

#define OUT_FMT_P   AV_SAMPLE_FMT_S16P

Definition at line 37 of file mpegaudiodec_fixed.c.

Variable Documentation

◆ is_table

const int32_t is_table[2][16]
static
Initial value:
= {
{ 0x000000, 0x1B0CB1, 0x2ED9EC, 0x400000, 0x512614, 0x64F34F, 0x800000 },
{ 0x800000, 0x64F34F, 0x512614, 0x400000, 0x2ED9EC, 0x1B0CB1, 0x000000 }
}

Definition at line 41 of file mpegaudiodec_fixed.c.

Referenced by compute_stereo().

◆ csa_table

const int32_t csa_table[8][4]
static
Initial value:
= {
{ 0x36E129F8, 0xDF128056, 0x15F3AA4E, 0xA831565E },
{ 0x386E75F2, 0xE1CF24A5, 0x1A3D9A97, 0xA960AEB3 },
{ 0x3CC6B73A, 0xEBF19FA6, 0x28B856E0, 0xAF2AE86C },
{ 0x3EEEA054, 0xF45B88BC, 0x334A2910, 0xB56CE868 },
{ 0x3FB6905C, 0xF9F27F18, 0x39A90F74, 0xBA3BEEBC },
{ 0x3FF23F20, 0xFD60D1E4, 0x3D531104, 0xBD6E92C4 },
{ 0x3FFE5932, 0xFF175EE4, 0x3F15B816, 0xBF1905B2 },
{ 0x3FFFE34A, 0xFFC3612F, 0x3FC34479, 0xBFC37DE5 }
}

Definition at line 48 of file mpegaudiodec_fixed.c.