OLD | NEW |
1 /* libFLAC - Free Lossless Audio Codec library | 1 /* libFLAC - Free Lossless Audio Codec library |
2 * Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson | 2 * Copyright (C) 2001-2009 Josh Coalson |
| 3 * Copyright (C) 2011-2014 Xiph.Org Foundation |
3 * | 4 * |
4 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
6 * are met: | 7 * are met: |
7 * | 8 * |
8 * - Redistributions of source code must retain the above copyright | 9 * - Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
10 * | 11 * |
11 * - Redistributions in binary form must reproduce the above copyright | 12 * - Redistributions in binary form must reproduce the above copyright |
12 * notice, this list of conditions and the following disclaimer in the | 13 * notice, this list of conditions and the following disclaimer in the |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 FLAC__APODIZATION_CONNES, | 52 FLAC__APODIZATION_CONNES, |
52 FLAC__APODIZATION_FLATTOP, | 53 FLAC__APODIZATION_FLATTOP, |
53 FLAC__APODIZATION_GAUSS, | 54 FLAC__APODIZATION_GAUSS, |
54 FLAC__APODIZATION_HAMMING, | 55 FLAC__APODIZATION_HAMMING, |
55 FLAC__APODIZATION_HANN, | 56 FLAC__APODIZATION_HANN, |
56 FLAC__APODIZATION_KAISER_BESSEL, | 57 FLAC__APODIZATION_KAISER_BESSEL, |
57 FLAC__APODIZATION_NUTTALL, | 58 FLAC__APODIZATION_NUTTALL, |
58 FLAC__APODIZATION_RECTANGLE, | 59 FLAC__APODIZATION_RECTANGLE, |
59 FLAC__APODIZATION_TRIANGLE, | 60 FLAC__APODIZATION_TRIANGLE, |
60 FLAC__APODIZATION_TUKEY, | 61 FLAC__APODIZATION_TUKEY, |
| 62 FLAC__APODIZATION_PARTIAL_TUKEY, |
| 63 FLAC__APODIZATION_PUNCHOUT_TUKEY, |
61 FLAC__APODIZATION_WELCH | 64 FLAC__APODIZATION_WELCH |
62 } FLAC__ApodizationFunction; | 65 } FLAC__ApodizationFunction; |
63 | 66 |
64 typedef struct { | 67 typedef struct { |
65 FLAC__ApodizationFunction type; | 68 FLAC__ApodizationFunction type; |
66 union { | 69 union { |
67 struct { | 70 struct { |
68 FLAC__real stddev; | 71 FLAC__real stddev; |
69 } gauss; | 72 } gauss; |
70 struct { | 73 struct { |
71 FLAC__real p; | 74 FLAC__real p; |
72 } tukey; | 75 } tukey; |
| 76 struct { |
| 77 FLAC__real p; |
| 78 FLAC__real start; |
| 79 FLAC__real end; |
| 80 } multiple_tukey; |
73 } parameters; | 81 } parameters; |
74 } FLAC__ApodizationSpecification; | 82 } FLAC__ApodizationSpecification; |
75 | 83 |
76 #endif // #ifndef FLAC__INTEGER_ONLY_LIBRARY | 84 #endif // #ifndef FLAC__INTEGER_ONLY_LIBRARY |
77 | 85 |
78 typedef struct FLAC__StreamEncoderProtected { | 86 typedef struct FLAC__StreamEncoderProtected { |
79 FLAC__StreamEncoderState state; | 87 FLAC__StreamEncoderState state; |
80 FLAC__bool verify; | 88 FLAC__bool verify; |
81 FLAC__bool streamable_subset; | 89 FLAC__bool streamable_subset; |
82 FLAC__bool do_md5; | 90 FLAC__bool do_md5; |
(...skipping 18 matching lines...) Expand all Loading... |
101 FLAC__uint64 total_samples_estimate; | 109 FLAC__uint64 total_samples_estimate; |
102 FLAC__StreamMetadata **metadata; | 110 FLAC__StreamMetadata **metadata; |
103 unsigned num_metadata_blocks; | 111 unsigned num_metadata_blocks; |
104 FLAC__uint64 streaminfo_offset, seektable_offset, audio_offset; | 112 FLAC__uint64 streaminfo_offset, seektable_offset, audio_offset; |
105 #if FLAC__HAS_OGG | 113 #if FLAC__HAS_OGG |
106 FLAC__OggEncoderAspect ogg_encoder_aspect; | 114 FLAC__OggEncoderAspect ogg_encoder_aspect; |
107 #endif | 115 #endif |
108 } FLAC__StreamEncoderProtected; | 116 } FLAC__StreamEncoderProtected; |
109 | 117 |
110 #endif | 118 #endif |
OLD | NEW |