xine-lib  1.2.10
wavpack_combined.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2018 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 *xine, const void *data);
45 void *decoder_wavpack_init_plugin (xine_t *xine, const void *data);
xine_s
Definition: xine_internal.h:80
wvheader_t::file_samples
uint32_t file_samples
Definition: wavpack_combined.h:33
PLUGIN_AUDIO_DECODER
#define PLUGIN_AUDIO_DECODER
Definition: xine_plugin.h:32
ME_FOURCC
#define ME_FOURCC
Definition: bswap.h:148
BUF_AUDIO_WAVPACK
#define BUF_AUDIO_WAVPACK
Definition: buffer.h:270
demuxer_info_t
Definition: xine_plugin.h:88
EXPORTED
const plugin_info_t xine_plugin_info[] EXPORTED
Definition: wavpack_combined.c:43
audio_types
static const uint32_t audio_types[]
Definition: wavpack_combined.c:34
wvheader_t::index
uint8_t index
Definition: wavpack_combined.h:32
attributes.h
wavpack_combined.h
wvpk_signature
static const uint32_t wvpk_signature
Definition: wavpack_combined.h:42
NULL
NULL
Definition: xine_plugin.c:78
wvheader_t
Definition: wavpack_combined.h:27
wvheader_t::track
uint8_t track
Definition: wavpack_combined.h:31
decoder_info_t
Definition: xine_plugin.h:77
XINE_VERSION_CODE
#define XINE_VERSION_CODE
Definition: xine_internal.h:57
XINE_PACKED
#define XINE_PACKED
Definition: attributes.h:145
wvheader_t::idcode
uint32_t idcode
Definition: wavpack_combined.h:28
demux_info_wv
static const demuxer_info_t demux_info_wv
Definition: wavpack_combined.c:30
PLUGIN_DEMUX
#define PLUGIN_DEMUX
Definition: xine_plugin.h:31
demux_wv_init_plugin
void * demux_wv_init_plugin(xine_t *xine, const void *data)
Definition: wavpack_demuxer.c:362
wvheader_t::samples_index
uint32_t samples_index
Definition: wavpack_combined.h:35
wvheader_t::block_size
uint32_t block_size
Definition: wavpack_combined.h:29
os_types.h
decoder_wavpack_init_plugin
void * decoder_wavpack_init_plugin(xine_t *xine, const void *data)
Definition: wavpack_decoder.c:315
bswap.h
decoder_info_wv
static const decoder_info_t decoder_info_wv
Definition: wavpack_combined.c:38
PLUGIN_NONE
#define PLUGIN_NONE
Definition: xine_plugin.h:29
wvheader_t::decoded_crc32
uint32_t decoded_crc32
Definition: wavpack_combined.h:39
wvheader_t::flags
uint32_t flags
Definition: wavpack_combined.h:38
xine_internal.h
config.h
wvheader_t::wv_version
uint16_t wv_version
Definition: wavpack_combined.h:30
wvheader_t::samples_count
uint32_t samples_count
Definition: wavpack_combined.h:37
plugin_info_t
Definition: xine_plugin.h:55