2 /*****************************************************************************
3 * mkv.cpp : matroska demuxer
4 *****************************************************************************
5 * Copyright (C) 2003-2004 VLC authors and VideoLAN
8 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
9 * Steve Lhomme <steve.lhomme@free.fr>
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU Lesser General Public License as published by
13 * the Free Software Foundation; either version 2.1 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public License
22 * along with this program; if not, write to the Free Software Foundation,
23 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24 *****************************************************************************/
28 block_t *block_zlib_decompress( vlc_object_t *p_this, block_t *p_in_block );
30 block_t *MemToBlock( uint8_t *p_mem, size_t i_mem, size_t offset);
31 void handle_real_audio(demux_t * p_demux, mkv_track_t * p_tk, block_t * p_blk, mtime_t i_pts);
34 struct real_audio_private
42 uint32_t coded_frame_size;
44 uint16_t sub_packet_h;
46 uint16_t sub_packet_size;
50 struct real_audio_private_v4
52 real_audio_private header;
60 struct real_audio_private_v5
62 real_audio_private header;
71 class Cook_PrivateTrackData : public PrivateTrackData
74 Cook_PrivateTrackData(uint16_t sph, uint16_t fs, uint16_t sps):
75 i_sub_packet_h(sph), i_frame_size(fs), i_subpacket_size(sps),
76 p_subpackets(NULL), i_subpackets(0), i_subpacket(0){}
77 ~Cook_PrivateTrackData();
80 uint16_t i_sub_packet_h;
81 uint16_t i_frame_size;
82 uint16_t i_subpacket_size;
83 block_t **p_subpackets;