1 /* GStreamer Wavpack plugin
2 * Copyright (c) 2005 Arwed v. Merkatz <v.merkatz@gmx.net>
3 * Copyright (c) 2006 Sebastian Dröge <slomo@circular-chaos.org>
5 * gstwavpackcommon.h: common helper functions
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
23 #ifndef __GST_WAVPACK_COMMON_H__
24 #define __GST_WAVPACK_COMMON_H__
27 #include <wavpack/wavpack.h>
36 #define ID_UNIQUE 0x3f
37 #define ID_OPTIONAL_DATA 0x20
38 #define ID_ODD_SIZE 0x40
42 #define ID_ENCODER_INFO 0x1
43 #define ID_DECORR_TERMS 0x2
44 #define ID_DECORR_WEIGHTS 0x3
45 #define ID_DECORR_SAMPLES 0x4
46 #define ID_ENTROPY_VARS 0x5
47 #define ID_HYBRID_PROFILE 0x6
48 #define ID_SHAPING_WEIGHTS 0x7
49 #define ID_FLOAT_INFO 0x8
50 #define ID_INT32_INFO 0x9
51 #define ID_WV_BITSTREAM 0xa
52 #define ID_WVC_BITSTREAM 0xb
53 #define ID_WVX_BITSTREAM 0xc
54 #define ID_CHANNEL_INFO 0xd
56 #define ID_RIFF_HEADER (ID_OPTIONAL_DATA | 0x1)
57 #define ID_RIFF_TRAILER (ID_OPTIONAL_DATA | 0x2)
58 #define ID_REPLAY_GAIN (ID_OPTIONAL_DATA | 0x3)
59 #define ID_CUESHEET (ID_OPTIONAL_DATA | 0x4)
60 #define ID_CONFIG_BLOCK (ID_OPTIONAL_DATA | 0x5)
61 #define ID_MD5_CHECKSUM (ID_OPTIONAL_DATA | 0x6)
62 #define ID_SAMPLE_RATE (ID_OPTIONAL_DATA | 0x7)
65 gboolean gst_wavpack_read_header (WavpackHeader * header, guint8 * buf);
66 gboolean gst_wavpack_read_metadata (GstWavpackMetadata * meta,
67 guint8 * header_data, guint8 ** p_data);