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 *****************************************************************************/
45 # define _I64_MAX LONG_LONG_MAX
47 # define LONGLONG long long
52 typedef struct dshow_stream_t dshow_stream_t;
54 /****************************************************************************
56 ****************************************************************************/
57 #define MAX_CROSSBAR_DEPTH 10
59 typedef struct CrossbarRouteRec
63 LONG VideoOutputIndex;
65 LONG AudioOutputIndex;
69 void DeleteCrossbarRoutes( access_sys_t * );
70 HRESULT FindCrossbarRoutes( vlc_object_t *, access_sys_t *,
71 IPin *, LONG, int = 0 );
73 /****************************************************************************
74 * Access descriptor declaration
75 ****************************************************************************/
78 /* These 2 must be left at the beginning */
82 IFilterGraph *p_graph;
83 ICaptureGraphBuilder2 *p_capture_graph_builder2;
84 IMediaControl *p_control;
86 int i_crossbar_route_depth;
87 CrossbarRoute crossbar_routes[MAX_CROSSBAR_DEPTH];
89 /* list of elementary streams */
90 dshow_stream_t **pp_streams;
98 bool b_chroma; /* Force a specific chroma on the dshow input */