annotate src/flac-1.2.1/src/libFLAC/include/protected/stream_encoder.h @ 44:9894b839b0cb

Updated MSVC
author Chris Cannam
date Tue, 18 Oct 2016 15:58:42 +0100
parents 05aa0afa9217
children
rev   line source
Chris@1 1 /* libFLAC - Free Lossless Audio Codec library
Chris@1 2 * Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson
Chris@1 3 *
Chris@1 4 * Redistribution and use in source and binary forms, with or without
Chris@1 5 * modification, are permitted provided that the following conditions
Chris@1 6 * are met:
Chris@1 7 *
Chris@1 8 * - Redistributions of source code must retain the above copyright
Chris@1 9 * notice, this list of conditions and the following disclaimer.
Chris@1 10 *
Chris@1 11 * - Redistributions in binary form must reproduce the above copyright
Chris@1 12 * notice, this list of conditions and the following disclaimer in the
Chris@1 13 * documentation and/or other materials provided with the distribution.
Chris@1 14 *
Chris@1 15 * - Neither the name of the Xiph.org Foundation nor the names of its
Chris@1 16 * contributors may be used to endorse or promote products derived from
Chris@1 17 * this software without specific prior written permission.
Chris@1 18 *
Chris@1 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Chris@1 20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Chris@1 21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Chris@1 22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
Chris@1 23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
Chris@1 24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
Chris@1 25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
Chris@1 26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
Chris@1 27 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
Chris@1 28 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Chris@1 29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Chris@1 30 */
Chris@1 31
Chris@1 32 #ifndef FLAC__PROTECTED__STREAM_ENCODER_H
Chris@1 33 #define FLAC__PROTECTED__STREAM_ENCODER_H
Chris@1 34
Chris@1 35 #include "FLAC/stream_encoder.h"
Chris@1 36 #if FLAC__HAS_OGG
Chris@1 37 #include "private/ogg_encoder_aspect.h"
Chris@1 38 #endif
Chris@1 39
Chris@1 40 #ifndef FLAC__INTEGER_ONLY_LIBRARY
Chris@1 41
Chris@1 42 #include "private/float.h"
Chris@1 43
Chris@1 44 #define FLAC__MAX_APODIZATION_FUNCTIONS 32
Chris@1 45
Chris@1 46 typedef enum {
Chris@1 47 FLAC__APODIZATION_BARTLETT,
Chris@1 48 FLAC__APODIZATION_BARTLETT_HANN,
Chris@1 49 FLAC__APODIZATION_BLACKMAN,
Chris@1 50 FLAC__APODIZATION_BLACKMAN_HARRIS_4TERM_92DB_SIDELOBE,
Chris@1 51 FLAC__APODIZATION_CONNES,
Chris@1 52 FLAC__APODIZATION_FLATTOP,
Chris@1 53 FLAC__APODIZATION_GAUSS,
Chris@1 54 FLAC__APODIZATION_HAMMING,
Chris@1 55 FLAC__APODIZATION_HANN,
Chris@1 56 FLAC__APODIZATION_KAISER_BESSEL,
Chris@1 57 FLAC__APODIZATION_NUTTALL,
Chris@1 58 FLAC__APODIZATION_RECTANGLE,
Chris@1 59 FLAC__APODIZATION_TRIANGLE,
Chris@1 60 FLAC__APODIZATION_TUKEY,
Chris@1 61 FLAC__APODIZATION_WELCH
Chris@1 62 } FLAC__ApodizationFunction;
Chris@1 63
Chris@1 64 typedef struct {
Chris@1 65 FLAC__ApodizationFunction type;
Chris@1 66 union {
Chris@1 67 struct {
Chris@1 68 FLAC__real stddev;
Chris@1 69 } gauss;
Chris@1 70 struct {
Chris@1 71 FLAC__real p;
Chris@1 72 } tukey;
Chris@1 73 } parameters;
Chris@1 74 } FLAC__ApodizationSpecification;
Chris@1 75
Chris@1 76 #endif // #ifndef FLAC__INTEGER_ONLY_LIBRARY
Chris@1 77
Chris@1 78 typedef struct FLAC__StreamEncoderProtected {
Chris@1 79 FLAC__StreamEncoderState state;
Chris@1 80 FLAC__bool verify;
Chris@1 81 FLAC__bool streamable_subset;
Chris@1 82 FLAC__bool do_md5;
Chris@1 83 FLAC__bool do_mid_side_stereo;
Chris@1 84 FLAC__bool loose_mid_side_stereo;
Chris@1 85 unsigned channels;
Chris@1 86 unsigned bits_per_sample;
Chris@1 87 unsigned sample_rate;
Chris@1 88 unsigned blocksize;
Chris@1 89 #ifndef FLAC__INTEGER_ONLY_LIBRARY
Chris@1 90 unsigned num_apodizations;
Chris@1 91 FLAC__ApodizationSpecification apodizations[FLAC__MAX_APODIZATION_FUNCTIONS];
Chris@1 92 #endif
Chris@1 93 unsigned max_lpc_order;
Chris@1 94 unsigned qlp_coeff_precision;
Chris@1 95 FLAC__bool do_qlp_coeff_prec_search;
Chris@1 96 FLAC__bool do_exhaustive_model_search;
Chris@1 97 FLAC__bool do_escape_coding;
Chris@1 98 unsigned min_residual_partition_order;
Chris@1 99 unsigned max_residual_partition_order;
Chris@1 100 unsigned rice_parameter_search_dist;
Chris@1 101 FLAC__uint64 total_samples_estimate;
Chris@1 102 FLAC__StreamMetadata **metadata;
Chris@1 103 unsigned num_metadata_blocks;
Chris@1 104 FLAC__uint64 streaminfo_offset, seektable_offset, audio_offset;
Chris@1 105 #if FLAC__HAS_OGG
Chris@1 106 FLAC__OggEncoderAspect ogg_encoder_aspect;
Chris@1 107 #endif
Chris@1 108 } FLAC__StreamEncoderProtected;
Chris@1 109
Chris@1 110 #endif