#include config.h
[platform/upstream/flac.git] / src / flac / decode.h
1 /* flac - Command-line FLAC encoder/decoder
2  * Copyright (C) 2000,2001,2002  Josh Coalson
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  */
18
19 #ifndef flac__decode_h
20 #define flac__decode_h
21
22 #include "analyze.h"
23
24 #ifdef HAVE_CONFIG_H
25 #include <config.h>
26 #endif
27
28 typedef struct {
29         FLAC__bool verbose;
30         FLAC__bool continue_through_decode_errors;
31 #ifdef FLAC__HAS_OGG
32         FLAC__bool is_ogg;
33         FLAC__bool use_first_serial_number;
34         long serial_number;
35 #endif
36         FLAC__uint64 skip;
37 } decode_options_t;
38
39 typedef struct {
40         decode_options_t common;
41 } wav_decode_options_t;
42
43 typedef struct {
44         decode_options_t common;
45
46         FLAC__bool is_big_endian;
47         FLAC__bool is_unsigned_samples;
48 } raw_decode_options_t;
49
50 /* outfile == 0 => test only */
51 int flac__decode_wav(const char *infilename, const char *outfilename, FLAC__bool analysis_mode, analysis_options aopts, wav_decode_options_t options);
52 int flac__decode_raw(const char *infilename, const char *outfilename, FLAC__bool analysis_mode, analysis_options aopts, raw_decode_options_t options);
53
54 #endif