1 /*****************************************************************************
2 * asf.h: MMS access plug-in
3 *****************************************************************************
4 * Copyright (C) 2001-2004 the VideoLAN team
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 /****************************************************************************
26 * Definitions and data duplicated from asf demuxers but I want access
27 * and demux plugins to be independent
29 ****************************************************************************/
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
42 int i_cat
; /* ASF_STREAM_VIDEO, ASF_STREAM_AUDIO */
43 int i_bitrate
; /* -1 if unknown */
50 int64_t i_data_packets_count
;
51 int32_t i_min_data_packet_size
;
53 asf_stream_t stream
[128];
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
,