2003-02-16 12:11:31 +00:00
|
|
|
/*
|
2003-02-16 17:04:39 +00:00
|
|
|
mkvmerge -- utility for splicing together matroska files
|
2003-02-16 12:11:31 +00:00
|
|
|
from component media subtypes
|
|
|
|
|
|
|
|
mp3_common.h
|
|
|
|
|
|
|
|
Written by Moritz Bunkus <moritz@bunkus.org>
|
|
|
|
|
|
|
|
Distributed under the GPL
|
|
|
|
see the file COPYING for details
|
|
|
|
or visit http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*/
|
|
|
|
|
2003-02-16 17:04:39 +00:00
|
|
|
/*!
|
|
|
|
\file
|
2003-03-04 10:16:28 +00:00
|
|
|
\version \$Id: mp3_common.h,v 1.4 2003/03/04 10:16:28 mosu Exp $
|
2003-02-16 17:04:39 +00:00
|
|
|
\brief helper functions for MP3 data
|
|
|
|
\author Moritz Bunkus <moritz @ bunkus.org>
|
|
|
|
*/
|
|
|
|
|
2003-02-16 12:11:31 +00:00
|
|
|
#ifndef __MP3_COMMON_H
|
|
|
|
#define __MP3_COMMON_H
|
|
|
|
|
|
|
|
extern int mp3_tabsel[2][16];
|
|
|
|
extern long mp3_freqs[9];
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int lsf;
|
|
|
|
int mpeg25;
|
|
|
|
int mode;
|
|
|
|
int error_protection;
|
|
|
|
int stereo;
|
|
|
|
int ssize;
|
|
|
|
int bitrate_index;
|
|
|
|
int sampling_frequency;
|
|
|
|
int padding;
|
|
|
|
int framesize;
|
|
|
|
} mp3_header_t;
|
|
|
|
|
2003-03-04 10:16:28 +00:00
|
|
|
int find_mp3_header(unsigned char *buf, int size, unsigned long *_header);
|
2003-02-16 12:11:31 +00:00
|
|
|
void decode_mp3_header(unsigned long header, mp3_header_t *h);
|
|
|
|
|
2003-02-27 09:52:37 +00:00
|
|
|
#endif // __MP3_COMMON_H
|