1159b3361Sopenharmony_ci/*
2159b3361Sopenharmony_ci * Copyright (C) 1999-2010 The L.A.M.E. project
3159b3361Sopenharmony_ci *
4159b3361Sopenharmony_ci * Initially written by Michael Hipp, see also AUTHORS and README.
5159b3361Sopenharmony_ci *
6159b3361Sopenharmony_ci * This library is free software; you can redistribute it and/or
7159b3361Sopenharmony_ci * modify it under the terms of the GNU Library General Public
8159b3361Sopenharmony_ci * License as published by the Free Software Foundation; either
9159b3361Sopenharmony_ci * version 2 of the License, or (at your option) any later version.
10159b3361Sopenharmony_ci *
11159b3361Sopenharmony_ci * This library is distributed in the hope that it will be useful,
12159b3361Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of
13159b3361Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14159b3361Sopenharmony_ci * Library General Public License for more details.
15159b3361Sopenharmony_ci *
16159b3361Sopenharmony_ci * You should have received a copy of the GNU Library General Public
17159b3361Sopenharmony_ci * License along with this library; if not, write to the
18159b3361Sopenharmony_ci * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19159b3361Sopenharmony_ci * Boston, MA 02111-1307, USA.
20159b3361Sopenharmony_ci */
21159b3361Sopenharmony_ci
22159b3361Sopenharmony_ci
23159b3361Sopenharmony_ci#ifndef COMMON_H_INCLUDED
24159b3361Sopenharmony_ci#define COMMON_H_INCLUDED
25159b3361Sopenharmony_ci
26159b3361Sopenharmony_ci#include "mpglib/mpg123.h"
27159b3361Sopenharmony_ci#include "mpglib.h"
28159b3361Sopenharmony_ci
29159b3361Sopenharmony_ciextern const int tabsel_123[2][3][16];
30159b3361Sopenharmony_ciextern const long freqs[9];
31159b3361Sopenharmony_ci
32159b3361Sopenharmony_ciextern real muls[27][64];
33159b3361Sopenharmony_ci
34159b3361Sopenharmony_ci
35159b3361Sopenharmony_ciint     head_check(unsigned long head, int check_layer);
36159b3361Sopenharmony_ciint     decode_header(PMPSTR mp, struct frame *fr, unsigned long newhead);
37159b3361Sopenharmony_ciunsigned int getbits(PMPSTR mp, int number_of_bits);
38159b3361Sopenharmony_ciunsigned int getbits_fast(PMPSTR mp, int number_of_bits);
39159b3361Sopenharmony_ciunsigned char get_leq_8_bits(PMPSTR mp, unsigned int number_of_bits);
40159b3361Sopenharmony_ciunsigned short get_leq_16_bits(PMPSTR mp, unsigned int number_of_bits);
41159b3361Sopenharmony_ciint     set_pointer(PMPSTR mp, long backstep);
42159b3361Sopenharmony_ci
43159b3361Sopenharmony_ci#endif
44