| 1 | /* |
| 2 | * mad - MPEG audio decoder |
| 3 | * Copyright (C) 2000-2001 Robert Leslie |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | * |
| 19 | * $superduper: xing.h,v 1.2 2002/10/27 13:03:02 sam Exp $ |
| 20 | */ |
| 21 | #ifndef XING_H |
| 22 | #define XING_H |
| 23 | |
| 24 | #include "mad.h" |
| 25 | |
| 26 | struct xing |
| 27 | { |
| 28 | long flags; /* valid fields (see below) */ |
| 29 | unsigned long frames; /* total number of frames */ |
| 30 | unsigned long bytes; /* total number of bytes */ |
| 31 | unsigned char toc[100]; /* 100-point seek table */ |
| 32 | long scale; /* ?? */ |
| 33 | }; |
| 34 | |
| 35 | enum |
| 36 | { |
| 37 | XING_FRAMES = 0x00000001L, |
| 38 | XING_BYTES = 0x00000002L, |
| 39 | XING_TOC = 0x00000004L, |
| 40 | XING_SCALE = 0x00000008L |
| 41 | }; |
| 42 | |
| 43 | void xing_init (struct xing *); |
| 44 | |
| 45 | #define xing_finish(xing) /* nothing */ |
| 46 | |
| 47 | int xing_parse (struct xing *, struct mad_bitptr, unsigned int); |
| 48 | |
| 49 | #endif |