1 /*****************************************************************************
2 * access.h : DirectShow access module for vlc
3 * access_sys_t definition
4 *****************************************************************************
5 * Copyright (C) 2002, 2004, 2010-2011 the VideoLAN team
8 * Author: Gildas Bazin <gbazin@videolan.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 /*****************************************************************************
27 *****************************************************************************/
32 typedef struct dshow_stream_t dshow_stream_t;
34 /****************************************************************************
36 ****************************************************************************/
37 #define MAX_CROSSBAR_DEPTH 10
39 typedef struct CrossbarRouteRec
43 LONG VideoOutputIndex;
45 LONG AudioOutputIndex;
49 void DeleteCrossbarRoutes( access_sys_t * );
50 HRESULT FindCrossbarRoutes( vlc_object_t *, access_sys_t *,
51 IPin *, LONG, int = 0 );
53 /****************************************************************************
54 * Access descriptor declaration
55 ****************************************************************************/
58 /* These 2 must be left at the beginning */
62 IFilterGraph *p_graph;
63 ICaptureGraphBuilder2 *p_capture_graph_builder2;
64 IMediaControl *p_control;
66 int i_crossbar_route_depth;
67 CrossbarRoute crossbar_routes[MAX_CROSSBAR_DEPTH];
69 /* list of elementary streams */
70 dshow_stream_t **pp_streams;
78 bool b_chroma; /* Force a specific chroma on the dshow input */