1 /*****************************************************************************
2 * common.h : DirectShow access module for vlc
3 *****************************************************************************
4 * Copyright (C) 2002 the VideoLAN team
7 * Author: Gildas Bazin <gbazin@videolan.org>
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 *****************************************************************************/
41 # define _I64_MAX LONG_LONG_MAX
42 # define LONGLONG long long
47 typedef struct dshow_stream_t dshow_stream_t;
49 /****************************************************************************
51 ****************************************************************************/
52 #define MAX_CROSSBAR_DEPTH 10
54 typedef struct CrossbarRouteRec
58 LONG VideoOutputIndex;
60 LONG AudioOutputIndex;
64 void DeleteCrossbarRoutes( access_sys_t * );
65 HRESULT FindCrossbarRoutes( vlc_object_t *, access_sys_t *,
66 IPin *, LONG, int = 0 );
68 /****************************************************************************
69 * Access descriptor declaration
70 ****************************************************************************/
73 /* These 2 must be left at the beginning */
77 IFilterGraph *p_graph;
78 ICaptureGraphBuilder2 *p_capture_graph_builder2;
79 IMediaControl *p_control;
81 int i_crossbar_route_depth;
82 CrossbarRoute crossbar_routes[MAX_CROSSBAR_DEPTH];
84 /* list of elementary streams */
85 dshow_stream_t **pp_streams;
93 vlc_bool_t b_chroma; /* Force a specific chroma on the dshow input */