27 for(ba=balloc; ba !=
end; ++ba)
37#define NEED_BITS(fr, num) \
38 if((fr)->bits_avail < num) \
41 error2("%u bits needed, %li available", num, (fr)->bits_avail); \
47 unsigned int *ba=balloc;
48 unsigned int *sca = (
unsigned int *) scale_index;
54 unsigned int needbits = jsbound*2*4 + (
SBLIMIT-jsbound)*4;
58 for(
i=0;
i<jsbound;
i++)
62 needbits += ((ba[0]?1:0)+(ba[1]?1:0))*6;
68 needbits += (*ba?1:0)*12;
76 for(
i=0;
i<jsbound;
i++)
92 unsigned int needbits =
SBLIMIT*4;
99 needbits += (*ba?1:0)*6;
116#define MINUS_SHIFT(n) ( (int)(((unsigned int)-1)<<(n)) )
123 register unsigned int *ba;
124 register unsigned int *sca = (
unsigned int *) scale_index;
128 unsigned int needbits = 0;
130 register real *f0 = fraction[0];
131 register real *
f1 = fraction[1];
134 for(sample=smpb,
i=0;
i<jsbound;
i++)
147 for(sample=smpb,
i=0;
i<jsbound;
i++)
149 if((
n = *ba++)) *sample++ =
getbits(fr,
n+1);
151 if((
n = *ba++)) *sample++ =
getbits(fr,
n+1);
158 for(sample=smpb,
i=0;
i<jsbound;
i++)
179 fraction[0][
i] = fraction[1][
i] = 0.0;
183 unsigned int needbits = 0;
184 register real *f0 = fraction[0];
215 unsigned int balloc[2*
SBLIMIT];
216 unsigned int scale_index[2][
SBLIMIT];
228 error(
"Aborting layer I decoding after step one.");
234 if(
I_step_two(fraction,balloc,scale_index,fr))
237 error(
"Aborting layer I decoding after step two.");
242 clip += (fr->
synth_mono)(fraction[single], fr);
244 clip += (fr->
synth_stereo)(fraction[0], fraction[1], fr);
static unsigned int getbits(mpg123_handle *fr, int number_of_bits)
#define getbits_fast(fr, nob)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define NEED_BITS(fr, num)
static int I_step_two(real fraction[2][SBLIMIT], unsigned int balloc[2 *SBLIMIT], unsigned int scale_index[2][SBLIMIT], mpg123_handle *fr)
static int check_balloc(mpg123_handle *fr, unsigned int *balloc, unsigned int *end)
static int I_step_one(unsigned int balloc[], unsigned int scale_index[2][SBLIMIT], mpg123_handle *fr)
#define REAL_MUL_SCALE_LAYER12(x, y)
#define DOUBLE_TO_REAL_15(x)
#define DOUBLE_TO_REAL(x)
#define MPG_MD_JOINT_STEREO
func_synth_mono synth_mono
func_synth_stereo synth_stereo
struct mpg123_handle_struct::@3460 layer1