qt: playlist: use item title if available
[vlc.git] / modules / access / mms / asf.h
blob6651f9c4adaa7b88c61d1260c20a15f326b1d496
1 /*****************************************************************************
2 * asf.h: MMS access plug-in
3 *****************************************************************************
4 * Copyright (C) 2001-2004 VLC authors and VideoLAN
6 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
23 /****************************************************************************
24 * XXX:
25 * Definitions and data duplicated from asf demuxers but I want access
26 * and demux plugins to be independent
28 ****************************************************************************/
30 #ifndef VLC_MMS_ASF_H_
31 #define VLC_MMS_ASF_H_
33 #include <vlc_codecs.h>
35 #define ASF_CODEC_TYPE_VIDEO 0x0001
36 #define ASF_CODEC_TYPE_AUDIO 0x0002
37 #define ASF_CODEC_TYPE_UNKNOWN 0xffff
39 typedef struct
41 int i_cat; /* ASF_CODEC_TYPE_VIDEO, ASF_CODEC_TYPE_AUDIO, */
42 int i_bitrate; /* -1 if unknown */
43 int i_selected;
44 } asf_stream_t;
46 typedef struct
48 int64_t i_file_size;
49 int64_t i_data_packets_count;
50 int32_t i_min_data_packet_size;
52 asf_stream_t stream[128];
54 } asf_header_t;
57 void GenerateGuid ( vlc_guid_t * );
58 void asf_HeaderParse ( asf_header_t *, uint8_t *, int );
59 void asf_StreamSelect ( asf_header_t *,
60 int i_bitrate_max, bool b_all, bool b_audio,
61 bool b_video );
63 #endif