annotate src/libsndfile-1.0.25/src/ogg.h @ 11:4d14605afe75

Fixes, ranlibs
author Chris Cannam
date Wed, 20 Mar 2013 15:56:36 +0000
parents c7265573341e
children
rev   line source
Chris@0 1 /*
Chris@0 2 ** Copyright (C) 2008-2011 Erik de Castro Lopo <erikd@mega-nerd.com>
Chris@0 3 **
Chris@0 4 ** This program is free software ; you can redistribute it and/or modify
Chris@0 5 ** it under the terms of the GNU Lesser General Public License as published by
Chris@0 6 ** the Free Software Foundation ; either version 2.1 of the License, or
Chris@0 7 ** (at your option) any later version.
Chris@0 8 **
Chris@0 9 ** This program is distributed in the hope that it will be useful,
Chris@0 10 ** but WITHOUT ANY WARRANTY ; without even the implied warranty of
Chris@0 11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@0 12 ** GNU Lesser General Public License for more details.
Chris@0 13 **
Chris@0 14 ** You should have received a copy of the GNU Lesser General Public License
Chris@0 15 ** along with this program ; if not, write to the Free Software
Chris@0 16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Chris@0 17 */
Chris@0 18
Chris@0 19 #ifndef SF_SRC_OGG_H
Chris@0 20
Chris@0 21 enum
Chris@0 22 { OGG_ANNODEX = 300,
Chris@0 23 OGG_ANXDATA,
Chris@0 24 OGG_FLAC,
Chris@0 25 OGG_FLAC0,
Chris@0 26 OGG_PCM,
Chris@0 27 OGG_SPEEX,
Chris@0 28 OGG_VORBIS,
Chris@0 29 } ;
Chris@0 30
Chris@0 31 typedef struct
Chris@0 32 { /* Sync and verify incoming physical bitstream */
Chris@0 33 ogg_sync_state osync ;
Chris@0 34 /* Take physical pages, weld into a logical stream of packets */
Chris@0 35 ogg_stream_state ostream ;
Chris@0 36 /* One Ogg bitstream page. Vorbis packets are inside */
Chris@0 37 ogg_page opage ;
Chris@0 38 /* One raw packet of data for decode */
Chris@0 39 ogg_packet opacket ;
Chris@0 40 int eos ;
Chris@0 41 int codec ;
Chris@0 42 } OGG_PRIVATE ;
Chris@0 43
Chris@0 44
Chris@0 45 #define readint(buf, base) (((buf [base + 3] << 24) & 0xff000000) | \
Chris@0 46 ((buf [base + 2] <<16) & 0xff0000) | \
Chris@0 47 ((buf [base + 1] << 8) & 0xff00) | \
Chris@0 48 (buf [base] & 0xff))
Chris@0 49
Chris@0 50
Chris@0 51
Chris@0 52 #endif /* SF_SRC_OGG_H */