xine-lib  1.2.9
wavpack_combined.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2008 the xine project
3  *
4  * This file is part of xine, a free video player.
5  *
6  * xine is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * xine is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19  *
20  * xine interface to libwavpack by Diego Pettenò <flameeyes@gmail.com>
21  */
22 
23 #include <xine/os_types.h>
24 #include <xine/attributes.h>
25 #include "bswap.h"
26 
27 typedef struct {
28  uint32_t idcode; /* This should always be the string "wvpk" */
29  uint32_t block_size; /* Size of the rest of the frame */
30  uint16_t wv_version; /* Version of the wavpack, 0x0403 should be latest */
31  uint8_t track; /* Unused, has to be 0 */
32  uint8_t index; /* Unused, has to be 0 */
33  uint32_t file_samples; /* (uint32_t)-1 if unknown, else the total number
34  of samples for the file */
35  uint32_t samples_index; /* Index of the first sample in block, from the
36  start of the file */
37  uint32_t samples_count; /* Count of samples in the current frame */
38  uint32_t flags; /* Misc flags */
39  uint32_t decoded_crc32; /* CRC32 of the decoded data */
41 
42 static const uint32_t wvpk_signature = ME_FOURCC('w', 'v', 'p', 'k');
43 
44 void *demux_wv_init_plugin (xine_t *const xine, void *const data);
45 void *decoder_wavpack_init_plugin (xine_t *xine, void *data);
Definition: wavpack_combined.h:27
uint32_t samples_count
Definition: wavpack_combined.h:37
#define ME_FOURCC
Definition: bswap.h:130
uint32_t decoded_crc32
Definition: wavpack_combined.h:39
uint32_t samples_index
Definition: wavpack_combined.h:35
#define XINE_PACKED
Definition: attributes.h:125
uint16_t wv_version
Definition: wavpack_combined.h:30
uint8_t track
Definition: wavpack_combined.h:31
void * decoder_wavpack_init_plugin(xine_t *xine, void *data)
Definition: wavpack_decoder.c:317
void * demux_wv_init_plugin(xine_t *const xine, void *const data)
Definition: wavpack_demuxer.c:365
static const uint32_t wvpk_signature
Definition: wavpack_combined.h:42
Definition: xine_internal.h:81
uint32_t flags
Definition: wavpack_combined.h:38
uint8_t index
Definition: wavpack_combined.h:32
uint32_t idcode
Definition: wavpack_combined.h:28
uint32_t block_size
Definition: wavpack_combined.h:29
uint32_t file_samples
Definition: wavpack_combined.h:33