]> git.sesse.net Git - vlc/blob - modules/codec/dts_header.h
upnp: change item b_net and i_type
[vlc] / modules / codec / dts_header.h
1 /*****************************************************************************
2  * dts_header.c: parse DTS audio headers info
3  *****************************************************************************
4  * Copyright (C) 2004-2009 VLC authors and VideoLAN
5  * $Id$
6  *
7  * Authors: Gildas Bazin <gbazin@netcourrier.com>
8  *          Laurent Aimar
9  *
10  * This program is free software; you can redistribute it and/or modify it
11  * under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation; either version 2.1 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program; if not, write to the Free Software Foundation,
22  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #define DTS_HEADER_SIZE 14
26
27 int GetSyncInfo( const uint8_t *p_buf,
28                         bool *pb_dts_hd,
29                         unsigned int *pi_sample_rate,
30                         unsigned int *pi_bit_rate,
31                         unsigned int *pi_frame_length,
32                         unsigned int *pi_audio_mode );
33
34 int SyncCode( const uint8_t * );
35