Qt: do not show open options in both normal and advanced UI
[vlc.git] / modules / access / mms / asf.h
blob0c678de57a06a8319b22ed575f7a179806f74fc0
1 /*****************************************************************************
2 * asf.h: MMS access plug-in
3 *****************************************************************************
4 * Copyright (C) 2001-2004 the VideoLAN team
5 * $Id$
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 /****************************************************************************
25 * XXX:
26 * Definitions and data duplicated from asf demuxers but I want access
27 * and demux plugins to be independent
29 ****************************************************************************/
31 #ifndef _ASF_H_
32 #define _ASF_H_ 1
34 #include "../../demux/asf/libasf_guid.h"
36 #define ASF_STREAM_VIDEO 0x0001
37 #define ASF_STREAM_AUDIO 0x0002
38 #define ASF_STREAM_UNKNOWN 0xffff
40 typedef struct
42 int i_cat; /* ASF_STREAM_VIDEO, ASF_STREAM_AUDIO */
43 int i_bitrate; /* -1 if unknown */
44 int i_selected;
45 } asf_stream_t;
47 typedef struct
49 int64_t i_file_size;
50 int64_t i_data_packets_count;
51 int32_t i_min_data_packet_size;
53 asf_stream_t stream[128];
55 } asf_header_t;
58 void GenerateGuid ( guid_t * );
59 void asf_HeaderParse ( asf_header_t *, uint8_t *, int );
60 void asf_StreamSelect ( asf_header_t *,
61 int i_bitrate_max, bool b_all, bool b_audio,
62 bool b_video );
64 #endif