xine-lib: xine-lib-1.2.12/src/combined/wavpack_combined.h Source File

xine-lib 1.2.12

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 */
40} XINE_PACKED wvheader_t;
41
42 static const uint32_t wvpk_signature = ME_FOURCC('w', 'v', 'p', 'k');
43
44void *demux_wv_init_plugin (xine_t *xine, const void *data);
45void *decoder_wavpack_init_plugin (xine_t *xine, const void *data);
bswap.h
ME_FOURCC
#define ME_FOURCC
Definition: bswap.h:148
attributes.h
XINE_PACKED
#define XINE_PACKED
Definition: attributes.h:147
os_types.h
wvheader_t
Definition: wavpack_combined.h:27
wvheader_t::wv_version
uint16_t wv_version
Definition: wavpack_combined.h:30
wvheader_t::idcode
uint32_t idcode
Definition: wavpack_combined.h:28
wvheader_t::samples_count
uint32_t samples_count
Definition: wavpack_combined.h:37
wvheader_t::samples_index
uint32_t samples_index
Definition: wavpack_combined.h:35
wvheader_t::decoded_crc32
uint32_t decoded_crc32
Definition: wavpack_combined.h:39
wvheader_t::block_size
uint32_t block_size
Definition: wavpack_combined.h:29
wvheader_t::flags
uint32_t flags
Definition: wavpack_combined.h:38
wvheader_t::track
uint8_t track
Definition: wavpack_combined.h:31
wvheader_t::file_samples
uint32_t file_samples
Definition: wavpack_combined.h:33
wvheader_t::index
uint8_t index
Definition: wavpack_combined.h:32
xine_s
Definition: xine_internal.h:80
demux_wv_init_plugin
void * demux_wv_init_plugin(xine_t *xine, const void *data)
Definition: wavpack_demuxer.c:373
wvpk_signature
static const uint32_t wvpk_signature
Definition: wavpack_combined.h:42
decoder_wavpack_init_plugin
void * decoder_wavpack_init_plugin(xine_t *xine, const void *data)
Definition: wavpack_decoder.c:318