1 #ifndef HAD_VBR_H
2 #define HAD_VBR_H
3 
4 /*
5   vbr.h -- Xing VBR tag handling
6   Copyright (C) 2000 Dieter Baron
7 
8   This file is part of malint, an MPEG Audio stream validator.
9   The author can be contacted at <dillo@giga.or.at>
10 
11   This program is free software; you can redistribute it and/or modify
12   it under the terms of the GNU General Public License as published by
13   the Free Software Foundation; either version 2 of the License, or
14   (at your option) any later version.
15 
16   This program is distributed in the hope that it will be useful,
17   but WITHOUT ANY WARRANTY; without even the implied warranty of
18   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19   GNU General Public License for more details.
20 
21   You should have received a copy of the GNU General Public License
22   along with this program; if not, write to the Free Software
23   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 */
25 
26 
27 
28 struct vbr {
29     unsigned long flags;
30     unsigned long frames, bytes;
31     unsigned char toc[100];
32     unsigned long vbr_scale;
33 };
34 
35 #define VBR_FRAMES	0x01
36 #define VBR_BYTES	0x02
37 #define VBR_TOC		0x04
38 #define VBR_VBR_SCALE	0x08
39 
40 struct vbr *vbr_parse(long pos, unsigned char *b, int len);
41 
42 #endif /* vbr.h */
43