FFmpeg  4.0
Macros
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
 

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.

Referenced by imdct12().

◆ 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.

Referenced by compute_stereo(), and decode_init_static().

◆ 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.

Referenced by decode_init().

◆ OUT_FMT_P

#define OUT_FMT_P   AV_SAMPLE_FMT_S16P

Definition at line 37 of file mpegaudiodec_fixed.c.

Referenced by decode_init(), and mp_decode_frame().