~ubuntu-branches/ubuntu/saucy/flac/saucy

« back to all changes in this revision

Viewing changes to src/flac/encode.h

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2001-12-10 03:09:22 UTC
  • Revision ID: james.westby@ubuntu.com-20011210030922-0vdtpz6a7mfwefo5
Tags: upstream-1.0.2
ImportĀ upstreamĀ versionĀ 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* flac - Command-line FLAC encoder/decoder
 
2
 * Copyright (C) 2000,2001  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__encode_h
 
20
#define flac__encode_h
 
21
 
 
22
#include "FLAC/ordinals.h"
 
23
 
 
24
typedef struct {
 
25
        FLAC__bool verbose;
 
26
        FLAC__uint64 skip;
 
27
        FLAC__bool verify;
 
28
#ifdef FLAC__HAS_OGG
 
29
        FLAC__bool use_ogg;
 
30
#endif
 
31
        FLAC__bool lax;
 
32
        FLAC__bool do_mid_side;
 
33
        FLAC__bool loose_mid_side;
 
34
        FLAC__bool do_exhaustive_model_search;
 
35
        FLAC__bool do_escape_coding;
 
36
        FLAC__bool do_qlp_coeff_prec_search;
 
37
        unsigned min_residual_partition_order;
 
38
        unsigned max_residual_partition_order;
 
39
        unsigned rice_parameter_search_dist;
 
40
        unsigned max_lpc_order;
 
41
        unsigned blocksize;
 
42
        unsigned qlp_coeff_precision;
 
43
        unsigned padding;
 
44
        char *requested_seek_points;
 
45
        int num_requested_seek_points;
 
46
} encode_options_t;
 
47
 
 
48
typedef struct {
 
49
        encode_options_t common;
 
50
 
 
51
        FLAC__bool is_last_file;
 
52
        FLAC__int32 **align_reservoir;
 
53
        unsigned *align_reservoir_samples;
 
54
        FLAC__bool sector_align;
 
55
} wav_encode_options_t;
 
56
 
 
57
typedef struct {
 
58
        encode_options_t common;
 
59
 
 
60
        FLAC__bool is_big_endian;
 
61
        FLAC__bool is_unsigned_samples;
 
62
        unsigned channels;
 
63
        unsigned bps;
 
64
        unsigned sample_rate;
 
65
} raw_encode_options_t;
 
66
 
 
67
int flac__encode_wav(FILE *infile, long infilesize, const char *infilename, const char *outfilename, const FLAC__byte *lookahead, unsigned lookahead_length, wav_encode_options_t options);
 
68
int flac__encode_raw(FILE *infile, long infilesize, const char *infilename, const char *outfilename, const FLAC__byte *lookahead, unsigned lookahead_length, raw_encode_options_t options);
 
69
 
 
70
#endif