summaryrefslogtreecommitdiff
path: root/apps/codecs/libwavpack/wavpack.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libwavpack/wavpack.h')
-rw-r--r--apps/codecs/libwavpack/wavpack.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/codecs/libwavpack/wavpack.h b/apps/codecs/libwavpack/wavpack.h
index 593af7831d..3128328e49 100644
--- a/apps/codecs/libwavpack/wavpack.h
+++ b/apps/codecs/libwavpack/wavpack.h
@@ -76,11 +76,19 @@ typedef struct {
76#define SRATE_LSB 23 76#define SRATE_LSB 23
77#define SRATE_MASK (0xfL << SRATE_LSB) 77#define SRATE_MASK (0xfL << SRATE_LSB)
78 78
79#define FALSE_STEREO 0x40000000 // block is stereo, but data is mono
80
79#define IGNORED_FLAGS 0x18000000 // reserved, but ignore if encountered 81#define IGNORED_FLAGS 0x18000000 // reserved, but ignore if encountered
80#define NEW_SHAPING 0x20000000 // use IIR filter for negative shaping 82#define NEW_SHAPING 0x20000000 // use IIR filter for negative shaping
81#define UNKNOWN_FLAGS 0xC0000000 // also reserved, but refuse decode if 83#define UNKNOWN_FLAGS 0x80000000 // also reserved, but refuse decode if
82 // encountered 84 // encountered
83 85
86#define MONO_DATA (MONO_FLAG | FALSE_STEREO)
87
88#define MIN_STREAM_VERS 0x402 // lowest stream version we'll decode
89#define MAX_STREAM_VERS 0x410 // highest stream version we'll decode
90#define CUR_STREAM_VERS 0x403 // stream version we are writing now
91
84//////////////////////////// WavPack Metadata ///////////////////////////////// 92//////////////////////////// WavPack Metadata /////////////////////////////////
85 93
86// This is an internal representation of metadata. 94// This is an internal representation of metadata.
@@ -426,5 +434,6 @@ void WavpackAddWrapper (WavpackContext *wpc, void *data, uint32_t bcount);
426int WavpackStartBlock (WavpackContext *wpc, uchar *begin, uchar *end); 434int WavpackStartBlock (WavpackContext *wpc, uchar *begin, uchar *end);
427int WavpackPackSamples (WavpackContext *wpc, int32_t *sample_buffer, uint32_t sample_count); 435int WavpackPackSamples (WavpackContext *wpc, int32_t *sample_buffer, uint32_t sample_count);
428uint32_t WavpackFinishBlock (WavpackContext *wpc); 436uint32_t WavpackFinishBlock (WavpackContext *wpc);
429 437void WavpackUpdateNumSamples (WavpackContext *wpc, void *first_block);
438void *WavpackGetWrapperLocation (void *first_block);
430 439